On Tue, Feb 17, 2015 at 06:35:11PM +0000, 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 the default Postfix instance (that handles
local mail injection) as a null client (as in MULTI_INSTANCE_README)
and that makes it possible to use transport_mapa, and/or
default_transport to control which destinations are reachable by
adding "error:5.1.2 ..." transport overrides.

The network-facing MTA runs as a separate Postfix instance, in which
local submission is restricted:

    authorized_submit_users = root, postfix

-- 
        Viktor.

Reply via email to