Can Spamassassin drop emails if it is over a certain amount of points? Or is that a maildrop script? I thought I saw a script on here that did that, something with an if statement and a exit statement.
Basically if the points on an email is over a certain amount then I want the email dropped instead of delivered.
From a post by Christopher Kunz:
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"
}
}Evan
