Thanks for the note. Yes. It is for null-client MSAs that use a common smart host, which is defined by:
relayhost = [mail.mycompany.com] Thanks, Steve -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Viktor Dukhovni Sent: Tuesday, February 17, 2015 1:09 PM To: postfix-users@postfix.org Subject: Re: smtpd_recipient_restrictions to restrict outbound email to selected domains On Tue, Feb 17, 2015 at 07:03:39PM +0000, Steve Zeng wrote: > Thanks for the hint. The transport map seems do the trick... > > /etc/postfix/main.cf > transport_maps = hash:/etc/postfix/transport > > /etc/postfix/transport > mypartnerorg.com : > mycompany.com : > * error: 5.1.2 recipient domains not allowed 1. No space between "error:" and the DSN code. error:5.1.2 ... 2. If this system accepts inbound mail to your domains, it may not be able to send back bounce messages to the external sender domains. So generally such transport entries are only for null-client MSAs that punt all mail to "smarthosts". If that describes your system, you're fine. Otherwise, you need a more sophisticated approach. -- Viktor. 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.