- Since it is a new installation on a new server your mailman should not be running.
/etc/init.d/mailman stop
Zip your mailman folder on the old server:
cd sudo tar -czvf mailman.tgz /var/lib/mailman
- Copy it over to your new server
- You can copy it this way if you have openssh-server installed. (apt-get install openssh-server)
- THen you do something like this. Replace 192.168... with your ip.
sudo scp /home/lucas/mailman.tgz 192.168.1.45:/home/lucas/
- Unzip the file on the new server
sudo tar -xzvf mailman.tgz
- Go to the mailman folder and see what is inside.
- What folder are you in?
pwd
- List the folders
ls -l
You should see something like this. This is a the file you just copied from an old server
lucas@myserver:~/var/lib/mailman$ pwd /home/lucas/var/lib/mailman lucas@myserver:~/var/lib/mailman$ ls -l total 28 drwxrwsr-x 4 root list 4096 2006-10-28 16:52 archives lrwxrwxrwx 1 root root 20 2007-08-16 16:13 bin -> /usr/lib/mailman/bin lrwxrwxrwx 1 root root 24 2007-08-16 16:13 cgi-bin -> /usr/lib/cgi-bin/mailma n lrwxrwxrwx 1 root root 21 2007-08-16 16:13 cron -> /usr/lib/mailman/cron drwxrwsr-x 2 root list 4096 2007-08-01 05:15 data lrwxrwxrwx 1 root root 25 2007-08-16 16:13 icons -> /usr/share/images/mailman drwxrwsr-x 7 root list 4096 2006-11-08 15:27 lists lrwxrwxrwx 1 root root 18 2007-08-16 16:13 locks -> ../../lock/mailman lrwxrwxrwx 1 root root 17 2007-08-16 16:13 logs -> ../../log/mailman lrwxrwxrwx 1 root root 21 2007-08-16 16:13 mail -> /usr/lib/mailman/mail lrwxrwxrwx 1 root root 24 2007-08-16 16:13 Mailman -> /usr/lib/mailman/Mailma n drwxr-sr-x 34 root list 4096 2007-04-26 18:46 messages lrwxrwxrwx 1 root root 26 2007-08-16 16:13 pythonlib -> /usr/lib/mailman/pyth onlib drwxrwsr-x 11 list list 4096 2007-04-26 19:59 qfiles lrwxrwxrwx 1 root root 24 2007-08-16 16:13 scripts -> /usr/lib/mailman/script s drwxrwsr-x 2 root list 4096 2006-09-20 07:18 spam lrwxrwxrwx 1 root root 12 2007-08-16 16:13 templates -> /etc/mailman drwxrwsr-x 4 root list 4096 2007-04-26 18:46 tests
And this is your new installation folder.
lucas@hplinux:~/var/lib/mailman$ ls -l /var/lib/mailman/ total 28 drwxrwsr-x 4 root list 4096 2007-08-13 16:42 archives lrwxrwxrwx 1 root root 20 2007-08-13 16:42 bin -> /usr/lib/mailman/bin lrwxrwxrwx 1 root root 24 2007-08-13 16:42 cgi-bin -> /usr/lib/cgi-bin/mailman lrwxrwxrwx 1 root root 21 2007-08-13 16:42 cron -> /usr/lib/mailman/cron drwxrwsr-x 2 root list 4096 2007-08-13 16:42 data lrwxrwxrwx 1 root root 25 2007-08-13 16:42 icons -> /usr/share/images/mailman drwxrwsr-x 2 root list 4096 2007-02-28 15:35 lists lrwxrwxrwx 1 root root 18 2007-08-13 16:42 locks -> ../../lock/mailman lrwxrwxrwx 1 root root 17 2007-08-13 16:42 logs -> ../../log/mailman lrwxrwxrwx 1 root root 21 2007-08-13 16:42 mail -> /usr/lib/mailman/mail lrwxrwxrwx 1 root root 24 2007-08-13 16:42 Mailman -> /usr/lib/mailman/Mailman drwxr-sr-x 34 root list 4096 2007-08-13 16:42 messages lrwxrwxrwx 1 root root 26 2007-08-13 16:42 pythonlib -> /usr/lib/mailman/pythonlib drwxrwsr-x 2 list list 4096 2007-02-28 15:35 qfiles lrwxrwxrwx 1 root root 24 2007-08-13 16:42 scripts -> /usr/lib/mailman/scripts drwxrwsr-x 2 root list 4096 2007-02-28 15:35 spam lrwxrwxrwx 1 root root 12 2007-08-13 16:42 templates -> /etc/mailman drwxrwsr-x 4 root list 4096 2007-08-13 16:42 tests
- When you compare both you see that what is different is folders.
- You don't have to worry about the files that are links. They should be there in your new server. What we need to transfer is the folders:
archive data lists messages qfiles spam tests
Make a backup copy of mailman on new server
sudo tar -czvf mailman-original.tgz /var/lib/mailman
Lets copy the folders. -R for recursive copy; -p for preserving the ownership
sudo cp -Rp /home/lucas/var/lib/mailman/archives /var/lib/mailman/ sudo cp -Rp /home/lucas/var/lib/mailman/data /var/lib/mailman/ sudo cp -Rp /home/lucas/var/lib/mailman/lists /var/lib/mailman/ sudo cp -Rp /home/lucas/var/lib/mailman/messages /var/lib/mailman/ sudo cp -Rp /home/lucas/var/lib/mailman/qfiles /var/lib/mailman/ sudo cp -Rp /home/lucas/var/lib/mailman/spam /var/lib/mailman/ sudo cp -Rp /home/lucas/var/lib/mailman/tests /var/lib/mailman/
You are done with files transfer. Now you need to configure your mailman
Follow: http://lucasmanual.com/mywiki/#head-df1ad574cc2a50170ce273333d03ea41743d6e9b
*Edit /etc/apache2/apache2.conf *Edit /etc/mailman/mm_cfg.py *Edit /etc/postfix/transport *Edit /etc/postfix/main.cf *Edit /etc/postfix/master.cf
And verify your configuration /etc/init.d/mailman start
sudo /etc/init.d/mailman start
Starting Mailman master qrunner: mailmanctl.
sudo cat /var/log/mailman/error