MailScanner and SpamAssassin timeout

Shawn Iverson iversons at rushville.k12.in.us
Wed Jan 3 11:17:10 UTC 2018


Going to take a guess, I think bayes may be the primary issue....

__alarm__ignore__(26/::Plugin::Check::run_eval_tests/1105)

You can also remove this file, unless it contains custom code you need move
into CustomAction.pm:

Skipping Custom Function file CustomAction.pm.orig as its name does not end
in .pm or .pl

And these, which could be related...seems that email metadata is lost in
the process of scanning the email...probably need to fix bayes first and
see what happens.

mktemp: invalid option -- '-'
Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]

Can't use an undefined value as an ARRAY reference at
/usr/share/MailScanner/perl/MailScanner/Sendmail.pm line 731.



On Wed, Jan 3, 2018 at 5:31 AM, Valentin Laskov <it at festa.bg> wrote:

> 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,__NONE
> MPTY_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
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>


-- 
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x1171
iversons at rushville.k12.in.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20180103/c509a547/attachment.html>


More information about the MailScanner mailing list