On 9/5/2017 3:39 PM, techlist06 wrote:
> Just what I was hoping for, the easy button.  Thank you.
> 
> What about the one (valid) sender I want to prevent?  I've got a IMAP
> account setup for spam reporting, I want to be sure no one who has access to
> it sends anything from that account.
> 
> 
> 
> 
> 
> 
> --
> Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
> 



Use a check_sender_access map to reject that one sender.  You can't
use spaces in master.cf, so do something like:

main.cf:
submission_sender_restrictions = reject_unlisted_sender,
   check_sender_access inline:{ [email protected]=REJECT }

master.cf:
...
submission ...
  -o smtpd_sender_restrictions=$submission_sender_restrictions

My example uses the inline: map type, which is great for simple
tables with few elements, but any postfix map type may be used.
http://www.postfix.org/DATABASE_README.html#types



  -- Noel Jones

Reply via email to