Greetings!

I am running postfix 2.3.3 on Redhat RHEL 5 for a local SMTP MTA. For security 
purpose, we need to restrict its outbound emails to selected destination 
domains only.

http://www.postfix.org/postconf.5.html#smtpd_recipient_restrictions

The default is:
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

I modified it as:
smtpd_recipient_restrictions = check_recipient_access 
hash:/etc/postfix/local_domains, reject

All outbound emails will be sent to relay host:
relayhost = mail-vip.local.paygateway.com

/etc/postfix/local_domains
mycompany.com             OK
Hotmail. com                     OK

However, it looks not effective. I can still send outbound email to anywhere.

Do I miss anything?

Thanks,
Steve
NOTICE: This email message is for the sole use of the addressee named above and 
may contain confidential information.
Any unauthorized review, use, disclosure, distribution or duplication of this 
message or any attachments is expressly prohibited.
If you are not the intended recipient, please contact the sender by reply email 
and destroy all copies and backups of the original message.

Reply via email to