Another challenging task for server admin is to transfer the existing qmail with vpopmail to another server. Copying qmail and vpopmail directory won’t work

Here are the steps you need to keep in mind and follow if you are going to install qmail and vpopmail in the same path

qmail -> /var/qmail
vpopmail -> /home/vpopmail

1) Install qmail and vpopmail as per the instruction in new server using qmailrocks docs
By default the installation of vpopmail will be in /home/vpopmail.

2) Copy the contents of /var/qmail/control and /var/qmail/users to the new server

3) Take the dump of vpopmail database you can view the details of database in the path

cat ~vpopmail/etc/vpopmail.mysql

4) Copy the file in the new server

5) Dump the database

6) rsync the ~vpopmail/domains/ to~vpopmail the new server ~vpopmail/domains/ folder

7) chown vpopmail.vchkpw ~vpopmail -R

8) This step is most important, you should verify the uid of vpopmail and gid of vchkpw and they should be same in the new server too. The file /var/qmail/users/assign will have the details of uid and gid of the old server.

In the second scenario

Old server

qmail -> /var/qmail
vpopmail -> /var/qmail/vpopmail

New server

qmail -> /var/qmail
vpopmail -> /home/vpopmail

Here you need to worry about the path mentioned for the mail accounts in the vpopmail database. Take the dump of the database you can edit the dump using vi and sed as usually it won’t be that big since it contains only information about the mail account and its path not the entire mails. You need to alter the path with the new installation path.

open the dump file with vi editor

:%s/var//qmail//vpopmail//home//vpopmail/g 

Rest of the steps are same as above.

PS: Dont just copy vpopmail to new server it is not going to work, vpop binaries like vuserinfo has the installation path in it and it will give out errors.

VN:F [1.9.6_1107]
Rating: 6.4/10 (5 votes cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)
Qmail vpopmail transfer , 6.4 out of 10 based on 5 ratings
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Buzz
  • Reddit
  • Technorati