Resending after changing list to accept text/x-diff MIME type. On 01/29/2014 08:58 PM, Kenneth Lundström wrote: > > But putting VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhostasd' in my > mm_cfg.py file. But no @localhost is added to every row in > virtual-mailman file > > I'm using the stock mailman found on CentOS, version 2.1.9.
The ability to define VIRTUAL_MAILMAN_LOCAL_DOMAIN with MTA = 'Postfix' was added in Mailman 2.1.14. It's not in 2.1.9. However, I'm confused. If you want '@localhost', why would you put VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhostasd' in mm_cfg.py. In any case, if you need this feature in 2.1.9, you can install the attached patch. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
=== modified file 'Mailman/MTA/Postfix.py' --- Mailman/MTA/Postfix.py 2008-08-22 22:21:26 +0000 +++ Mailman/MTA/Postfix.py 2010-05-10 22:40:21 +0000 @@ -123,6 +123,8 @@ # Set up the mailman-loop address loopaddr = Utils.get_site_email(mlist.host_name, extra='loop') loopdest = Utils.ParseEmail(loopaddr)[0] + if mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN: + loopdest += '@' + mm_cfg.VIRTUAL_MAILMAN_LOCAL_DOMAIN # Seek to the end of the text file, but if it's empty write the standard # disclaimer, and the loop catch address. fp.seek(0, 2) @@ -146,8 +148,12 @@ # 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
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org