[Mailman-Users] Mailman to postfix hideously slow

micah milano micaho at gmail.com
Fri Oct 14 16:54:44 CEST 2005

I know I must have something wrong, but no amount of reading
newsgroups, FAQs, googling, asking on IRC, or trying random things has
produced any results.

Mailman's handoff to postfix, on this machine, is hideously slow.

If I run a simple newlist command, the actual delivery of the "Your
new mailing list" email takes over an hour to be actually sent. If I
send a normail mail (outside of mailman), it is sent instantly.
Messages I send to a list with only me as a subscriber take a very
long time (45 minutes or more) to be sent out, they appear in the
archives quickly.

In logs/post I see:
...smtp for 188 recips, completed in 2517.916 seconds

There seem to be a number of failures in logs/smtp-failures, like:

All recipients refused: {'rochaja at infonet.co.br': (450,
'<rochaja at infonet.co.br>: Recipient address rejected: Domain not

(this domain is indeed bad, and I removed it from the list), could
mailman be bogged down on these failures?

There are 33 qfiles in qfiles/out, the oldest being 2 hours ago, it
just doesn't seem like mailman is processing those very quickly, it
seems that something is really slow in transferring messages to my

Mailman has a connection to my MTA, I can see that in netstat, it is
running fine (and restarting it doesn't unclog things).

If I connect to my MTA with telnet from the host that mailman is
running on and do a manual mail insertion it happens immediately, and
the delivery of that message is immediate. If I try and insert a
message to a bad address, I instantly get back the message: 450
<rochaja at infonet.co.br>: Recipient address rejected: Domain not found

This is mailman 2.1.5-8 from debian sarge, postfix 2.1.5-9 from sarge,
there is a local caching nameserver, my mm_cfg.py has these set:

DEFAULT_EMAIL_HOST = 'postfix.egg.com'
DEFAULT_URL_HOST   = 'mailman.egg.com'
USE_ENVELOPE_SENDER    = 0              # Still used?
DEB_LISTMASTER = 'postmaster at egg.com'
SMTPHOST = 'postfix.egg.com'
SMTPPORT = 25                                      # default from smtplib

/etc/hosts   postfix postfix.egg.com localhost

postconf -n
access_map_reject_code = 554
alias_database = hash:/etc/aliases
alias_maps = $alias_database, hash:/var/lib/mailman/data/aliases
allow_percent_hack = no
allow_untrusted_routing = no
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
body_checks = pcre:$checks_dir/body_checks
body_checks_size_limit = 51200
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 20
default_privs = mail
default_process_limit = 75
disable_vrfy_command = yes
header_checks = pcre:$checks_dir/header_checks
home_mailbox = Maildir/
in_flow_delay = 1s
local_destination_concurrency_limit = 2
local_destination_recipient_limit = 1
local_recipient_maps = $alias_maps, proxy:unix:passwd.byname
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
maximal_backoff_time = 2d
mime_header_checks = pcre:$checks_dir/mime_header_checks
minimal_backoff_time = 1000s
mydestination = $myhostname, localhost.$mydomain, localhost, postfix,
mydomain = egg.com
myhostname = postfix.egg.com
mynetworks =,,,,,,,,
myorigin = /etc/mailname
nested_header_checks = $header_checks
newaliases_path = /usr/bin/newaliases
owner_request_special = no
qmgr_message_active_limit = 20000
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
relay_domains = lists.egg.com
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_tls_CAfile = $tls_dir/mail2004.pem
smtp_tls_cert_file = $tls_dir/mail2004.pem
smtp_tls_key_file = $tls_dir/mailkey.pem
smtp_tls_per_site = hash:$tls_dir/tls_per_site
smtp_tls_session_cache_database = sdbm:$tls_dir/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP (spam is not permitted)
smtpd_client_restrictions = permit_mynetworks,  check_client_access
hash:$checks_dir/access_client,     permit
smtpd_data_restrictions = permit_mynetworks, reject_unauth_pipelining 
smtpd_delay_reject = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, 
smtpd_recipient_restrictions = permit_sasl_authenticated, 
reject_non_fqdn_recipient,      reject_unknown_sender_domain,
reject_unknown_recipient_domain,        permit_mynetworks, 
reject_unauth_destination,  reject_invalid_hostname,        permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks, 
permit_sasl_authenticated,      reject_invalid_hostname,
reject_unknown_sender_domain,  check_sender_access
hash:$checks_dir/access,     check_helo_access
hash:$checks_dir/helo_checks, reject_non_fqdn_sender,
reject_rbl_client list.dsbl.org,        reject_rbl_client
opm.blitzed.org,        reject_rbl_client relays.ordb.org,       
reject_rbl_client cbl.abuseat.org,  permit
smtpd_tls_CAfile = $tls_dir/mail2004.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = $tls_dir/mail2004.pem
smtpd_tls_key_file = $tls_dir/mailkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = sdbm:$tls_dir/smtpd_scache
smtpd_use_tls = yes
swap_bangpath = no
tls_daemon_random_source = dev:/dev/urandom
tls_random_source = dev:/dev/urandom
transport_maps = hash:$maps_dir/transport
virtual_alias_maps = proxy:mysql:$maps_dir/virtual_aliases.cf
virtual_gid_maps = static:104
virtual_mailbox_base = /
virtual_mailbox_domains = proxy:mysql:$maps_dir/virtual_domains.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:$maps_dir/virtual_mailboxes.cf
virtual_minimum_uid = 101
virtual_transport = virtual
virtual_uid_maps = static:101

Thanks for any insight into what could be causing this, its driving me insane.

More information about the Mailman-Users mailing list