MailScanner after restarting itself SpamAssasin stops working

NOVAK TOMAŽ NOVAK.TOMAZ at adria-mobil.si
Fri Jul 8 07:49:35 UTC 2016


Hi!

I have a problem, after MailScanner restarts himself i get this:

Jul 08 07:00:11 server MailScanner[30506]: Could not use Custom Function code /usr/share/MailScanner/perl/custom/MailWatch.pm, it could not be "require"d. Make sure the last line is "1;" and the module is correct with perl -wc (Error: Can't locate Storable.pm:   Permission denied at /usr/share/MailScanner/perl/custom/MailWatch.pm line 25.)
Jul 08 07:00:11 server MailScanner[30506]: BEGIN failed--compilation aborted at /usr/share/MailScanner/perl/custom/MailWatch.pm line 25.
Jul 08 07:00:11 server MailScanner[30506]: Compilation failed in require at /usr/share/MailScanner/perl/MailScanner/Config.pm line 752.
Jul 08 07:00:11 server MailScanner[30506]: Reading configuration file /etc/MailScanner/MailScanner.conf
Jul 08 07:00:11 server MailScanner[30506]: Reading configuration file /etc/MailScanner/conf.d/README
Jul 08 07:00:11 server MailScanner[30506]: Read 501 hostnames from the phishing whitelist
Jul 08 07:00:11 server MailScanner[30506]: Read 15915 hostnames from the phishing blacklists
Jul 08 07:00:11 server MailScanner[30506]: Config: calling custom init function MailWatchLogging
Jul 08 07:00:11 server MailScanner[30506]: You want to use SpamAssassin but have not installed it.
Jul 08 07:00:11 server MailScanner[30506]: I will run without SpamAssassin for now, you will not detect much spam until you install SpamAssassin.

perl -wc /usr/share/MailScanner/perl/custom/MailWatch.pm returns no errors (it is working after manual restart of MailScanner as root or postfix user).

After that MailScanner works, email flow works, but it is not checked with SpamAssasin.
What is going on here ?

I get the same if i restart MailScanner from cron with:
/etc/init.d/./mailscanner restart or
/usr/sbin/ms-update-sa

But if i run /usr/sbin/ms-update-sa or /etc/init.d/./mailscanner restart manualy as root, MailScanner restarts itself without any problems.

My software versions:

MailScanner Version = 5.0.2
PHP Version = 5.5.14
MySQL Version = 5.6.30

What am i doing wrong, i can not figure it out :(





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


More information about the MailScanner mailing list