changing domains on Mailman implementation
Is there an efficient way to change the domain name that mailman is affiliated with?
I have two mailing lists that were created for an organization before that organization had their own domain. At the time the organization was sure they did not want their own domain and would not be getting a domain.
Since then, they have chosen to get a domain and set up a web site.
I would like to move their mailing lists onto their domain. It looks like the process for this is:
- get the list of subscribers
- delete the mailing list from the one domain (losing the archives)
- create the mailing list on the new domain
- subscribe the list of subscribers
This process doesn't seem too difficult, but I would prefer to keep the archives, if possible.
Both domains are on the same server, running CentOS7 and PLESK 12.5, if that makes a difference.
Thanks, Keith
On 10/29/2015 09:35 AM, Keith Seyffarth wrote:
Is there an efficient way to change the domain name that mailman is affiliated with?
...
I would like to move their mailing lists onto their domain. It looks like the process for this is:
- get the list of subscribers
- delete the mailing list from the one domain (losing the archives)
- create the mailing list on the new domain
- subscribe the list of subscribers
This process doesn't seem too difficult, but I would prefer to keep the archives, if possible.
That's unduly complex and disruptive. Don't do any of that.
Both domains are on the same server, running CentOS7 and PLESK 12.5, if that makes a difference.
Note: the following is for standard Mailman. Plesk may be different.
First make sure you have
add_virtualhost('their.web.domain', 'their.email.domain')
im mm_cfg.py.
Then for each affected list you run Mailman's
bin/withlist -l -r fix_url listname --urlhost=their.web.domain
That takes care of most of it, but there may be issues with delivery of mail to Mailman. If you use Postfix with Postfix-Mailman integration for automatic generation of aliases and virtual mappings, you probably also want to add 'their.email.domain' to the POSTFIX_STYLE_VIRTUAL_DOMAINS list in mm_cfg.py. Then running Mailman's
bin/genaliases
is all you need. In other cases, you may need to manually update virtual mappings. Aliases generally don't need to be changed.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Okay, so it took me long enough to get back to this (like, a month shy of three years...). I am sure this will be of use to someone, maybe even me in the future, so I wanted to make sure it was publicly documented somewhere.
Anyway, to change the domain of a mailing list, when both domains are hosted on the same server and the server is running PLESK Onyx:
In the PLESK admin, make sure that mailing lists are enabled for the domain you are moving the mailing list to. This will add the add_virtualhost line for the new domain to the mm_cfg.py file.
Go into the PSA database and update the MailLists table to change the dom_id for the mailing list you are moving to the id of the new subscription. This will take some looking around, or you can temporarily create a dummy mailing list on the new domain so you can see what its dom_id is.
run /usr/lib/mailman/bin/withlist -l -r fix_url listname --urlhost=the.new.web.domain
run /usr/lib/mailman/bin/genaliases
In the PLESK admin, find the subscription you moved the mailing list to, and go to Mail -> Mailing Lists 5)a) Click the name of the mailing list you just moved, uncheck the "Switched On" checkbox, and click "OK." 5)b) Click on the name of the mailing list you just moved again, check the "Switched On" checkbox, and click "OK." This appears to reset the aliases and email addresses in the mail configuration.
Restart your mail server (i.e. Postfix). This can either be done from the PLESK services management window or from the command line.
Restart mailman from the command line with: systemctl restart mailman
If you created a temporary mailing list before step 2, you can delete that temporary mailing list now.
The mailing list should now be running on the new domain, and receiving and relaying emails correctly.
Keith
--
from my mac to yours...
Keith Seyffarth mailto:weif@weif.net http://www.weif.net/ - Home of the First Tank Guide! http://www.rpgcalendar.net/ - the Montana Role-Playing Calendar
http://www.miscon.org/ - Montana's Longest Running Science Fiction Convention
participants (2)
-
Keith Seyffarth
-
Mark Sapiro