MailScanner process failing after spam found
Stephen Courtney
scourtney at dataswift.co.uk
Mon Oct 24 13:27:35 IST 2011
I've set up a freshly installed Ubuntu 11.10 system with Postfix, ClamAV, SpamAssassin and MailScanner (the latter from the Baruwa repository at http://www.baruwa.org/download/) .
Postfix is configured to relay messages through to our main email server (Microsoft Exchange 2010, though that's not relevant to my issue).
If I disable SpamAssassin, messages are successfully scanned by MailScanner (using ClamAV for virus tests) and then relayed through or rejected as appropriate. With SpamAssassin enabled however, non-spam email gets delivered correctly, but any spam gets stuck in the 'hold' queue in Postfix, and I get a log with the following in /var/log/syslog:
Oct 24 13:15:18 mailgateway MailScanner[8128]: MailScanner E-Mail Virus Scanner version 4.84.3 starting...
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading configuration file /etc/MailScanner/MailScanner.conf
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading configuration file /etc/MailScanner/conf.d/baruwa.conf
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset htmlsigs for keyword inlinehtmlsig
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset textsigs for keyword inlinetextsig
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset sigimgs for keyword attachimageinternalname
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset sigimgfiles for keyword attachimagename
Oct 24 13:15:18 mailgateway MailScanner[8128]: Read 867 hostnames from the phishing whitelist
Oct 24 13:15:18 mailgateway MailScanner[8128]: Read 4252 hostnames from the phishing blacklists
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaLowScore
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Populating spam score settings
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: no spam score settings found using defaults
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaShouldScan
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Starting scanning settings
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Read 2 settings
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaBlacklist
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Starting blacklists
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Read 0 blacklist items
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Ip blocks blacklisted:
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaSQL
Oct 24 13:15:18 mailgateway MailScanner[8129]: Baruwa: Starting SQL logger
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaHighScore
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Populating high spam score settings
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: no high spam score settings found using defaults
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaWhitelist
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Starting whitelists
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Read 1 whitelist items
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Ip blocks whitelisted:
Oct 24 13:15:18 mailgateway MailScanner[8128]: Using SpamAssassin results cache
Oct 24 13:15:18 mailgateway MailScanner[8128]: Connected to SpamAssassin cache database
Oct 24 13:15:18 mailgateway MailScanner[8128]: Enabling SpamAssassin auto-whitelist functionality...
Oct 24 13:15:19 mailgateway MailScanner[8128]: Connected to Processing Attempts Database
Oct 24 13:15:19 mailgateway MailScanner[8128]: Found 1 messages in the Processing Attempts Database
Oct 24 13:15:19 mailgateway MailScanner[8128]: Using locktype = flock
Oct 24 13:20:56 mailgateway MailScanner[8128]: Making attempt 2 at processing message 535B3181EA0.A3B3A
Oct 24 13:20:56 mailgateway MailScanner[8128]: New Batch: Scanning 1 messages, 1473 bytes
Oct 24 13:20:56 mailgateway MailScanner[8128]: Virus and Content Scanning: Starting
Oct 24 13:20:59 mailgateway MailScanner[8128]: Spam Checks: Found 1 spam messages
Oct 24 13:20:59 mailgateway MailScanner: Process did not exit cleanly, returned 255 with signal 0
If I run MailScanner with debug enabled, it gets stuck after displaying 'Building a message batch to scan'.
Both MailScanner --lint and Spamassassin --lint show no issues.
If anyone has any suggestions on what to check, I'd be grateful!
Stephen
--
Stephen Courtney - Support Consultant
Email: scourtney at dataswift.co.uk
Direct Phone: 01983 885971
More information about the MailScanner
mailing list