On 4/13/05, Maciej Sołtysiak <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a qmail setup done according to the toaster.
> (vpopmail+mysql, courier)
> However I am using qmail-scanner.
>
> I would like to have mail classified as spam by
> qmail-scanner-queue to be sent to users .spam folders.
>
> eg. mail comes for [EMAIL PROTECTED]
> and I if it looks like spam I would like it to land
> in
> /home/vpopmail/domains/ae.poznan.pl/maciej.soltysiak/Maildir/.spam/new
>
> Does anyone have experience with a setup that would do this?
>
> --
> Regards,
> Maciej
>
>
Use maildrop. Create a .mailfilter file like this. Call it
/home/vpopmail/.mailfilter:
if (/^X-Spam-Flag: *YES/)
{
exception {
to "Maildir/.spam/"
}
# if no spam folder, go on with delivery
exception {
to "Maildir/"
}
}
else
{
exception {
to "Maildir/"
}
}
If you use qmailadmin, then use the --enable-modify-spam and the
--enable-spam-command to allow the option of spam filtering on a
per-user basis from within qmailadmin.
So the qmailadmin configure option would look like this:
--enable-spam-command="|/usr/bin/preline /usr/local/bin/maildrop
/home/vpopmail/.mailfilter"
--
Jason
[EMAIL PROTECTED]