<p>Run the lint tests as the postfix user (sudo -i, then su - postfix -s /bin/bash). What you describe sound a lot like a permissions issue (but might be taint-related too), so you need test as the user MS runs as.</p>
<p>Cheers<br>
-- <br>
-- Glenn</p>
<div class="gmail_quote">Den 24 okt 2011 14:33 skrev "Stephen Courtney" <<a href="mailto:scourtney@dataswift.co.uk">scourtney@dataswift.co.uk</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've set up a freshly installed Ubuntu 11.10 system with Postfix, ClamAV, SpamAssassin and MailScanner (the latter from the Baruwa repository at <a href="http://www.baruwa.org/download/" target="_blank">http://www.baruwa.org/download/</a>) .<br>
<br>
Postfix is configured to relay messages through to our main email server (Microsoft Exchange 2010, though that's not relevant to my issue).<br>
<br>
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:<br>
<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: MailScanner E-Mail Virus Scanner version 4.84.3 starting...<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading configuration file /etc/MailScanner/MailScanner.conf<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading configuration file /etc/MailScanner/conf.d/baruwa.conf<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset htmlsigs for keyword inlinehtmlsig<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset textsigs for keyword inlinetextsig<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset sigimgs for keyword attachimageinternalname<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Reading ruleset sigimgfiles for keyword attachimagename<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Read 867 hostnames from the phishing whitelist<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Read 4252 hostnames from the phishing blacklists<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaLowScore<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Populating spam score settings<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: no spam score settings found using defaults<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaShouldScan<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Starting scanning settings<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Read 2 settings<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaBlacklist<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Starting blacklists<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Read 0 blacklist items<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Ip blocks blacklisted:<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaSQL<br>
Oct 24 13:15:18 mailgateway MailScanner[8129]: Baruwa: Starting SQL logger<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaHighScore<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Populating high spam score settings<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: no high spam score settings found using defaults<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Config: calling custom init function BaruwaWhitelist<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Starting whitelists<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Read 1 whitelist items<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Baruwa: Ip blocks whitelisted:<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Using SpamAssassin results cache<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Connected to SpamAssassin cache database<br>
Oct 24 13:15:18 mailgateway MailScanner[8128]: Enabling SpamAssassin auto-whitelist functionality...<br>
Oct 24 13:15:19 mailgateway MailScanner[8128]: Connected to Processing Attempts Database<br>
Oct 24 13:15:19 mailgateway MailScanner[8128]: Found 1 messages in the Processing Attempts Database<br>
Oct 24 13:15:19 mailgateway MailScanner[8128]: Using locktype = flock<br>
Oct 24 13:20:56 mailgateway MailScanner[8128]: Making attempt 2 at processing message 535B3181EA0.A3B3A<br>
Oct 24 13:20:56 mailgateway MailScanner[8128]: New Batch: Scanning 1 messages, 1473 bytes<br>
Oct 24 13:20:56 mailgateway MailScanner[8128]: Virus and Content Scanning: Starting<br>
Oct 24 13:20:59 mailgateway MailScanner[8128]: Spam Checks: Found 1 spam messages<br>
Oct 24 13:20:59 mailgateway MailScanner: Process did not exit cleanly, returned 255 with signal 0<br>
<br>
If I run MailScanner with debug enabled, it gets stuck after displaying 'Building a message batch to scan'.<br>
<br>
Both MailScanner --lint and Spamassassin --lint show no issues.<br>
<br>
If anyone has any suggestions on what to check, I'd be grateful!<br>
<br>
Stephen<br>
<br>
--<br>
Stephen Courtney - Support Consultant<br>
Email: <a href="mailto:scourtney@dataswift.co.uk">scourtney@dataswift.co.uk</a><br>
Direct Phone: 01983 885971<br>
<br>
<br>
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</blockquote></div>