[Mailman-Users] Moving a list from one domain to another

Mark Sapiro mark at msapiro.net
Wed Feb 3 01:36:38 CET 2010

Geoff Shang wrote:
>I realise this is probably a FAQ, but I couldn't find anything specificly 
>about this in the FAQ.
>I need to move a list from one domain to another.  The domains are both 
>hosted on the same machine so there's no need to *physically* move 
>I figure I don't need to worry about the multiple domain restrictions, as 
>I don't expect there to be name clashes (I admin all the lists and the 
>I figure I have to change the host in the list configuration, and also add 
>the new domain to mm_cfg.py.  Apart from running bin/fix_url.py, do I need 
>to do anything else?  Can I run gen_aliases to fix the aliases (using 
>Postfix) or is it better to change them by hand?

You need

add_virtualhost('new.web.domain', 'new.email.domain')

in mm_cfg.py if it's not already there

Then you need to run

 bin/withlist -l -r fix_url listname -u new.web.domain

That moves the list.

For Postfix, it depends on whether new.web.domain is virtual or local
and likewise the old domain.

If both old and new domains are local, you don't need to do anything

If either old or new domain is virtual:
    if new domain is virtual:
        make sure new.email.domain is in POSTFIX_VIRTUAL_DOMAINS
            in mm_cfg.py
        if you don't already have data/virtual-mailman in Postfix's
            add it
        if you don't already have new.mail.domain in Postfix's
            add it
    run bin/genaliases

(the above is intended to be Pythonic pseudo code)

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