Issue:

How to transfer mailman mailing lists ?

Fix:

There are different mailman related binaries installed in a cPanel server at /usr/local/cpanel/3rdparty/mailman/bin/
folder. The binaries  config_list , list_members and  add_members  can be used for this purpose.

First go to the /usr/local/cpanel/3rdparty/mailman/  folder and find the name of the mailing list being dealt with under  /usr/local/cpanel/3rdparty/mailman/lists  folder , it is like  :
listname_domainname
use the following command to get the list of subscribers in that list
list_members -o <outputfile> <listname>
get the configuration of the list using :
config_list -o <outputfile> <listname>
Now create the mailing list in the destination server and then import the list of users using :
add_members -r  <outputfile> <listname>
and import the configuration of the previous mailing list using :
config_list  -i  <outputfile> <listname>

Here <outputfile> is the file to which either of list of members or configuration has been dumped using list_members or config_list

For all the binaries of mailman list of options can be found using:

/usr/local/cpanel/3rdparty/mailman/<binaryname> –help


Shares
Contact Us On WhatsApp