Otávio,

> I'm tuning a mail server with amavisd-new (clamd and spamassassin),
> and I have a strange low cpu usage (almost 90% free) and a high load
> average (around 100), my amavis timing logs show me a high levels of
> "fwd-mail-from" ... how I can get better amavisd-new performance ?
>
> Logs:
>     Mar  7 19:06:58 sm3300 amavis[20603]: (20603-07) TIMING [total
> 10558 ms] - SMTP LHLO: 4 (0%)0, SMTP pre-MAIL: 1 (0%)0, SMTP
> pre-DATA-flush: 2 (0%)0, SMTP DATA: 82 (1%)1, body_digest: 1 (0%)1,
> gen_mail_id: 0 (0%)1, mime_decode: 11 (0%)1, get-file-type1: 20 (0%)1,
> decompose_part: 5 (0%)1, parts_decode: 0 (0%)1, spam-wb-list: 4 (0%)1,
> update_cache: 1 (0%)1, decide_mail_destiny: 1 (0%)1, fwd-connect: 11
> (0%)1, fwd-mail-from: 10027 (95%)96, fwd-rcpt-to: 2 (0%)96,
> fwd-data-cmd: 0 (0%)96, write-header: 1 (0%)96, fwd-data-contents: 4
> (0%)96, fwd-data-end: 372 (4%)100, fwd-rundown: 1 (0%)100,
> prepare-dsn: 0 (0%)100, main_log_entry: 7 (0%)100, update_snmp: 1
> (0%)100, unlink-1-files: 1 (0%)100, rundown: 0 (0%)100

The fwd-mail-from state indicates the MAIL FROM smtp command was
sent from amavisd to MTA, and took 10 seconds for the MTA to respond.
Probably MTA is doing some sender verification or DNS lookup
or perhaps a RBL ckeck during that time.

The MTA on a re-entry port should avoid doing its checks again,
these have all (hopefully) been done by the MTA-RX during mail
reception. In MTA-TX it is too late to feel sorry and considering
whether to accept the message or not. Also any load limitations
must be disabled on MTA-TX. See README.sendmail-dual for some ideas.

  Mark


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to