On 2012-03-24 21:03:59, Reid Thompson wrote:
> On 3/24/2012 8:44 PM, Allan Wind wrote:
> >As stated you may want to look into check_sender_access:
> ><http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions>
> so if I configure
> 
> /etc/postfix/access
> 
> with
> 
> myem...@domain1.com           OK
> spousesem...@domain1.com      OK
> child1em...@domain1.com               OK
> child2em...@domain1.com               OK
> myem...@domain2.com           OK
> 
> and /etc/postfix/main.cf
> 
> with
> 
> smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access, 
> reject
> 
> will that block all email except that from the listed addresses?

Try it out and let us know it goes.  Here is how you can test it:

telnet $mailserver 25
ehlo $client_host_name
mail from:<$sender>
rcpt to:<$to>
data
anything goes here
.

Test with both senders that are allowed and ones that are not, 
and try both local and non-local to addresses.


/Allan
-- 
Allan Wind
Life Integrity, LLC
<http://lifeintegrity.com>

Reply via email to