Sonora Communications, Inc.

  • Increase font size
  • Default font size
  • Decrease font size

IMAPCopy - Move IMAP Messages

E-mail Print PDF

IMAPcopy is a small utility that will help you migrate from one IMAP e-mail message store to a another one.  I generally try to use this utility from the command line of one of the servers involved in the transfer in order to minimize traffic and time.  You can copy many users at once, if you wish.

The following are just my notes on this subject. 

More Information

IMAPCopy Home Page

Download IMAPCopy 

wget http://home.arcor.de/armin.diehl/imapcopy/imapcopy.tar.gz
tar -xzvf imapcopy.tar.gz
cd imapcopy

Edit the Config File for Each Job

vi  ImapCopy.cfg

Make it look like:

SourceServer mail.source-server.com
SourcePort 143
DestServer mail.sonoracomm.com
DestPort 143

#CreateEmptyFolders

skipfolder INBOX.Trash
skipfolder INBOX.Sent
skipfolder "INBOX.Deleted Items"
skipfolder "INBOX.Sent Items"
skipfolder "INBOX.Junk E-Mail"

skipfolder Trash
skipfolder Sent
skipfolder "Sent Items"
skipfolder "Junk E-Mail"
skipfolder "Deleted Items"
 

DenyFlags "\Recent"

 
#          SrcUser       SrcPasswd            DestUser        DestPasswd
#Copy   "bar"           "barsrcpw"           "bar"               "bardestpw"

#Copy   "bar"           "barsrcpw"           "bar"               "bardestpw"

Copy     "username"  "password"          "newuser"        "newpassword" 

Now verify that all users and passwords are correct:

./imapcopy -t

Then transfer the messages if all is well:

./imapcopy

Last Updated on Sunday, 06 July 2008 21:28  

Your external IP

You are connecting to this site from: 38.107.179.230

Secure Client Login

Email Address:

Password: