You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert Fitzpatrick <li...@webtent.net> on 2006/12/12 22:44:44 UTC

Delays slowing SMTP connections

Having the same problem with two gateways running FreeBSD with Postfix
2.2.9 and amavisd-new content filtering using SA 3.1.x where delays I
think are running high. The delay on a message is generally above 10 and
amavisd-new logs show 96-97% of that delay is SA. And this with no .cf
files being loaded. Here is my local.cf file:

rewrite_header Subject *****SPAM*****
lock_method flock
report_safe 1
trusted_networks <snip>
use_bayes 0
#bayes_path /var/amavis/.spamassassin/bayes
#timelog_path /var/amavis/.spamassassin/assassin.log
#auto_learn 1  # deprecated
skip_rbl_checks 1
#dns_available yes
score RAZOR2_CHECK 2.500
score BAYES_99 4.300
score BAYES_80 3.000

I turned off bayes and dns now for troubleshooting. If I add many .cf
files, it will slow SMTP connections to timing out. Here is the amavis
log where is says SA Check is consuming all the delay, timings running
5000-10000 ms, that is not normal, no?

Dec 12 16:39:06 esmtp amavis[53345]: (53345-02) TIMING [total 9637 ms] - SMTP EHLO: 2 (0%)0, SMTP pre-MAIL: 0 (0%)0, SMTP pre-DATA-flush: 3 (0%)0, SMTP DATA: 205 (2%)2, body_digest: 1 (0%)2, gen_mail_id: 0 (0%)2, mime_decode: 46 (0%)3, get-file-type3: 18 (0%)3, decompose_part: 1 (0%)3, parts_decode: 0 (0%)3, AV-scan-1: 27 (0%)3, spam-wb-list: 2 (0%)3, SA msg read: 1 (0%)3, SA parse: 4 (0%)3, SA check: 9195 (95%)99, update_cache: 1 (0%)99, fwd-connect: 4 (0%)99, fwd-mail-from: 1 (0%)99, fwd-rcpt-to: 2 (0%)99, write-header: 1 (0%)99, fwd-data: 2 (0%)99, fwd-data-end: 105 (1%)100, fwd-rundown: 1 (0%)100, main_log_entry: 10 (0%)100, update_snmp: 1 (0%)100, unlink-3-files: 1 (0%)100, rundown: 0 (0%)100

How can I see what is taking so long during the SA Check process?

Thanks in advance for any help.

-- 
Robert


Re: Delays slowing SMTP connections

Posted by Noel Jones <no...@gmail.com>.
On 12/12/06, Robert Fitzpatrick <li...@webtent.net> wrote:
> Having the same problem with two gateways running FreeBSD with Postfix
> 2.2.9 and amavisd-new content filtering using SA 3.1.x where delays I
> think are running high. The delay on a message is generally above 10 and
> amavisd-new logs show 96-97% of that delay is SA. And this with no .cf
> files being loaded. Here is my local.cf file:
>
...
> How can I see what is taking so long during the SA Check process?


# amavisd stop
# amavisd debug-sa

-- 
Noel Jones