Upgrade Wrecks MailScanner

Paul Scott sales at edenusa.com
Wed Oct 12 18:41:27 UTC 2016


Hello Mark,

In answer to your questions, I have the following:

1. Everything in the MailScanner --lint test is now working (I fixed the DCC issue by manually starting the dccfid service), except the "mktemp" error, which is as follows:

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
===========================================================================

2. The output of the command "[root at mail log]# /usr/sbin/ms-peek IncomingWorkDir /etc/MailScanner/MailScanner.conf" is as follows:

/var/spool/MailScanner/incoming


3. The content of the "defaults" file shows the following:

## Files

# MailScanner configuration file
# 
# by default the file /etc/MailScanner/MailScanner.conf is used to pull
# various settings for the daemon and permissions for working directories.
# You may set a different custom file here. Normally this should not be
# changed. Any custom settings in /etc/MailScanner/conf.d/ will be
# picked up without changing this value.  
# 
ms_conf=/etc/MailScanner/MailScanner.conf


4. Your comment " MailScanner is not scanning messages. There is an issue because MailScanner's init.d script used to start the two required sendmail processes in a sendmail configuration. It no longer does this so sendmail is probably not being started as required by MailScanner." IS EXACTLY CORRECT.  How can I go about fixing this, so that sendmail is started with MailScanner?  I used to be able to do this:

[root at mail MailScanner]# service MailScanner restart
MailScanner: unrecognized service
[root at mail MailScanner]#

Now I have to restart MailScanner this way:

[root at mail MailScanner]# service mailscanner restart
Restarting MailScanner ...


MailScanner restarted with process id 13361
[root at mail MailScanner]#

So I just need to know how to get sendmail and MailScanner to start up properly, the way they used to, and I should be back in business.

Thank you so much for all of your help!  Much appreciated!

Sincerely, Paul Scott





-----Original Message-----
From: MailScanner [mailto:mailscanner-bounces+sales=edenusa.com at lists.mailscanner.info] On Behalf Of Mark Sapiro
Sent: Wednesday, October 12, 2016 7:47 AM
To: mailscanner at lists.mailscanner.info
Subject: Re: Upgrade Wrecks MailScanner

On 10/11/2016 09:05 PM, Paul Scott wrote:
> 
> The MyMailScannerConfig.conf file appears to be a copy of my OLD MailScanner.conf file.  So that explains partially what is going on, if indeed, the ENTIRE new MailScanner.conf is being wiped out by this "include" file.   So I renamed that file, and now, lo-and-behold, the --lint test works much better, but still has some errors:
> 
> [root at mail conf.d]# MailScanner --lint Trying to setlogsock(unix)
> 
> Reading configuration file /etc/MailScanner/MailScanner.conf Reading 
> configuration file /etc/MailScanner/conf.d/BACKUP Reading 
> configuration file /etc/MailScanner/conf.d/README Read 501 hostnames 
> from the phishing whitelist Read 19129 hostnames from the phishing 
> blacklists
> Config: calling custom init function SQLBlacklist
> Config: calling custom init function MailWatchLogging
> Config: calling custom init function SQLWhitelist
> 
> Checking version numbers...
> Version number in MailScanner.conf (5.0.3) is correct.
> 
> 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 an issue between Spamassassin and DCC. Something is not configuredcorrectly or DCC isn't running or ??


> 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

This comes from /usr/lib/MailScanner/wrapper/clamav-wrapper.

I think I asked before, what does

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


report, or is there a setting for 'ms_conf' in /etc/MailScanner/defaults other than

ms_conf=/etc/MailScanner/MailScanner.conf


> ======================================================================
> =====
> 
> If any of your virus scanners (clamavmodule) are not listed there, you 
> should check that they are installed correctly and that MailScanner is 
> finding them correctly via its virus.scanners.conf.
> Config: calling custom end function SQLBlacklist
> Config: calling custom end function MailWatchLogging
> Config: calling custom end function SQLWhitelist
> 
> So it looks better now, but I don't see the normal MailScanner messages in the maillog.log, like I used to.  All of the startup messages appear, for each child, but after that, all I see are standard sendmail and popper messages in the log.  No MailScanner messages, like these:


MailScanner is not scanning messages. There is an issue because MailScanner's init.d script used to start the two required sendmail processes in a sendmail configuration. It no longer does this so sendmail is probably not being started as required by MailScanner.
-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner



More information about the MailScanner mailing list