[Mailman-Users] Postfix-style virtual domains

Greg Westin greg at gregwestin.com
Sat Aug 24 04:55:08 CEST 2002

Looking through the archives, I can't find anyone that has detailed a way
to create two lists with the same name on two Postfix virtual domains. 
Ok, I probably wouldn't need that, anyways, but I still have the problem
of my new lists not being written to virtual-mailman.  I tried both via
the web interface and using newlist, naming the list
test at lists.virtualdom.ain

Can anyone direct me to information about this?  Does anyone have Postfix
virtual domains set up properly, to tell me how to do it?


Greg Westin
greg at gregwestin.com

<quote who="Greg Westin">
> I'm trying to set up mailman with Postfix-style virtual domains, but
> can't get it working.  Rather, Mailman is working fine with the first
> domain, but the others don't write their aliases to
> data/virtual-mailman, but to data/aliases.  Therefore, I can't create,
> for example, a 'test' list on both lists.default.dom and on
> lists.dom2.ain.  The stuff in my mm_cfg file is below.  I originally
> tried it without using VIRTUAL_HOST or
> VIRTUAL_HOSTS or add_virtualhost for the non-default domains, which
> didn't work.  Adding either VIRTUAL_HOST or VIRTUAL_HOSTS entries caused
> errors - in the case of VIRTUAL_HOSTS, a low-level error that couldn't
> generate a traceback.
> In my Postfix 'virtual' file, I have both domx.ain and lists.domx.ain
> defined.  Mail to users I've defined at domx.ain (or to non-defined
> users, because I set up an '@domx.ain' entry for each) is delivered
> properly, while mail to @lists.domx.ain addresses is not, because I
> haven't created any entries for such addressess (I intend them only to
> be for mailing lists).
> Please let me know if you've set up virtual domains in Postfix, and if
> you can tell me how to do it.  Oh yes, and no data/virtual-mailman file
> existed on my computer, so I created one and gave it the same
> permissions as data/aliases.
> Thank you again,
> Greg Westin
> greg at gregwestin.com
> ---
> DEFAULT_EMAIL_HOST = 'default.dom'
> DEFAULT_URL_HOST = 'lists.default.dom'
> DEFAULT_URL_PATTERN = 'http://%s/mailman/'
> MAILMAN_OWNER = 'mailman-owner@%s' % DEFAULT_HOST_NAME
> MTA = 'Postfix'
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.dom1.ain', 'lists.dom2.ain']
> POSTFIX_ALIAS_CMD = '/usr/local/bin/postalias'
> POSTFIX_MAP_CMD = '/usr/local/bin/postmap'
> #VIRTUAL_HOSTS = {'lists.dom1.ain', 'lists.dom2.ain'}
> add_virtualhost('lists.dom1.ain')
> #VIRTUAL_HOST['lists.dom1.ain']
> add_virtualhost('lists.dom2.ain')
> #VIRTUAL_HOST['lists.dom2.ain']
> ---
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives:
> http://www.mail-archive.com/mailman-users%40python.org/

More information about the Mailman-Users mailing list