On Thursday 16 Feb 2006 19:52, Noel Sanchez wrote:
> Hello All. I have used the toaster without the "options" installed for
> quite some time, very happy with it. Now, my users have been getting
> many spam emails. So, I installed ALL "options" per the toaster. Very
> easy to do, thanks to Bill. Question, now that I have installed it, what
> now? I sent a spam email from outside into my mail server. Spamassassin
> recognizes it and puts it on my squirrelmails inbox and marks it as
> spam. That's great, but I isn't the point of simscan is to drop it
> automatically? I'd like to NOT receive ANY spam in my inbox. Maybe sent
> to a spam folder or drop it altogether. And if it doesn't put it in my
> inbox, where will it go? What if it marks an important email as spam
> when in fact it isn't? I'm only trying to understand how this works. I'd
> like for the spam to NOT show up in my squirrelmail inbox at all if
> possible and maybe be sent automatically to a spam folder that I create
> inside of squirrelmail or in outlook for my outlook users. Did I not
> config properly?
>
> Thanks

install maildrop

put something like this in .qmail file for the user

|/usr/local/bin/maildrop  /home/vpopmail/domains/domain.name/mailfilter-spam

here is a mailfilter. it is generic, so it works for any user
ps. maildrop is picky, so no empty lines/comments in the if statement ;-)

import EXT
import HOST

VPOPBIN="/home/vpopmail/bin"
QMAILDIRMAKE="/var/qmail/bin/maildirmake"

MAILDIRQUOTA=`$VPOPBIN/vuserinfo -q [EMAIL PROTECTED]
VUSERDIR=`$VPOPBIN/vuserinfo -d [EMAIL PROTECTED]
VMAILDIR="$VUSERDIR/Maildir"
SPAMDIR="$VUSERDIR/Maildir/.SPAM"

if (/^X-Spam-Flag: *YES/)
{
        `test -d $SPAMDIR`
        if( $RETURNCODE == 1 )
        {
                `$QMAILDIRMAKE $SPAMDIR;chown -R vpopmail.vchkpw $SPAMDIR`
        }
        to $SPAMDIR/
}
else
{
        to $VMAILDIR/
}

you might need to use courier-imap's maildirmake (if that is what you're 
using). I found that I had to use it where version 4.xx is installed, to 
create some ACL support files.

HTH
-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------

Reply via email to