Re: [Mailman-Users] changing domains on Mailman implementation

2018-09-20 Thread Keith Seyffarth


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:

1) 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.

2) 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.

3) run
/usr/lib/mailman/bin/withlist  -l -r fix_url listname 
--urlhost=the.new.web.domain

4) run
/usr/lib/mailman/bin/genaliases

5) 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.

6) Restart your mail server (i.e. Postfix). This can either be done from
the PLESK services management window or from the command line.

7) Restart mailman from the command line with:
systemctl restart mailman

8) 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:w...@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
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] changing domains on Mailman implementation

2015-10-29 Thread Mark Sapiro
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:
> 1) get the list of subscribers
> 2) delete the mailing list from the one domain (losing the archives)
> 3) create the mailing list on the new domain
> 4) 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 The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org