Matt wrote: > I'm only marking spam on a mail gateway and sending it along for clients > to filter out themselves. What I'm running into is when spam is sent to > a nonexistent account, the bounce back to the (also nonexistent) spammer > is filling up my queue.
> I'd like to filter out "returned to sender" emails that were originally > marked spam by the gateway. > Is this easy enough to do with amavisd-new? maybe somebody can point me > in the right direction. > Searching on the list, I saw somebody just deleting bounces that were on > their queue for 3 hours. I'm wondering if doing something in amavis > would be better. > Matt > ------------------------------------------------------------------------- The proper solution is to have your MTA on this machine do recipient validation. If you are using Postfix you could gather lists of valid email addresses from each of your clients so you can have your MTA reject mail addressed to nonexistent users. Automating this gathering process is ideal. If you are relaying to those destinations, Postfix would use relay_recipient_maps to store the addresses. If the downstream MTAs are capable of immediately sending 450 or 550 in response to a delivery attempt to a nonexistent user, you could instead investigate use of reject_unverified_recipient. See: http://www.postfix.org/ADDRESS_VERIFICATION_README.html If you try this, remember during your debugging that Postfix remembers past results. If you use memory based database, stop and start Postfix to clear it. If you use disk based, stop - delete - start. Accepting this mail means you are subject to dictionary attacks and processing all that extra mail through amavisd/spamassassin puts an unnecessary strain on your system. These may be of some use: http://www2.origogeneris.com:4000/relay_recipients.html http://www-personal.umich.edu/~malth/gaptuning/postfix/ http://www.unixwiz.net/techtips/postfix-exchange-users.html http://postfix.state-of-mind.de/patrick.koetter/mailrelay/ http://www200.pair.com/mecham/spam/NetTOOLS.htm Gary V ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
