Jim Viton wrote:

I have an interest in flagging email as spam at a certain threshold and deleting at 
another threshold.
Has anyone done this?
I am using sendmail, spamass-milter, and spamd - latest and greatest.
I suppose I could set up another milter calling a a different spamd daemon with a 
different config, but that's quite a hack and an ugly one at that.  Maybe another, 
different, milter ?
Any suggestions ?

I'm using maildrop for this (in a vpopmail setup, YMMV):


####################################################
VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

if ( $SIZE < 262144 )
{
        exception {
                xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
        }
}

if (/^X-Spam-Flag: *YES/)
{
        exception {
                include $VHOME/Maildir/.mailfilter
        }
 IF YOU WANT TO GATHER ALL SPAM INTO 1 MAILDRIR
       exception {
        to /dev/null
        }
## OR IF YOU WANT TO DELIVER SPAM TO THE USERS MAILDIR
#        exception {
#                to "$VPOP"
#        }
}
else
{
        exception {
                include $VHOME/Maildir/.mailfilter
        }
        exception {
                to "$VPOP"
        }
}
####################################################

--ck



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to