[ mailman-Bugs-979631 ] Better aliases generation for Postfix (webmin)

SourceForge.net noreply at sourceforge.net
Fri Jun 25 06:05:23 EDT 2004


Bugs item #979631, was opened at 2004-06-25 12:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=979631&group_id=103

Category: command line scripts
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Christophe Chisogne (wombachi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Better aliases generation for Postfix (webmin)

Initial Comment:

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(time.time())
proposed change
    print >> fp, '# ALIASES CREATED:',
time.ctime(time.time())



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=979631&group_id=103



More information about the Mailman-coders mailing list