> On Wed, Oct 28, 2009 at 08:28:35PM +0100, Rene Bartsch wrote: > >> smtpd needs 24 MByte per client connection. > > You may not be measuring correctly, are you sure you are not counting > shared executable pages or otherwise mapped read-only pages.
Output of "top": PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7159 postfix 20 0 79960 24m 3332 S 0 12.4 0:00.14 smtpd 7897 postfix 20 0 79204 23m 2736 S 0 11.7 0:00.10 smtpd >> Is there any way to reduce that? > > If you have 24MB of non-shared data in each smtpd(8), you are almost > certainly using a large number of Berkeley DB tables. In that case, > use CDB instead, CDB does not use non-shared pages for table access, > it just mmaps the entire table *read-only*. Sorry, no BDB, just MySQL. Output of "postconf -n": alias_maps = append_dot_mydomain = no biff = no config_directory = /etc/postfix default_process_limit = 2 inet_interfaces = all mail_owner = postfix mailbox_size_limit = 134217728 message_size_limit = 67108864 mynetworks = 127.0.0.0/8, 10.214.224.0/24, 10.214.234.0/24 myorigin = $mydomain readme_directory = no recipient_delimiter = + relay_domains = setgid_group = postdrop smtp_bind_address = <myip> smtp_tls_note_starttls_offer = yes smtp_tls_security_level = may smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_client_connection_count_limit = 1 smtpd_recipient_restrictions = reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, reject_unknown_sender_domain, reject_unlisted_recipient, reject_unauth_destination, check_client_access cidr:/etc/postfix/dnswl/postfix-dnswl-header, check_client_access cidr:/etc/postfix/dnswl/postfix-dnswl-permit, check_policy_service inet:127.0.0.1:2525, permit smtpd_tls_CApath = /etc/ssl/certs smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/ssl/certs/<mydomain>.crt smtpd_tls_key_file = /etc/ssl/private/<mydomain>.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/sql-virtual_mailbox_maps.cf virtual_transport = dbmail-lmtp:127.0.0.1:24 Any idea? Best regards, Renne