From 30bcc291af91bcea7293a09197e4cb03b7a9bf5a Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 10 May 2010 14:47:36 -0700 Subject: 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. --- Mailman/MTA/Postfix.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Mailman/MTA/Postfix.py') diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py index daa9692f..0d729188 100644 --- a/Mailman/MTA/Postfix.py +++ b/Mailman/MTA/Postfix.py @@ -146,8 +146,12 @@ def _addvirtual(mlist, fp): # Now add all the standard alias entries for k, v in makealiases(listname): fqdnaddr = '%s@%s' % (k, hostname) + if mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN: + localaddr = '%s@%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 -- cgit v1.2.3