Thanks a lot Marc.
I actually found something that works for me:
I replaced `sa-learn -u xx --ham`
with
`spamc -u xx -L ham`
Archiving wasn't as fast as simply moving messages, but was considerably
faster - fast enough that no errors on Roundcube are reported.
Best,
Francis
---
Francis Augusto Medeiros-Logeay
Oslo, Norway
On 2024-05-18 12:06, Marc wrote:
Today I realized that it was indeed the sa-learn that is slowing down
my
Archiving.
I added an «&» on the end of the line that calls the sa-learn (called
by
the report-ham.sieve script):
exec /usr/bin/sa-learn -u ${1} --ham &
Does anyone thing this is a bad idea? I noticed that archiving got way
faster this way…
You fork/spawn a new process. So depending on how many messages are
moved, that many processes are created. I am not using sa-learn, but I
think this could be a memory consuming task. So manybe check for OOM
crashes or your swap space slowing everything down.
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org