Requirements:
- Allow RELAYing for mydomain.com
- Allow such relaying ONLY for hosts in the local network
Setup:
/etc/postfix/main.cf
inet_interfaces = all
mynetworks = 10.0.0.0/16 (local network IP)
smtpd_recipient_restrictions =
/etc/postfix/recipient_access:permit_sasl_authenticatedcheck_recipient_access hash:/etc/postfix/recipient_accessreject_unauth_destination
mydomain.com OK
sudo postmap /etc/postfix/recipient_access
sudo service postmap restart
No comments:
Post a Comment