[plug] Postfix: reject email based on sender and domain

Bernd Felsche bernie at innovative.iinet.net.au
Mon Feb 24 01:03:39 UTC 2014


On Sun, 23 Feb 2014 10:51:34 Alexander Hartner wrote:

> I am trying to block a list of sunders from sending me email to one of
> the domains hosted on a server, but not others. Initially I thought
> about using header_checks and a complex IF condition, however this
> does not work as the header_check only process a single line and what
> I am looking for is a rule containing both the FROM and TO headers.
> 
> Any other suggestions on how this can be achieved ?

"Policy Delegation"
http://www.postfix.org/SMTPD_POLICY_README.html

I've never needed to use it but it's there for the tricky stuff.

-- 
/"\ Bernd Felsche - Somewhere in Western Australia
\ /  ASCII ribbon campaign | For every complex problem there is an
 X   against HTML mail     | answer that is clear, simple, and wrong.
/ \  and postings          |  --HL Mencken



More information about the plug mailing list