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