MailScanner and SpamAssassin timeout

Valentin Laskov it at
Wed Jan 3 10:31:01 UTC 2018

Hi and Happy New Year!

I see a great delay in the work of MailScanner and SpamAssassin. I 
increased SpamAssassin timeout in MailScanner.conf but I know this is 
not a solution. I still have

# cat /var/log/maillog | grep "SpamAssassin timed out" | wc -l

Please help me to debug my configuration!

This is the output of MailScanner --debug-sa
10:39:11 Jan  3 10:39:11.708 [11536] dbg: rules: compiled meta tests
10:39:11 Jan  3 10:39:11.718 [11536] dbg: check: is spam? score=4.178 
10:39:11 Jan  3 10:39:11.720 [11536] dbg: check: 
10:39:11 Jan  3 10:39:11.721 [11536] dbg: check: 
10:39:11 Jan  3 10:39:11.724 [11536] dbg: check: tagrun - tag DKIMDOMAIN 
is still blocking action 0
10:39:11 Jan  3 10:39:11.733 [11536] dbg: plugin: 
Mail::SpamAssassin::Plugin::Bayes=HASH(0x418ddc0) implements 
'learner_close', priority 0
10:39:11 Jan  3 10:39:11.736 [11536] dbg: bayes: untie-ing
=>10:39:11 Building a message batch to scan...
=>10:51:59 Have a batch of 1 message.
10:52:00 Stopping now as you are debugging me.

This is the output of MailScanner --lint . The timeout is just after 
"Connected to SpamAssassin cache database"

Trying to setlogsock(unix)
Skipping Custom Function file as its name does not 
end in .pm or .pl

Reading configuration file /etc/MailScanner/MailScanner.conf
Reading configuration file /etc/MailScanner/conf.d/README
Reading configuration file /etc/MailScanner/conf.d/custom.laskov.conf
Read 1501 hostnames from the phishing whitelist
Read 12755 hostnames from the phishing blacklists

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
bayes: expire_old_tokens: 
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 = posix
MailScanner.conf says "Virus Scanners = clamd"
mktemp: invalid option -- '-'
Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]
Found these virus scanners installed: clamd
Can't use an undefined value as an ARRAY reference at 
/usr/share/MailScanner/perl/MailScanner/ line 731.

Thank you!

Valentin Laskov

More information about the MailScanner mailing list