/etc/init.d/mailman stop

cd
sudo tar -czvf mailman.tgz /var/lib/mailman  

sudo scp /home/lucas/mailman.tgz 192.168.1.45:/home/lucas/

sudo tar -xzvf mailman.tgz

pwd

ls -l

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

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

sudo tar -czvf mailman-original.tgz /var/lib/mailman

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/

 *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
  • You should see something like:

sudo /etc/init.d/mailman start
Starting Mailman master qrunner: mailmanctl.
  • Verify that there is no errors.

sudo cat /var/log/mailman/error

MyWiki: MailmanTransfer (last edited 2009-09-06 02:50:29 by localhost)