You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2022/10/14 14:09:47 UTC
[Bug 8064] New: Sa-learn takes a very long time to learn each letter
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8064
Bug ID: 8064
Summary: Sa-learn takes a very long time to learn each letter
Product: Spamassassin
Version: 3.4.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Learner
Assignee: dev@spamassassin.apache.org
Reporter: allex@data-netsoft.ru
Target Milestone: Undefined
Created attachment 5845
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5845&action=edit
Log and settings
When I teach him the Bayesian classifier, a lot of time is spent on each
letter, more than 30 seconds! I can't understand why this is happening. Here is
a piece of the sa-learn log where you can see the delay:
---- begin -----
sa-learn -D --spam --no-sync --username=vmail /tmp/111.msg
...
Oct 14 16:18:14.126 [482455] dbg: uri: canonicalizing parsed uri:
mailto:allex@mydomain.com
Oct 14 16:18:14.126 [482455] dbg: uri: cleaned uri: mailto:allex@mydomain.com
Oct 14 16:18:14.126 [482455] dbg: uri: added host: mydomain.com domain:
mydomain.com
Oct 14 16:18:14.126 [482455] dbg: uri: canonicalizing domainkeys uri:
domainkeys:mydomain.com
Oct 14 16:18:14.126 [482455] dbg: uri: cleaned uri: domainkeys:mydomain.com
Oct 14 16:18:14.126 [482455] dbg: uri: added host: mydomain.com domain:
mydomain.com
Oct 14 16:18:14.358 [482455] dbg: bayes: tokenized body: 11 tokens
Oct 14 16:18:14.358 [482455] dbg: bayes: tokenized uri: 5 tokens
Oct 14 16:18:14.358 [482455] dbg: bayes: tokenized invisible: 0 tokens
Oct 14 16:18:14.360 [482455] dbg: bayes: tokenized header: 145 tokens
Oct 14 16:18:49.346 [482455] dbg: bayes: tokenized body: 11 tokens
Oct 14 16:18:49.346 [482455] dbg: bayes: tokenized uri: 5 tokens
Oct 14 16:18:49.346 [482455] dbg: bayes: tokenized invisible: 0 tokens
Oct 14 16:18:49.347 [482455] dbg: bayes: tokenized header: 145 tokens
Oct 14 16:19:25.725 [482455] dbg: bayes: seen
(92892bf23689ce621c550aee0ed36d2e8264a618@sa_generated) put
Oct 14 16:19:25.725 [482455] dbg: bayes: learned
'92892bf23689ce621c550aee0ed36d2e8264a618@sa_generated', atime: 1665752160
Oct 14 16:19:25.725 [482455] dbg: TxRep: learning a message
Oct 14 16:19:25.725 [482455] dbg: check: pms new, time limit in 228.393 s
Oct 14 16:19:25.725 [482455] dbg: message: using Return-Path header as
EnvelopeFrom: 'allex@mydomain.com'
Oct 14 16:19:25.725 [482455] dbg: check: tagrun - tag SENDERDOMAIN is now
ready, value: mydomain.com
Oct 14 16:19:25.725 [482455] dbg: check: tagrun - tag AUTHORDOMAIN is now
ready, value: mydomain.com
...
...
----- end ------
I thought at first that it might be Ackdns, I tried to comment out the plugin
in the v340.pre file, but it didn't help.
I can't understand why there is a delay in these places. I tried running
spamassassin without using Mysql - the delay in training is about the same.
I didn't include any exclusive parameters. Everything was set up with a clean
install.
I attach the full output of sa-lern logs, as well as all my configuration
files.
Otherwise, spamassassin works as it should in a bundle of
Postfix+Dovecot+Spamassassin+Roundcube (Ubuntu 20.04). I need to get rid of the
delay, because when a user clicks the "spam" button in Roundcube, it takes a
very long time until the email is examined. Users complain about such a long
delay.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 8064] Sa-learn takes a very long time to learn each letter
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8064
Henrik Krohns <ap...@hege.li> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |apache@hege.li
--- Comment #1 from Henrik Krohns <ap...@hege.li> ---
Is this for any message or that specific 111.msg? Can you share it?
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 8064] Sa-learn takes a very long time to learn each letter
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8064
Allex <al...@data-netsoft.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |allex@data-netsoft.ru
--- Comment #2 from Allex <al...@data-netsoft.ru> ---
Created attachment 5850
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5850&action=edit
MSG 111.msg and 222.msg
The delay occurs not only on this email, it occurs on all emails. I have now
tried to move some emails to spam using the "Spam" button in Roundcube. Some
emails move quickly ~2-3 seconds. The delay is different each time, from 10
seconds to 60 seconds. I am attaching letter 111 .msg, letter 222.msg moved
very quickly through the Roundcube web interface. I suspected that maybe it was
because of DNS, I tried different DNS on the server (1.1.1.1, 8.8.8.8) - the
problem still exists.
I do not know what else can be done. :(
--
You are receiving this mail because:
You are the assignee for the bug.