On 2/23/2012 2:34 AM, rg86...@airpost.net wrote: > I'm building a Postfix server with postscreen & a before-queue filter. > > I'm trying to get spamtraps working so that if a spamtrap address is in > ANY of the recipients, then delivery of the message to ALL recipients is > quietly DISCARDED.
You can use an access map in the reinjection listener: # master.cf 127.0.0.1:10026 inet n - n - - smtpd ... -o smtpd_sender_restrictions=check_recipient_access,hash:/etc/postfix/spamtrap OR you can add rules to your filter to blacklist mail addressed to the spamtrap. With DISCARD you must receive the whole message anyway, so don't go overboard trying to optimize "soon as possible". -- Noel Jones