Hi All
Some time back I wanted to know how best to set up a postfix mail server
to restrict some local users from sending emails to foreign domains but
only send to local users and I got the following answer which I was able
to implement yesterday and it worked out of the box:
# Added to Restrict Senders of Email to external domains
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/restricted_senders
permit_mynetworks
reject_unauth_destination
smtpd_restriction_classes = local_only
local_only =
check_recipient_access hash:/etc/postfix/local_domains, reject
the file /etc/postfix/restricted_senders
[EMAIL PROTECTED] local_only
[EMAIL PROTECTED] local_only
the file /etc/postfix/local_domains
foo.com OK
At this point when things began working, the client then requested that
these same denied users should not be able to receive email from the
internet too. However they should be able to receive from local users
only.
# Added to Restrict Reception of Email from external domains
smtpd_sender_restrictions =
check_recipient_access hash:/etc/postfix/restricted_recipients
#End of restrictions
the file /etc/postfix/restricted_recipients
foo.com REJECT
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
The above comments and data are owned by whoever posted them (including
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------