------------------------------------------------------------ revno: 1107 committer: Mark Sapiro <[email protected]> branch nick: 2.2 timestamp: Mon 2010-05-10 14:49:37 -0700 message: Provided the ability to specify in mm_cfg.py a local domain (e.g. 'localhost') for the local addresses in the generated virtual-mailman when MTA = 'Postfix'. See VIRTUAL_MAILMAN_LOCAL_DOMAIN in Defaults.py. Bug #328907. modified: Mailman/Defaults.py.in Mailman/MTA/Postfix.py NEWS
-- lp:mailman/2.2 https://code.launchpad.net/~mailman-coders/mailman/2.2 Your team Mailman Checkins is subscribed to branch lp:mailman/2.2. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/Defaults.py.in' --- Mailman/Defaults.py.in 2010-02-23 01:23:52 +0000 +++ Mailman/Defaults.py.in 2010-05-10 21:49:37 +0000 @@ -396,6 +396,24 @@ # for details. POSTFIX_STYLE_VIRTUAL_DOMAINS = [] +# If you specify any virtual domains in the above list, Mailman will generate +# a virtual-mailman file containing virtual mappings of the form +# +# [email protected] listaddress +# etc. +# +# to map the list addresses in those domains to local addresses. If you need +# mappings that specify a domain on the right hand side such as +# +# [email protected] listaddr...@localhost +# or +# [email protected] [email protected] +# +# specify the desired local domain in mm_cfg.py as for example +# +# VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost' +VIRTUAL_MAILMAN_LOCAL_DOMAIN = None + # These variables describe the program to use for regenerating the aliases.db # and virtual-mailman.db files, respectively, from the associated plain text # files. The file being updated will be appended to this string (with a === modified file 'Mailman/MTA/Postfix.py' --- Mailman/MTA/Postfix.py 2008-12-03 01:11:33 +0000 +++ Mailman/MTA/Postfix.py 2010-05-10 21:49:37 +0000 @@ -146,8 +146,12 @@ # Now add all the standard alias entries for k, v in makealiases(listname): fqdnaddr = '%...@%s' % (k, hostname) + if mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN: + localaddr = '%...@%s' % (k, mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN) + else: + localaddr = k # Format the text file nicely - print >> fp, fqdnaddr, ((fieldsz - len(k)) * ' '), k + print >> fp, fqdnaddr, ((fieldsz - len(k)) * ' '), localaddr # Finish the text file stanza print >> fp, '# STANZA END:', listname print >> fp === modified file 'NEWS' --- NEWS 2010-05-10 21:13:37 +0000 +++ NEWS 2010-05-10 21:49:37 +0000 @@ -87,6 +87,11 @@ Bug Fixes and other patches + - Provided the ability to specify in mm_cfg.py a local domain (e.g. + 'localhost') for the local addresses in the generated virtual-mailman + when MTA = 'Postfix'. See VIRTUAL_MAILMAN_LOCAL_DOMAIN in Defaults.py. + Bug #328907. + - Made a minor change to the removal of an Approved: pseudo-header from a text/html alternative to allow for an inserted '\xA0' before the password.
_______________________________________________ Mailman-checkins mailing list [email protected] Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org
