On Tue, 08 Dec 2009, Ansgar Wiechers wrote:

> On 2009-12-07 Christopher Adams wrote:
> > I am trying to ban an address from sending through my system.
> > 
> > I have this in main.cf:
> > 
> > header_checks = regexp:/etc/postfix/header_checks
> > 
> > In the header_checks file, I have this:
> > 
> > /^From: .*someplace.org/ DISCARD
> > 
> > I did a 'postfix reload'
> > 
> > Messages from someplace.org are still being delivered. What have I
> > missed?
> 
> man 5 header_checks
> 
> | Message  headers added by the cleanup(8) daemon itself are excluded
> | from inspection. Examples of such message headers are From:, To:,
> | Message-ID:, Date:.

It will work if the header isn't added by cleanup(8) and exists in the
mail as it arrives, which I am guessing is the OP's use case. 

> Why don't you use an access map for this?

In case the envelope sender != From: header. :-)

-- 
Sahil Tandon <sa...@tandon.net>

Reply via email to