I'm trying to get SpamAssassin to work with Maildrop. I'm using
spamassassin version 2.61 with the latest versions of courier-imap,
maildrop and sendmail. I have an account called nospam which is the
account that all spam/viruses should go to. Here's the problem:
In /etc/maildroprc I have the following:
logfile "mailfilter-log.txt"
if ( $SIZE < 26144 )
{
exception {
xfilter "/usr/local/bin/spamassassin -D"
}
}
if (/^X-Spam-Flag: *YES/)
{
exception {
to "! nospam"
}
}
else
{
exception {
to "$HOME/Maildir/"
}
}
When a piece of spam comes in, it gets sent to the "nospam" account,
however, the message keeps looping and filling up the mail queue. When I
login to the nospam IMAP mailbox, I see 10 copies of the same spam
message. Then I edited the maildroprc file to send mail to nospam's
Maildir, but it never gets there. Can someone give me a hand with this ?
I used to use MailScanner, but it didn't use the full functionality of
SpamAssassin. All I want to do is send spam directly to the nospam
account or move it into /usr/home/nospam/Maildir, as well as find a way to
turn on logging for maildrop.
Thanks,
Mike McNeil