Hi rob0,

~user/.forward+spam would be a good solution for me since my users are system users.

Could you give me an example for the following? I can configure amavisd-new to do + address extension.

## Deliver user+s...@example.com mails to /home/user/Maildir/.Junk

.Junk is also in Maildir format.

Appreciate your help in this regard.

Thanks
Indrajith




On Thu, 25 Mar 2010 10:29:43 -0500
 /dev/rob0 <r...@gmx.co.uk> wrote:
On Thu, Mar 25, 2010 at 05:05:47PM +0530, Chaminda Indrajith wrote:
I need to put the SPAM mails into users' Junk Mail folder. How
can we do it in Postfix?

Mails are stored in Maildir format in the user's home directory.
Junk mail folder is inside the Maildir as ".Junk". Amavisd-new
tags the spam mails as "[SPAM]"

Amavisd-new can also use a recipient_delimiter and change the
localpart "user" to "user+spam". See amavisd-new documentation to
learn how to activate this feature.

Postfix local(8) can handle this differently by using a
~user/.forward+spam file.

Postfix virtual(8) can handle this differently by using a different
virtual_mailbox_maps result for user+s...@example.com .

References:
   http://www.postfix.org/postconf.5.html#recipient_delimiter
   http://www.postfix.org/local.8.html
   http://www.postfix.org/aliases.5.html
   http://www.postfix.org/virtual.8.html
   http://www.postfix.org/postconf.5.html#virtual_mailbox_maps
--
   Offlist mail to this address is discarded unless
   "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to