From: "Chaminda Indrajith" on
Dear All,

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]"

Highly appreciate your help in this regard.

Thanks
Indrajith

From: Ansgar Wiechers on
On 2010-03-25 Chaminda Indrajith wrote:
> I need to put the SPAM mails into users' Junk Mail folder. How can we
> do it in Postfix?

You can't. Postfix does not know (or care) about the inner workings of a
user's mailbox.

> 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]"

Configure either the MDA or the user's MUA to put tagged mail into the
Junk folder.

Regards
Ansgar Wiechers
--
"Abstractions save us time working, but they don't save us time learning."
--Joel Spolsky

From: Erik Logtenberg on
The (imho) nicest solution is to use an LDA which supports sieve. Then
write a small sieve script to move spam to the junk folder. You can use
sieve for all other kinds of mail-sorting as well. Most popular LDA's
support sieve.

Ansgar Wiechers wrote:
> On 2010-03-25 Chaminda Indrajith wrote:
>> I need to put the SPAM mails into users' Junk Mail folder. How can we
>> do it in Postfix?
>
> You can't. Postfix does not know (or care) about the inner workings of a
> user's mailbox.
>
>> 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]"
>
> Configure either the MDA or the user's MUA to put tagged mail into the
> Junk folder.
>
> Regards
> Ansgar Wiechers

From: Miles Fidelman on
Chaminda Indrajith wrote:
> Dear All,
>
> 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]"
1. install procmail
2. configure postfix to use procmail as your local delivery agent
3. configure procmail to route spam to the junk folder - can be
configured system wide and/or per-user

http://en.wikipedia.org/wiki/Procmail is as good a place as any to start
for more info
google procmail to find lots of how-to.s


In theory, there is no difference between theory and practice.
In<fnord> practice, there is. .... Yogi Berra

From: DUBOURG Kevin on

Hello,

I use maildrop package to replace "virtual". In your email
directory "/home/email" for example you put this :

Filename =>
..mailfilter

# move spam to
spamfolder
##
SPAMFLD=$DEFAULT/.Junk/
SUBSCRIPT=$DEFAULT/courierimapsubscribed

#
test idf Junk folder exists, if notr create one
# autosubscribe to the
Junk folder
`test -d "$SPAMFLD"`
if( $RETURNCODE == 1 )
{
`maildirmake
"$SPAMFLD"`
`echo INBOX.Junk >> $SUBSCRIPT`
}

Before, you have to
configure postfix to delivered email with
maildrop.
http://www.postfix.org/MAILDROP_README.html

For me it's the best
solution. (i use amavis also).

Regards,

On Thu, 25 Mar 2010 08:10:37
-0400, Miles Fidelman
wrote:
> Chaminda Indrajith wrote:
>> Dear
All,
>>
>> 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]"
> 1. install
procmail
> 2. configure postfix to use procmail as your local delivery
agent
> 3. configure procmail to route spam to the junk folder - can be
>
configured system wide and/or per-user
>
>
http://en.wikipedia.org/wiki/Procmail is as good a place as any to start
>
for more info
> google procmail to find lots of how-to.s
>
>
> In theory,
there is no difference between theory and practice.
> In practice, there
is. .... Yogi Berra