Applicable to:
- Plesk for Linux
Symptoms
Advanced settings of mailing lists and Mailman archives are not transferred by Plesk Migrator.
Cause
Migration & Transfer Manager transfers only basic settings of mailing lists: list administrator, subscribers. Mailing list archives and other settings are not transferred, since Plesk cannot manage them.
Resolution
It is possible to transfer configuration of mailing list(s) using Mailman's config_list
utility.
Below example shows how to transfer the settings of the mailing list mail_list1 from a source server to destination:
-
Connect to the source Plesk server via SSH.
-
Save the mailing list configuration into the file mail_list1.conf:
# /usr/lib/mailman/bin/config_list -o mail_list1.conf maillist1
-
Transfer mail_list1.conf to the destination server, where domain with mailing list has already been migrated, and restore the configuration:
# /usr/lib/mailman/bin/config_list -i mail_list1.conf mail_list1
-
Connect to the source Plesk server via SSH.
-
Create a folder for the configuration files and open it:
# mkdir /root/list_configs && cd /root/list_configs
-
Create configuration backups for all mailing lists:
# for i in $(ls /var/lib/mailman/lists/ |grep -v mailman); do /usr/lib/mailman/bin/config_list -o $i.conf $i;done
-
Connect to the destination Plesk server via SSH and create the same directory:
# mkdir /root/list_configs && cd /root/list_configs
-
Copy the files from the source Plesk server to the destination server.
-
Restore the mailing lists' configuration:
# for i in $(ls);do /usr/lib/mailman/bin/config_list -i $i `ls $i| cut -d. -f1` ;done
If you want Plesk Migrator to transfer Mailman archives, vote for this functionality on Plesk UserVoice.
Comments
2 comments
Do you need to create a new (empty) mailing list on the destination server prior to importing the configuration data?
I’m asking this because when my ISP migrated my domains using the Plesk Migrator tool, my mailing lists were not recreated on the new server. Even though you mention above that the “Migration & Transfer Manager transfers only basic settings of mailing lists: list administrator, subscribers.” … even these settings were not transferred.
Is there a way to manually transfer the mailing list members and their subscription status prior to importing the configuration data?
The script fails if the listname includes a dot -- because 'cut' looks for that dot as delimiter..
Please sign in to leave a comment.