[Mailman-Users] Mailman needs 20 seconds to complete per email

Karsten Becker karsten.becker at ecologic.eu
Tue Nov 27 13:53:13 CET 2012


Hi there,

I'm running an Ubuntu Server 10.04 LTS (Lucid Lynx) with the repository
mailman in version
> ii  mailman                         1:2.1.13-1ubuntu0.2
Powerful, web-based mailing list manager

Everything is running fine, so emails arriving at postfix get transfered
nearby immediate towards mailman and vice-versa. I'm running Mailman in
a multi-domain-MySQL-based setup, as we have to run a lot of different
domains in our company. But as said above, this all works.

The problem is, that if Mailman gets an email from Postfix, it sits down
and does "something" for roundabout 20 seconds. Then it sends out the
emails towards Postfix, and Postfix delivers.

For normal mailing list operation this is not a problem as it sends out
one bulk email out to Postfix - but when I do a mass subscription of for
example 100 people, Mailman will start to send out the personalized
welcome emails one after another - and will also need 20 seconds per
email. So it takes 100x 20 seconds = 2000 seconds = 33 minutes till
everybody gets his/her welcome email.

Is this usual behaviour of Mailman to do "something" that long? The
server is a powerful one with plenty of GHz and RAM. What the hell could
this "something" be?  :-)

Following you will find my configuration file and the smtp log of mailman:

/etc/mailman/mm_cfg.py:

> from Defaults import *
> MAILMAN_SITE_LIST = 'mailman'
> DEFAULT_URL_PATTERN = 'http://%s/mailman/'
> PRIVATE_ARCHIVE_URL = '/mailman/private'
> IMAGE_LOGOS         = '/mailman/images/mailman/'
> SHORTCUT_ICON       = 'favicon.ico'
> DEFAULT_EMAIL_HOST = 'lists.mycompany.eu'
> DEFAULT_URL_HOST   = 'lists.mycompany.eu'
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
> DEFAULT_SERVER_LANGUAGE = 'en'
> USE_ENVELOPE_SENDER    = 0              # Still used?
> DEFAULT_SEND_REMINDERS = 0
> MTA='Postfix'
> SMTPHOST = 'localhost'
> SMTPPORT = 10030
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.mycompany.eu', 'lists.myothercompany.org', 'lists.mythirdcompany.eu']
> add_virtualhost('lists.myothercompany.org', 'lists.myothercompany.org')
> add_virtualhost('lists.mythirdcompany.eu', 'lists.mythirdcompany.eu')
> DEB_LISTMASTER = 'postmaster at mycompany.eu'
> DEFAULT_ARCHIVE_PRIVATE = 1
> MEMBER_PASSWORD_LENGTH = 15
> ADMIN_PASSWORD_LENGTH = 20
> DEFAULT_LIST_ADVERTISED = No
> DEFAULT_MAX_NUM_RECIPIENTS = 10
> DEFAULT_MAX_MESSAGE_SIZE = 250           # KB
> DEFAULT_MAX_DAYS_TO_HOLD = 7
> DEFAULT_GENERIC_NONMEMBER_ACTION = 2
> DEFAULT_SUBSCRIBE_POLICY = 3

/var/log/mailman/smtp

> Nov 27 08:00:22 2012 (10393) <mailman.0.1353999601.22399.carbonmarkets at lists.mycompany.eu> smtp to carbonmarkets for 1 recips, completed in 21.021 seconds
> Nov 27 08:00:43 2012 (10393) <mailman.1.1353999601.22399.agriculture at lists.mycompany.eu> smtp to agriculture for 1 recips, completed in 21.013 seconds
> Nov 27 08:01:04 2012 (10393) <mailman.2.1353999601.22399.wimix at lists.mycompany.eu> smtp to wimix for 1 recips, completed in 21.007 seconds
> Nov 27 08:01:25 2012 (10393) <mailman.3.1353999601.22399.out-of-pfalzburger at lists.mycompany.eu> smtp to out-of-pfalzburger for 1 recips, completed in 21.006 seconds
> Nov 27 08:01:46 2012 (10393) <mailman.4.1353999601.22399.confix at lists.mycompany.eu> smtp to confix for 1 recips, completed in 21.018 seconds
> Nov 27 08:02:07 2012 (10393) <mailman.5.1353999601.22399.energy at lists.mycompany.eu> smtp to energy for 1 recips, completed in 21.006 seconds
> Nov 27 08:02:28 2012 (10393) <mailman.6.1353999601.22399.china at lists.mycompany.eu> smtp to china for 1 recips, completed in 21.008 seconds
> Nov 27 08:02:49 2012 (10393) <mailman.0.1353999601.22399.carbonmarkets at lists.mycompany.eu> smtp to carbonmarkets for 2 recips, completed in 21.007 seconds
> Nov 27 08:03:10 2012 (10393) <mailman.1.1353999601.22399.agriculture at lists.mycompany.eu> smtp to agriculture for 3 recips, completed in 21.005 seconds
> Nov 27 08:03:31 2012 (10393) <mailman.2.1353999601.22399.wimix at lists.mycompany.eu> smtp to wimix for 2 recips, completed in 21.007 seconds
> Nov 27 08:04:13 2012 (10393) <mailman.4.1353999601.22399.confix at lists.mycompany.eu> smtp to confix for 2 recips, completed in 21.011 seconds
> Nov 27 08:04:34 2012 (10393) <mailman.5.1353999601.22399.energy at lists.mycompany.eu> smtp to energy for 2 recips, completed in 21.007 seconds
> Nov 27 08:04:55 2012 (10393) <mailman.6.1353999601.22399.china at lists.mycompany.eu> smtp to china for 2 recips, completed in 21.006 seconds
> Nov 27 09:01:20 2012 (10393) <50B47339.6040405 at mycompany.eu> smtp to energy for 61 recips, completed in 21.124 seconds
> Nov 27 09:18:43 2012 (10393) <50B4774C.1030707 at mycompany.eu> smtp to berlinix for 101 recips, completed in 21.126 seconds
> Nov 27 09:51:29 2012 (10393) <mailman.0.1354006267.31674.china at lists.mycompany.eu> smtp to china for 1 recips, completed in 21.022 seconds
> Nov 27 10:27:04 2012 (10393) <mailman.0.1354008402.6430.carbonmarkets at lists.mycompany.eu> smtp to carbonmarkets for 1 recips, completed in 21.029 seconds
> Nov 27 10:27:25 2012 (10393) <mailman.1.1354008402.6430.carbonmarkets at lists.mycompany.eu> smtp to carbonmarkets for 1 recips, completed in 21.004 seconds
> Nov 27 10:33:09 2012 (10393) <mailman.0.1354008767.9391.energy at lists.mycompany.eu> smtp to energy for 1 recips, completed in 21.022 seconds
> Nov 27 11:45:19 2012 (10393) <mailman.0.1354013097.25318.confix at lists.mycompany.eu> smtp to confix for 1 recips, completed in 21.023 seconds
> Nov 27 11:49:32 2012 (10393) <mailman.14.1354013350.10391.confix at lists.mycompany.eu> smtp to confix for 1 recips, completed in 21.018 seconds
> Nov 27 11:49:54 2012 (10393) <mailman.16.1354013350.10391.confix at lists.mycompany.eu> smtp to confix for 1 recips, completed in 21.815 seconds
> Nov 27 11:50:18 2012 (10393) <mailman.16.1354013350.10391.confix at lists.mycompany.eu> smtp to confix for 2 recips, completed in 21.391 seconds
> Nov 27 12:20:17 2012 (10393) <mailman.0.1354015196.1021.confix at lists.mycompany.eu> smtp to confix for 1 recips, completed in 21.015 seconds
> Nov 27 12:21:05 2012 (10393) <mailman.0.1354015243.1152.wimix at lists.mycompany.eu> smtp to wimix for 1 recips, completed in 21.001 seconds
> Nov 27 12:40:52 2012 (10393) <50B4A6AD.40705 at mycompany.eu> smtp to ecologix for 123 recips, completed in 21.235 seconds


Regards
Karsten


More information about the Mailman-Users mailing list