Roger,

> I would like to deliver spam tagged emails coming from spamassassin in a
> per-user spam imap directory. Is this possible? what do you recommend?
> I'm now using procmail for delivery, can amavisd-new deliver to imap
> folders as per virtual users in my MySQL database?

There are two ways amavisd-new can mark spam and help final delivery
agent to reroute a message to a dedicated mail folder:

- inserting a header field:
    X-Spam-Flag: YES

- and/or rewriting recipient address by appending some string,
  e.g.: [EMAIL PROTECTED] -> [EMAIL PROTECTED]
  (controls: $addr_extension_spam and $recipient_delimiter)

Both mechanisms trigger at tag2_level and apply to local recipients only
(those matching @local_domains_maps or found in SQL lookup table 'user').

Depending on your local delivery agent and its filtering capabilities,
one or the other mechanism may be more convenient. With procmail
the 'X-Spam-Flag: YES' check may be more convenient, with Cyrus IMAP
the plus addressing may more natural. See also:
  http://www.ijs.si/software/amavisd/amavisd-new-docs.html#addrext

Mark

-------------------------------------------------------------------------
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/

Reply via email to