Jochen, > With Amavisd-new, Postfix and SpamAssassin on Debian, using a BEFORE-QUEUE > setup (i.e. dual SMTPD) I would like to achieve the following: > > 1. If (spam score <= tag2_level) > Then Deliver mail to the 2nd SMTPD (localhost:10025) immediately > > 2. If (tag2_level <= spam score <= kill_level) > Then Deliver mail to another SMPTD (e.g. localhost:10026), this SMTPD > would use greylisting. > Returning a 4xx (temp failure) on these mails for a while should filter > out spam. Everything that is unlikely to be spam would have been delivered > without any dealy via the non-greylisting SMTPD in 1. > > 3. Quarantine all mails above the kill level and send back a 5xx > (permanent failure) > > I have 1 and 3 implemented and things work fine. > Setting a SMPTD to use greylisting as a Postfix policy_server is no > problem. But how do I get Amavis to send to this greylisting SMPTD, based > on the spam score ?
Mail with scores between tag2 and kill level are delivered, and are subject to tagging and appending address extensions. You can for example append '+spam' to each recipient address of passed mail in that range, then configure Postfix virtual map to rewrite /[EMAIL PROTECTED]/ to your other MTA, as in the example : /^(.*)\+spam@([EMAIL PROTECTED])\.example\.com$/ [EMAIL PROTECTED] at: http://www.ijs.si/software/amavisd/amavisd-new-docs.html#addrext (I'm just answering your immediate question, not saying that what you are doing is the good or bad). Mark ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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/
