Failed to restart MailScanner

Gao gao at pztop.com
Thu May 5 19:09:47 UTC 2016


My system is CentOS 7 64bit and running MailScanner 4.85.2

I just add a spam rule in /etc/MailScanner/spam.assassin.prefs.conf and 
then I try to restart MailScanner, but I don't see MailScanner restarted 
as normal as before. The postfix won't stop and everything just kept 
going. Of course the new rule I added does not work.

Tried few times and now I see these lines in /var/log/messages when I 
issue "systemctl restart MailScanner":

May  5 11:59:31 zeta systemd: Starting SYSV: MailScanner is an 
open-source E-Mail Gateway Virus Scanner....
May  5 11:59:31 zeta MailScanner: /etc/rc.d/init.d/MailScanner: line 78: 
[: =: unary operator expected
May  5 11:59:31 zeta MailScanner: Starting MailScanner daemons:
May  5 11:59:31 zeta MailScanner: incoming postfix: [  OK  ]
May  5 11:59:31 zeta MailScanner: outgoing postfix: [  OK  ]
May  5 11:59:31 zeta MailScanner: MailScanner:       [  OK  ]
May  5 11:59:31 zeta systemd: Failed to read PID from file 
/var/run/MailScanner.pid: Invalid argument

I looked the init script at line 78:
77 # Check that networking is up.
78 [ ${NETWORKING} = "no" ] && exit 0

Not sure what happens here. I didn't change the /etc/init.d/MailScanner 
file.

Please help.

Gao

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20160505/c73c3712/attachment.html>


More information about the MailScanner mailing list