Better aliases generation for Postfix (webmin)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
New
|
Medium
|
Unassigned |
Bug Description
The data/aliases file generated by MTA/Postfix.py can be
slightly improved, notably when using webmin
(little patch below). I didnt check if alias generation
with other MTAs have the same problem.
Postfix.py generates lines like
# STANZA START: <listname>
# CREATED: <date>
(...)
# STANZA END:
Problem is the "# CREATED:" line. To disable a mail alias,
some admin simply put a '# ' in front of that alias.
So that line could be interpreted as a user 'CREATED'
that has been disabled. And webmin (v1.150, last one)
just do that in the postfix module, displaying wrong infos
for postfix aliases.
That webmin module use a regex to check these
'disabled' aliases with this Perl code (sorry, not
Python:)
if (/^(#*)\s*([^:$ \t]+)\s*:\s*(.*)$/)
The '# STANZA' lines dont match, so it's ok.
But the '# CREATED:' line do match, causing wrong
results in webmin. A simple solution is to replace the
'CREATED:' word with two word, by example
'ALIASES CREATED:'
MTA/Postfix.py line 108 (mailman-2.1.5)
print >> fp, '# CREATED:', time.ctime(
proposed change
print >> fp, '# ALIASES CREATED:',
time.ctime(
[http://