Leon Kolchinsky wrote:
> Hello All,
> 
> I'm installing a new mail server on Gentoo (moving from SLES9),
> 
> When I send some test mails I can see that most of processing time is spent
> on:
> SMTP DATA: 37 (34%)38
> fwd-connect: 17 (15%)77
> 
> Is there a way to improve these timings or is it OK?

As Gary indicates, those seem fine.  Here's what I from last night; SMTP 
DATA and fwd-connect are 20.9ms and 13.3ms respectively:

=====================================================================
Timing Percentiles   % Time   Total (s)        0%       90%      100%
---------------------------------------------------------------------
SA check             57.52%     184.599     0.637     3.174     4.545
AV-scan-2            28.27%      90.731     0.790     0.867     1.228
SMTP DATA             6.74%      21.631     0.185     0.197     0.209
AV-scan-1             2.49%       7.989     0.011     0.120     1.442
mime_decode           0.83%       2.652     0.011     0.034     0.061
get-file-type1        0.70%       2.241     0.013     0.027     0.077
main_log_entry        0.54%       1.742     0.009     0.020     0.026
fwd-connect           0.53%       1.693     0.007     0.018     0.133
update_cache          0.34%       1.079     0.001     0.014     0.023
fwd-end-chkpnt        0.24%       0.774     0.003     0.017     0.040
SA parse              0.21%       0.680     0.004     0.009     0.032
decompose_part        0.19%       0.594     0.002     0.010     0.038
unlink-2-files        0.17%       0.541     0.001     0.011     0.035
fwd-mail-pip          0.15%       0.485     0.003     0.006     0.020
SMTP pre-DATA-flush   0.11%       0.362     0.003     0.004     0.012
spam-wb-list          0.11%       0.337     0.003     0.004     0.006
check_header          0.10%       0.312     0.001     0.004     0.007
update_snmp           0.09%       0.275     0.002     0.004     0.007
SMTP greeting         0.09%       0.274     0.002     0.003     0.007
prepare-dsn           0.08%       0.258     0.001     0.003     0.022
get-file-type2        0.07%       0.235     0.016     0.087     0.107
decide_mail_destiny   0.07%       0.213     0.001     0.002     0.003
write-header          0.06%       0.203     0.001     0.003     0.004
rundown               0.04%       0.132     0.001     0.002     0.006
gen_mail_id           0.04%       0.121     0.001     0.001     0.006
SMTP pre-response     0.04%       0.116     0.001     0.001     0.002
SMTP LHLO             0.04%       0.113     0.001     0.001     0.002
check_init            0.04%       0.113     0.001     0.001     0.002
digest_hdr            0.03%       0.104     0.000     0.001     0.002
SMTP pre-MAIL         0.03%       0.101     0.000     0.001     0.002
SMTP response         0.02%       0.072     0.000     0.001     0.012
get-file-type3        0.01%       0.034     0.034     0.034     0.034
fwd-rcpt-pip          0.01%       0.030     0.000     0.001     0.001
open-mbx              0.01%       0.028     0.007     0.007     0.007
unlink-3-files        0.01%       0.024     0.002     0.009     0.010
unlink-1-files        0.01%       0.018     0.002     0.011     0.013
fwd-data-contents     0.00%       0.014     0.000     0.000     0.004
mkdir tempdir         0.00%       0.012     0.002     0.002     0.002
mkdir parts           0.00%       0.012     0.002     0.002     0.002
create email.txt      0.00%       0.006     0.001     0.001     0.001
digest_body           0.00%       0.003     0.000     0.000     0.001
unlink-4-files        0.00%       0.003     0.003     0.003     0.003
parts_decode          0.00%       0.001     0.000     0.000     0.001
fwd-data-chkpnt       0.00%       0.000     0.000     0.000     0.000
save-to-local-mailbox 0.00%       0.000     0.000     0.000     0.000
=====================================================================
Scan Time: Actual   100.00%     320.952     0.286     4.604     6.021
Scan Time: Hypothetical
                     100.00%     320.957     1.765     4.717     8.197


> 
> Log snippet:
> -----------
> Nov  4 11:24:14 mail2 amavis[9998]: (09998-04) TIMING [total 108 ms] - SMTP
> greeting: 2 (2%)2, SMTP EHLO: 0 (0%)2, SMTP pre-MAIL: 0 (0%)2, SMTP
> pre-DATA-flush: 2 (2%)4, SMTP DATA: 36 (33%)37, check_init: 1 (1%)38,
> digest_hdr: 0 (0%)38, digest_body: 0 (0%)38, gen_mail_id: 1 (1%)39,
> mime_decode: 10 (9%)47, get-file-type2: 8 (8%)55, decompose_part: 1 (1%)56,
> parts_decode: 0 (0%)56, AV-scan-1: 4 (4%)60, update_cache: 1 (1%)61,
> decide_mail_destiny: 1 (1%)61, fwd-connect: 17 (15%)77, fwd-mail-pip: 3
> (2%)79, fwd-rcpt-pip: 0 (0%)79, fwd-data-chkpnt: 0 (0%)79, write-header: 1
> (1%)80, fwd-data-contents: 0 (0%)80, fwd-end-chkpnt: 12 (11%)91,
> prepare-dsn: 1 (1%)91, main_log_entry: 7 (6%)98, update_snmp: 1 (1%)99, SMTP
> pre-response: 0 (0%)99, SMTP response: 0 (0%)99, unlink-2-files: 1 (1%)100,
> rundown: 0 (0%)100 Nov  4 11:24:14 mail2 postfix/smtpd[19527]: disconnect
> from leon.mydomain.com[192.168.41.33] Nov  4 11:24:15 mail2
> postfix/smtp[19545]: 6AAC98D15: to=<[EMAIL PROTECTED]>,
> relay=mr3.domain.com[192.168.1.219]:25, delay=1.1,
> delays=0.01/0.01/0.1/0.95, dsn=2.0.0, status=sent (250 Ok: queued as
> AEA4B15E9D4) Nov  4 11:24:15 mail2 postfix/qmgr[19401]: 6AAC98D15: removed
> 
> 
> A snippet from master.cf:
> -------------------------
> # ==========================================================================
> # service type  private unpriv  chroot  wakeup  maxproc command + args
> #               (yes)   (yes)   (yes)   (never) (100)
> # ==========================================================================
> smtp      inet  n       -       n       -       -       smtpd
>     -o receive_override_options=no_address_mappings
> smtps inet n - n - - smtpd
>     -o smtpd_tls_wrappermode=yes
>     -o smtpd_sasl_auth_enable=yes
>     -o receive_override_options=no_address_mappings
> submission  inet  n   -   n    -      -    smtpd
>     -o smtpd_enforce_tls=yes
>     -o receive_override_options=no_address_mappings
> 
> smtp-amavis unix - - y - 2 smtp
>     -o smtp_data_done_timeout=1200
>     -o disable_dns_lookups=yes
> 127.0.0.1:10025 inet n  -       n       -       -  smtpd
>     -o content_filter=
>     -o local_recipient_maps=
>     -o relay_recipient_maps=
>     -o smtpd_restriction_classes=
>     -o smtpd_client_restrictions=
>     -o smtpd_helo_restrictions=
>     -o smtpd_sender_restrictions=
>     -o smtpd_recipient_restrictions=permit_mynetworks,reject
>     -o mynetworks=127.0.0.0/8
>     -o strict_rfc821_envelopes=yes
>     -o smtpd_error_sleep_time=0
>     -o smtpd_soft_error_limit=1001
>     -o smtpd_hard_error_limit=1000
>     -o
> receive_override_options=no_header_body_checks,no_unknown_recipient_checks
> 
> 
> 
> # postconf -n
> alias_maps = hash:/etc/mail/aliases
> broken_sasl_auth_clients = yes
> canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin
> command_time_limit = 3600s config_directory = /etc/postfix content_filter =
> smtp-amavis:[127.0.0.1]:10026 daemon_directory = /usr/lib/postfix
> debug_peer_level = 2 defer_transports = disable_dns_lookups = no
> header_checks = regexp:/etc/postfix/header_checks html_directory =
> /usr/share/doc/postfix-2.3.6/html inet_interfaces = all mail_owner = postfix
> mail_spool_directory = /var/mail mailbox_command = mailbox_size_limit = 0
> mailbox_transport = lmtp:unix:/var/imap/socket/lmtp mailq_path =
> /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes =
> envelope_sender, header_sender, header_recipient masquerade_exceptions =
> root message_size_limit = 10240000 mime_header_checks =
> pcre:/etc/postfix/body_checks mydestination = $myhostname,
> localhost.$mydomain, mysql:/etc/postfix/mysql-mydestination.cf
> mydomain = mail2.edu.haifa.ac.il
> myhostname = mail2.edu.haifa.ac.il
> mynetworks = 127.0.0.0/8, 192.168.40.0/23 newaliases_path =
> /usr/bin/newaliases owner_request_special = no queue_directory =
> /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.6/readme
> recipient_delimiter = +
> relayhost =
> relocated_maps = hash:/etc/postfix/relocated sample_directory = /etc/postfix
> sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
> sendmail_path = /usr/sbin/sendmail
> setgid_group = postdrop
> smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated,
> reject_unknown_client smtpd_data_restrictions = reject_unauth_pipelining
> smtpd_helo_required = yes smtpd_helo_restrictions =
> smtpd_recipient_restrictions = permit_mynetworks,
> permit_sasl_authenticated,            reject_unauth_destination,
> check_recipient_access regexp:/etc/postfix/mailboxfull,
> reject_invalid_hostname,            reject_non_fqdn_sender,
> reject_non_fqdn_recipient,            reject_unknown_sender_domain,
> reject_unknown_recipient_domain,            reject_rbl_client
> zen.spamhaus.org,            reject_rbl_client cbl.abuseat.org,
> reject_rbl_client safe.dnsbl.sorbs.net,            reject_rbl_client
> list.dsbl.org,            check_client_access
> hash:/etc/postfix/client_checks,            check_sender_access
> regexp:/etc/postfix/filter-catchall.regexp,            permit
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain = $myhostname
> smtpd_sasl_security_options = noanonymous
> smtpd_sender_restrictions = check_client_access
> hash:/etc/postfix/reset_content_filter            hash:/etc/postfix/access
> smtpd_tls_CAfile = /etc/ssl/certs/cert.pem smtpd_tls_auth_only = yes
> smtpd_tls_cert_file = /etc/ssl/certs/cert.pem smtpd_tls_key_file =
> /etc/ssl/certs/cert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header =
> yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes
> strict_rfc821_envelopes = yes tls_random_source = dev:/dev/urandom
> transport_maps = hash:/etc/postfix/transport
> unknown_local_recipient_reject_code = 550 virtual_alias_maps =
> hash:/etc/postfix/virtual, mysql:/etc/postfix/mysql-virtual.cf
> 
> 
> 
> Best Regards,
> Leon Kolchinsky
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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