MailScanner and SpamAssassin timeout

Valentin Laskov it at festa.bg
Wed Jan 3 12:56:13 UTC 2018


Thank you Shawn,

It seems you are right.

root at ns:/home/laskov# ls -la /root/.spamassassin
........
-rw-------  1 root root   2580480 oct  2 14:49 bayes_toks.expire9947
-rw-------  1 root root   1306624 oct 29 14:58 bayes_toks.expire9954
-rw-------  1 root root   2535424 dec 11 13:38 bayes_toks.expire9984
-rw-------  1 root root   2465792 oct 25 10:52 bayes_toks.expire9990
-rw-------  1 root root   2572288 sep 26 05:38 bayes_toks.expire9992
-rw-r--r--  1 root root      1869 oct 19  2016 user_prefs

root at ns:/home/laskov# ls -la /root/.spamassassin/bayes_toks.expire* | wc -l
4573

But I still have no idea how to resolve this.

На 03.01.2018 г. в 13:17, Shawn Iverson написа:
> 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 
> <mailto: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,__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
>
>
>
>
>     -- 
>     MailScanner mailing list
>     mailscanner at lists.mailscanner.info
>     <mailto:mailscanner at lists.mailscanner.info>
>     http://lists.mailscanner.info/mailman/listinfo/mailscanner
>     <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 <mailto:iversons at rushville.k12.in.us>
>
>
>
>
>

-- 
Поздрави!

Валентин Ласков
Отговорник КИПО
"Феста Холдинг" АД
бул. "Вл. Варненчик" 48
9000 гр. Варна
тел.:   +359 52 669137
GSM: +359 888 669137
Fax:   +359 52 669110

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


More information about the MailScanner mailing list