Amavisd routinely fails to correctly tag Spam via SpamAssassin calls
Mark Martinec via amavis-users
amavis-users at amavis.org
Tue May 6 19:47:05 CEST 2014
>>> *ANY* insight into how to debug why Amavis is utterly failing to scan
>>> obvious spam would be much appreciated.
>> Some interesting bits from the Amavis logs. There is nothing from:
> This seems to happen with any email where Amavis logs:
> Mar 24 15:53:32 edge01 amavis: (41408-16) p001 1 Content-Type:
> text/html, size: 6284 B, name:
> Mar 24 15:53:32 edge01 amavis: (45326-08) p001 1 Content-Type:
> text/html, size: 6293 B, name:
> I.e., it happens specifically on text/html messages with no text/plain
> Mar 14 13:31:37 edge02 amavis: (35017-12) prolong_timer
> ask_daemon_internal_scan: timer 336, was 10, deadline in 480.0 s
> Mar 14 13:31:37 edge02 amavis: (35017-12) rw_loop: needline=0,
> flush=0, wr=0, timeout=335.997
> Mar 14 13:31:37 edge02 amavis: (35017-12) rw_loop: receiving
> Mar 14 13:31:37 edge02 postfix/smtpd: disconnect from
> Mar 14 13:31:37 edge02 amavis: (35017-12) SA dbg: util: setuid:
> ruid=496 euid=496
This is most weird. Notice the PID change from 35017 to 38239 while
the 35017-12 task. Looks like an uncontrolled fork has happened.
Are you seeing any crashed perl processes in /var/log/messages - check
for 'exited on signal' there.
Do you have a
$sa_spawned = 1;
If not, try turning it on: it makes SpamAssassin run in a forked
which takes more memory, but isolates catastrophic failures in
from taking down the amavisd process.
What version of SpamAssassin and perl was this?
Is your perl compiled with threads support? ( perl -V | fgrep --color
More information about the amavis-users