Move a current mailinglist to a subdomain?

pratrik

Registered
Sep 17, 2013
4
0
1
cPanel Access Level
Root Administrator
QUICK VERSION:
How can I move a live mailing list from domain.com to subdomain.domain.com?

LONGER VERSION:
I have a lot of mailinglists at domain.com, but since we started using a new webservice all our webtraffic now is being directed to another server through a A-record. Mail and subdomains are still handled at the old server. But, as a result of setting up the A-record, I can no longer access the mailman admin-interface.

I can change domain.com/mailman/admindb/maillinglist_domain to serverhostdomain.com/mailman/admindb/mailinglist_domain and this way access the admin interface, however when I use the feature "Tend to pending moderator requests" the old link is back resulting in me not being able to release moderated e-mails to the list.

My solution for this problem is to move all active mailinglists to subdomain.domain.com. That way I can access the admin interface without being redirected to the new webserver. But how do I do it? I have a lot of lists and lots of subscribers and have finetuned the settings so much, that I do not want to start over from scratch again. Any help?

Best regards
Patrik
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Please try using the following command:

Code:
/usr/local/cpanel/3rdparty/mailman/bin/withlist -l -r fix_url -a subdomain.domain.com -v
Note that if this works well, you will need to add it to the /scripts/postupcp file to ensure it runs after each cPanel update.

Thank you.