On Wed, Jun 21, 2023 at 12:00:41PM +0200, natan wrote:
> I tested via configurations
> 
> 1)dovecot10 + spamassasin-3.x - problem not exists
> 2)dovecot11 + spamassasin-3.x - problem not exists
> 3)dovecot10 + spamassasin-4.x - problem exists
> 4)dovecot11 + spamassasin-4.x - problem exists
> 
> all dovecot have this same amavisd-new-2.11.1
> 
> If there was a problem in the path /tmp and/or amavis configuration, the
> problem would be everywhere, not just with only in spamassassin-4.x

That does not logically necessarily follow. It would only follow if
*only* possibilities were "some bug outside of spamassasssin ALWAYS
triggers" and "some bug outside of spamassassin NEVER triggers".

There however also exists the possibility that "some bug outside of
spamassassin ONLY SOMETIMES triggers - depending on some yet undefined
condition (timing, race condition, specific thing produced by SA4 but
not SA3, etc.)"

In which case, the problem might be something other than SA4, but
which triggers (only or just much more regularly) in conjunction with
SA4. But of course, it very well could be SA4.

To test, I'd use "strace -ff -o /tmp/log.txt -e file -p $PID" to
determine which process exactly is creating which files, and which
process is removing them, both on SA3 and SA4 machines, and see which
process creates something which it then doesn't remove.

> Again it says that spamassassin-4.x deletes teporary files but not all and
> it creates more than it deletes

That could be one of the possible reasons, yes.

> It seems as if for some reason specific files (e-mails) could not be deleted

If that is indeed the case, first step would be finding out exactly
which files are not being deleted (and by whom).

Another way to prove that the problem is exclusively in spamassassin
is to reproduce the problem ONLY with spamassassin (i.e. without
dovecot, amavisd, etc. being involved at all) - e.g. by manually 
running  "spamassassin -t /tmp/blah.mbox" and showing that it creates 
and leaves behind some temporary files.

-- 
Opinions above are GNU-copylefted.

Reply via email to