freebsdrocks.net was started originally as nospam.mine.nu.
The instructions below will backup all users and emails. This will NOT copy over ezmlm lists. This may happen in future releases.
On the old mailserver:
# ln -s /usr/bin/tar /bin/tar
# mkdir /home/backups/ /home/backups/vpopusers
# cd /home/backups/
# fetch http://freebsdrocks.net/files/tarballs/vpopmail_server_import_export.tgz
# tar zxvf vpopmail_server_import_export.tgz
# cd import
# ./backupemail.sh > /home/backups/vpopusers/output
# ./CreateVPOPUserBK.sh
before you scp this folder over to the new server, make SURE you chown the user:group to the user you will scp it over to
On the new mailserver run the following commands but before you import the users it would be a good idea to disable validrcptto in qmail-smtpd/run and then restart qmail. Import the users and then enable validrcptto and then rebuild the validrcptto.cdb file as you did in my vpopmail instructions.
# mkdir /home/backups/ /home/backups/vpopusers
# ln -s /usr/bin/tar /bin/tar
# cd /home/backups/
# fetch http://freebsdrocks.net/files/tarballs/vpopmail_server_import_export.tgz
# tar zxvf vpopmail_server_import_export.tgz
# cd /home/backups/
# scp -r user@oldmailserver:/home/backups/vpopusers .
# cd /home/backups/vpopusers
# chmod 755 output
# ./output
# cd /home/backups/export/
VALIDRCPTTO_CDB="$VQ/control/validrcptto.cdb"
#VALIDRCPTTO_LOG=2
# svc -t /service/qmail-smtpd/
# ./RestoreTheUserDir.sh