Professional Documents
Culture Documents
# Refrences:
# http://forum.qmailrocks.org/showthread.php?t=4800&highlight=backup
# http://goodcleanemail.com/kb.php?ToDo=view&questId=56&catId=5
# http://qmailrocks.org/maintain.php#backup
# http://www.squirrelmail.org/wiki/UpgradingSquirrelMail
cd /home/vpopmail/domains
vi find_vpopmail_users
####
for domain in *;do for user in `ls $domain`; do echo -n "~vpopmail/bin/vadduser"
$user@$domain; ~vpopmail/bin/vuserinfo $user@$domain |grep -v "name:\|^passwd:" |
sed -e 's/clear passwd://'; done; done | grep -v "no such"| grep @ |sort
###
# Make sure you trim the unnecessary lines at the top of the file
generated_vpopmail_accounts.Copy #this script generated_vpopmail_accounts to your
new server and execute it there.
/usr/share/squirrelmail
/var/www/webmail
/var/www/cgi-bin
/var/www/html
# You will need to create your domain manually on the new server by following
these steps
Reference:http://forum.qmailrocks.org/showthread.php?t=4800&highlight=backup to
backup and restore acounts.
# Execute the script generated_vpopmail_accounts copied from your old server
#This will create all your user accounts in the new server
mv root_dsa /root/.ssh/
rm -rf /tmp/root_dsa.pub
# Please ensure that the following entries are present in your new servers
/etc/sshd/sshd_config file or else your public key authentication wont work
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys