Thank you for your helpful reply. So, now I have this in main.cf:
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_blacklist I have a file sender_blacklist: m...@somplace.org/ REJECT I issued the command 'postmap hash:/etc/postfix/sender_blacklist' I issued the command: 'postfix reload' If I send from the address m...@somplace.org, it is not rejected. On Mon, Dec 7, 2009 at 4:47 PM, Ansgar Wiechers <li...@planetcobalt.net>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:. > > 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 > -- Christopher Adams adam...@gmail.com