MailScanner and SpamAssassin timeout

Valentin Laskov it at festa.bg
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
90

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 
required=5
10:39:11 Jan  3 10:39:11.720 [11536] dbg: check: 
tests=MISSING_DATE,MISSING_HEADERS,MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS
10:39:11 Jan  3 10:39:11.721 [11536] dbg: check: 
subtests=__BODY_TEXT_LINE,__DKIM_DEPENDABLE,__EMPTY_BODY,__GATED_THROUGH_RCVD_REMOVER,__HAS_FROM,__HAS_MESSAGE_ID,__HAS_MSGID,__KHOP_NO_FULL_NAME,__MISSING_REF,__MISSING_REPLY,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__MSOE_MID_WRONG_CASE,__NONEMPTY_BODY,__NOT_SPOOFED,__SANE_MSGID,__SUBJ_SHORT,__TO_NO_ARROWS_R,__UNUSABLE_MSGID
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 CustomAction.pm.orig 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: 
__alarm__ignore__(26/::Plugin::Check::run_eval_tests/1105)
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/Sendmail.pm line 731.


Thank you!

Valentin Laskov




More information about the MailScanner mailing list