OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Blacklist and address based on "User unknown"

From: Crayon (crayon.shin.chan.ukgmail.com)
Date: Tue Jan 02 2007 - 15:20:20 CST


What I would like to do is to temporarily blacklist servers that try to
send mail to non-existant addresses - a sure sign of spammers. Are there
any hooks in postfix that will allow this? So basically if a "Recipient
address rejected: User unknown in virtual mailbox table" error occurs I
want to run a certain program to stick the offending server's address
into an iptables rule.

Of course I could always have an external program monitor the mail logs,
but if it could be done from within postfix it would be a lot neater :)

--
Crayon