RE: smtpd_recipient_restrictions to restrict outbound email to selected domains

2015-02-17 Thread Steve Zeng
: 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 +, Steve Zeng wrote: > Thanks for the hint. The transport map seems do the trick... > > /et

Re: smtpd_recipient_restrictions to restrict outbound email to selected domains

2015-02-17 Thread Viktor Dukhovni
On Tue, Feb 17, 2015 at 07:03:39PM +, 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 : > *

RE: smtpd_recipient_restrictions to restrict outbound email to selected domains

2015-02-17 Thread Steve Zeng
-Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Viktor Dukhovni Sent: Tuesday, February 17, 2015 10:48 AM To: postfix-users@postfix.org Subject: Re: smtpd_recipient_restrictions to restrict outbound email to selected domains On Tue

Re: smtpd_recipient_restrictions to restrict outbound email to selected domains

2015-02-17 Thread Viktor Dukhovni
On Tue, Feb 17, 2015 at 06:35:11PM +, Steve Zeng wrote: > > Via SMTP from outside, or via sendmail(1) locally? > > I run mail locally as below: > mail -s "hotmail" myusern...@hotmail.com < /etc/hosts Well, smtpd(8) restrictions don't apply to locally submitted email. I generally configure t

RE: smtpd_recipient_restrictions to restrict outbound email to selected domains

2015-02-17 Thread Steve Zeng
postfix-users@postfix.org<mailto:postfix-users@postfix.org> Subject: Re: smtpd_recipient_restrictions to restrict outbound email to selected domains On Tue, Feb 17, 2015 at 12:48:45AM +, Steve Zeng wrote: > I am running postfix 2.3.3 on Redhat RHEL 5 for a local SMTP MTA. For >

RE: smtpd_recipient_restrictions to restrict outbound email to selected domains

2015-02-17 Thread Steve Zeng
...@postfix.org] On Behalf Of Viktor Dukhovni Sent: Monday, February 16, 2015 5:16 PM To: postfix-users@postfix.org Subject: Re: smtpd_recipient_restrictions to restrict outbound email to selected domains On Tue, Feb 17, 2015 at 12:48:45AM +, Steve Zeng wrote: > I am running postfix 2.3

Re: smtpd_recipient_restrictions to restrict outbound email to selected domains

2015-02-16 Thread Viktor Dukhovni
On Tue, Feb 17, 2015 at 12:48:45AM +, Steve Zeng wrote: > 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_restri