Failed to restart MailScanner

Jerry Benton jerry.benton at mailborder.com
Thu May 5 19:12:08 UTC 2016


remove your spam rule.

service MailScanner stop
killall -r MailScanner
rm -f /var/run/MailScanner.pid
service MailScanner start


-
Jerry Benton
www.mailborder.com



> On May 5, 2016, at 3:09 PM, Gao <gao at pztop.com> wrote:
> 
> 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
> 
> 
> 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/listinfo/mailscanner
> 

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


More information about the MailScanner mailing list