MailScanner after restarting itself SpamAssasin stops working

Rick Cooper rcooper at dwford.com
Fri Jul 8 15:19:57 UTC 2016


It would appear the storable perl module is not installed. Install (package
or cpan -i Storable) it and try again
 
Rick

  _____  

From: MailScanner
[mailto:mailscanner-bounces+rcooper=dwford.com at lists.mailscanner.info] On
Behalf Of NOVAK TOMAŽ
Sent: Friday, July 08, 2016 3:50 AM
To: mailscanner at lists.mailscanner.info
Subject: MailScanner after restarting itself SpamAssasin stops working



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 L

 

 

 

 

 

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


More information about the MailScanner mailing list