Voytek,

> I have postfixadmin 2.2.0, amavisd-new-2.6.4 (20090625), ClamAV, bdc,
> CourierIMAP, virtual domains/users in MySQL, it all works well, thanks.
> currently, all users spam goes to 'all_users_spam' mailbox.
> I'd like to implement '+' subaddressing for user+spam.

> reading a thread on postfix list, I realized that postfix's virtual
> delivery agent supports '+' subaddressing
> so, using postfixadmin, I added a new mailbox 'voytek+s...@...', then,
> edited path in SQL field to point to '[email protected]/.spam/'
> that seems to work OK, if I send an external email to
> '[email protected]' it ends up in 'spam' subfolder of [email protected],
> using Postfix's virtual delivery agent

Good, that's pretty much all you need.

> so, I'm thinking of adding to all users a 'user+s...@...' 'mailbox', with
> a Maildir path edited to end in 'u...@.../.spam/'
> is there any problems doing it like that ? anyone uses something like it ?

Apart from letting users know of a change, I don't see a problem there.

Note that the spam folders may be filling up quickly, so some way
of manual or automated purging could be needed, especially for
passive users.

> I already have delimiter set
> # grep delimiter amavisd.conf
> $recipient_delimiter = '+';  # undef disables address extensions altogether

$addr_extension_spam is undef by default, so you also need:

$addr_extension_spam = 'spam';

And make sure your @local_domains_maps is configured correctly,
address extensions are only added for local recipients.

> so, once I remove my current
>   $spam_quarantine_to = '[email protected]';
> then all spam should be delivered

Quarantining has independent controls from mail delivery.

For spam delivery (instead of blocking) what is needed is:
  $final_spam_destiny = D_PASS;

You probably also want to turn off spam quarantining as
you indicated, but you do not have to, if you'd still want
to keep copies of spam mail, despite it being delivered.

> then all spam should be delivered to each user
> those that have 'user+spam' virtual mailbox defined and setup, will get
> that delivered to spam folder
> those that do not have 'user+spam' virtual mailbox, spam will end up in
> main inbox with amavis's 'spam' header
> am I correct ?

Right,

> main inbox with amavis's 'spam' header

Not header, the +spam only goes to the envelope recipient address,
which is not visible in the mail header. But you'd get the usual
X-Spam* tags. Note that both the X-Spam* tagging and address extensions
start to take place at tag2 level (not at kill level) - in your case
it would make sense to keep both of these at the same value
(although you can make it more complex: completely kill high-score
spam, but deliver to spam folders medium-score spam).

  Mark

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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