I'm a newbie to using Maildrop, I've been successful using Qmail,
Qmail-scanner, Spamassassin and Maildrop to place SPAM to a separate folder.
However, I'm trying to figure out also filtering the several LISTS i'm on to
their own folder before going into the INBOX just as the SPAM that works so
well. I've searched the internet but found nothing that will help me filter
based on TO:, FROM: CC: etc. headers.
Please help this newbie! The TO: and FROM examples below didn't work so I
commented out until I get this figured out.
Here is my current maildrop mailfilter.
SHELL="/bin/sh"
import EXT
import HOST
LOGFILE = "maildrop.log"
#VERBOSE="5"
if ( /^X-Spam-Status: *Yes/)
{
# make sure .Spam folder exists
`test -d ./Maildir/.Spam`
if( $RETURNCODE == 1 )
{
`maildirmake -f Spam ./Maildir`
}
# then try delivering to the Spam folder
exception {
to
"/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir/.Spam/"
}
}
if ( /^Delivered-To: priv...@aspadvice.com/ )
{
to
"/usr/local/vpopmail/mail.adminblogs.com/steve/Maildir/.private-recreation"
}
# Store messages to Qmail in their own folder
#if (/^To:priv...@aspadvice.com/)
#{
# to
"/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir/.private-recr
eation"
#}
# Store messages to Qmail in their own folder
#if (/^From:.*bgeek.com/)
#{
# to
"/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir/.Lists"
#}
# Default delivery
exception {
to "/usr/local/vpopmail/domains/mail.adminblogs.com/steve/Maildir"
}