This is a discussion on how to stop certain users from receiving mail from various domains? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi all, I've configured a mail server running Postfix and it's able to do the following: - allow users ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I've configured a mail server running Postfix and it's able to do the following: - allow users listed in restricted_senders (below) to email domains listed in local_domains (below) - those not listed below can email anyone and receive emails from everyone local_domains ------------- domain1.com OK domain2.com OK restricted_senders ------------------ user1@mydomain.com local_only user2@mydomain.com local_only main.cf ------- smtpd_recipient_restriction = check_sender_access hash:/etc/postfix/restricted_senders, permit_mynetworks, check_relay_domains, check_recipient_access maptype:mapname, reject_non_fqdn_recipient, reject_unknown_recipient_domain smtpd_restriction_classes = local_only local_only = check_recipient_access hash:/etc/postfix/local_domains, reject I'd like to be able to restrict the users listed in restricted_senders from receiving emails from everyone. I'd like them to be able to only receive emails from domains listed in local_domains. I tried adding "check_recipient_access hash:/etc/postfix/restricted_senders" to smtpd_recipient_restriction but it doesn't work. Does anyone know how to do this? Thanks in advance Eric |
![]() |
| Thread Tools | |
| Display Modes | |
|
|