Upgrade Wrecks MailScanner

Mark Sapiro mark at msapiro.net
Tue Oct 11 18:36:18 UTC 2016


On 10/11/2016 10:48 AM, Paul Scott wrote:
> 
> Here is the output of MailScanner –lint:
> 
> 
> [root at mail ~]# MailScanner --lint
> 
> Trying to setlogsock(unix)
> 
> Could not read Custom Functions directory
> /usr/lib/MailScanner/MailScanner/CustomFunctions at
> /usr/share/MailScanner/perl/MailScanner/Config.pm line 735

What do you have in MailScanner.conf for Custom Functions Dir? This is
normally

Custom Functions Dir = /usr/share/MailScanner/perl/custom

Does that directory exist?


...

> Checking version numbers...
> 
> Version installed (5.0.3) does not match version stated in
> 
> MailScanner.conf file (4.84.5), you may want to run ms-upgrade-conf
> 
> to ensure your MailScanner.conf file contains all the latest settings.


And have you run ms-upgrade-conf?


> Your envelope_sender_header in spamassassin.conf is correct.
> 
>  
> 
> Checking for SpamAssassin errors (if you use it)...
> 
> Using SpamAssassin results cache
> 
> Connected to SpamAssassin cache database
> 
> dcc: dccifd -> check skipped: dcc: failed to connect to a socket
> /var/dcc/dccifd: Connection refused

This is a Spamassassin DCC issue.


> SpamAssassin reported no errors.
> 
> Connected to Processing Attempts Database
> 
> Created Processing Attempts Database successfully
> 
> There are 0 messages in the Processing Attempts Database
> 
> Using locktype = flock
> 
> MailScanner.conf says "Virus Scanners = clamav avg"
> 
> mktemp: invalid option -- -
> 
> Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]
> 
> Found these virus scanners installed: clamavmodule
> 
> ===========================================================================
> 
> Virus and Content Scanning: Starting
> 
> mktemp: invalid option -- -
> 
> Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]
> 
> ERROR: Option --tempdir requires a non-empty string argument
> 
> ERROR: Can't parse command line options


/usr/lib/MailScanner/wrapper/clamav-wrapper contains

TempDir=`mktemp -d --tmpdir=${IWD}`

${IWD} should be set from Incoming Work Dir in MailScanner.conf (default
/var/spool/MailScanner/incoming)

What does

/usr/sbin/ms-peek IncomingWorkDir /etc/MailScanner/MailScanner.conf

report?

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list