Hi, all.
I use qmail/vpopmail5.3.19/Spamassassin2.54. I set my spam threshold high, so
I'm nearly 100% certain ( at least for my comfort range) that mail marked as
spam is spam. So, I would like to delete it automatically. (Yep, I know all
the possible bad effects, but I'm convinced the messages are spam, so I'll go
with this anyway.)
I'm attempting to use maildrop to do that. I cause my .qmail-default file to
read:
| maildrop .mailfilter
My .mailfilter file reads:
VPOP="| /var/vpopmail/bin/vdelivermail ' ' delete"
VHOME=`/var/vpopmail/bin/vuserinfo -d $EXT@$HOST`
if ( $SIZE < 262144 )
{
exception {
xfilter "/usr/bin/spamc -f -u $EXT@$HOST"
}
}
if (/^X-Spam-Flag: YES/)
{
# try filtering it using user-defined rules
exception {
include $VHOME/Maildir/.mailfilter
}
# then try delivering it to a Spam folder
exception {
# to "$VPOP"
to "$VHOME/Maildir/.SPAM/"
}
# ah well, I guess they'll just have to live with disappointment
exception {
to "$VPOP"
}
}
else
{
exception {
include $VHOME/Maildir/.mailfilter
}
exception {
to "$VPOP"
}
}
Unfortunately, all messages marked as spam still ends up in my INBOX. I
appreciate any help to point out the error of my ways.
Thanks,
Ken
"Where there is much desire to learn, there
of necessity will be much arguing, much writing,
and many opinions; for opinion in good men is
but knowledge in the making" (John Milton).