|
|||||||||||
|
Re: [AMaViS-user] quarantine and junkmailbox configuration
From: Mark Martinec <Mark.Martinec+amavis(at)ijs.si>
Date: Fri Nov 23 2007 - 20:39:53 EST
> I use amavisd-new with spamassassin loaded as a perl module. You actually want two levels of a quarantine, the first level to be delivered to a mailbox, and the second level to a normal quarantine. There is currently only one level of quarantining, but it is possible to achieve the desired effect by putting a tag3_level to good use, along with appending address extensions and a little help from a MTA: $sa_tag_level_deflt = 2; # insert spam headers $sa_tag2_level_deflt = 5; # let spam headers say YES, spam $sa_tag3_level_deflt = 8; # by default no effect, but see below $sa_kill_level_deflt = 13; # block mail and quarantine $sa_quarantine_cutoff_level = 20; # suppress quarantine above that level $recipient_delimiter = '+'; # here is a little tricky part: turn on address extensions at tag3_level $addr_extension_maps_by_ccat{CC_SPAMMY.',1'} = ['junk']; So in addition to your previous behaviour, the range of spam scores between 8 and 13 will still pass on (with spam headers added), but will also have recipient addresses modified to include a '+junk' at the end of a local part, e.g.: user@example.com -> user+junk@example.com Note that only recipients in local domains receive this treatment (i.e. inbound and internal mail), so make sure to have local_domains configured correctly. The rest is up to a MTA to decide what to do with an address extension '+junk' - to ignore it, or to deliver it to a user's dedicated mailbox, or to rewrite it to some common junk mailbox such as junkmail@mydomain.com. To achieve the later with Postfix, tell it the extensions delimiter is a '+' and add a virtual map which will rewrite *+junk@mydomain.com into junkmail@mydomain.com. For example: main.cf: recipient_delimiter = +
virtual_alias_maps =
/etc/postfix/virtual_mapping_pcre : /^(.*)\+junk@(example\.com)$/ junkmail@$2 Followups (if any) to amavis-user mailing list please. Mark This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ Received on Fri Nov 23 20:40:08 2007 This archive was generated by hypermail 2.1.8 : Tue Jul 15 2008 - 08:20:23 EDT |
||||||||||
|
|||||||||||