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:. Why don't you use an access map for this? # in main.cf: smtpd_sender_restrictions = ... check_sender_access hash:/etc/postfix/sender_blacklist, ... # in sender_blacklist: somplace.org DISCARD Don't forget to postmap sender_blacklist, and perhaps consider REJECTing instead of DISCARDing. Regards Ansgar Wiechers -- "Abstractions save us time working, but they don't save us time learning." --Joel Spolsky