genaliases on Postfix is inefficient and can cause bounces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Mark Sapiro |
Bug Description
We're running Mailman 2.1.5-8sarge5 and Postfix 2.1.5-9 on a mail server
with a few hundred lists. For reasons described on Bug [ 1809697 ], we run
genaliases as a cron job.
While genaliases is running, incoming posts and admin mail to some lists
can bounce, with "550 User unknown in virtual alias table". It appears
that genaliases loops over all lists and calls
MTA.create(mlist, nolock=True, quiet=quiet)
for each list, which in turn calls _update_maps() which runs Postfix's
postmap and postalias commands. Hence for a time while running genaliases
the list of mappings loaded into Postfix is incomplete. The process can
also take over a minute because of this repeated hashing.
Suggested fix (would patch on Bazaar but repository is empty :) -
add "if not nolock:" before
_update_maps()
in Mailman/
and call "MTA.create(None, quiet=quiet)" once more before
os.umask(omask)
in bin/genaliases
[http://
Changed in mailman: | |
status: | In Progress → Fix Committed |
Changed in mailman: | |
status: | Fix Committed → Fix Released |
Originator: YES
The issue also appears to be present in 2.1.9.