[Mailman-Users] how to revert back to local domain only?

Mark Sapiro mark at msapiro.net
Fri Jan 11 18:35:28 CET 2013


Graham Young wrote:
>
>But what about Mailman's "VIRTUAL_HOSTS.clear" config in mm_cfg.py? Do I take that out too?


It depends. If the configured values for DEFAULT_URL_HOST and
DEFAULT_EMAIL_HOST in Defaults.py are correct, you don't need any
add_virtualhost() or VIRTUAL_HOSTS.clear() directives in mm_cfg.py.

If you need to change these or if you just want the settings in
mm_cfg.py for documentation purposes, put

DEFAULT_URL_HOST = '...'
DEFAULT_EMAIL_HOST = '...'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

in mm_cfg.py. Note that you must have one VIRTUAL_HOSTS entry for
DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST. This is added in Defaults.py,
but may not be the correct names. The purpose of VIRTUAL_HOSTS.clear()
in mm_cfg.py is to remove the possibly erroneous entry added in
Defaults.py. It isn't really necessary to do this in any case, but
it's cleaner.


>Furthermore, I am aware that once configured for virtual domains, mailman automatically generates certain files: /usr/local/mailman/data/virtual_mailman, among others. However, it is not clear to me whether these files will automatically be removed or whether their removal requires my intervention. Indeed I don't even know that they would need to be removed. 


They won't be removed, and they don't need to be, but the reference to
data/virtual-mailman in Postfix virtual_alias_maps needs to be removed.


>Finally, there is bound to be more to this than I merely anticipate. Perhaps there are other files to modify or remove. 


Probably not.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list