Qmail Scanner not Detecting Spamassassin

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
bitworks
New Forum User
New Forum User
Posts: 1
Joined: Fri Feb 08, 2013 2:12 pm
Location: Taylors Falls, MN

Qmail Scanner not Detecting Spamassassin

Unread post by bitworks »

I had a problem with qmail-scanner not detecting spamassassin on one of our servers. After much investigation it finally turned out that spamc was not liking the test e-mails used when qmail-scanner-reconfigure was being run. During the running of the script it checks two emails to detect spamassassin, one of which should be spam and one of which should be clean.

If qmail-scanner is not seeing or detecting spamassassin, get yourself to a command line and run the following commands. First command should come back marked as spam (X-Spam-Status: Yes) and the second as clean (X-Spam-Status: No).

/usr/bin/spamc < /usr/share/qmail-scanner/contrib/spamc-nasty.eml
/usr/bin/spamc < /usr/share/qmail-scanner/contrib/spamc-nice.eml

In order to fix you have to update the .eml files to make sure they are being marked correctly. In our case the "nice" email was being marked as spam, we changed the date in the e-mail to something more recent and it worked fine. :mrgreen:
Post Reply