Koozali.org: home of the SME Server

Changing server from Suse to SME - migrating mail

Offline julianop

  • *
  • 61
  • +0/-0
Re: Changing server from Suse to SME - migrating mail
« Reply #15 on: May 05, 2010, 02:36:40 PM »
Sonoracomm has a howto for setting up "imapcopy", another imap copy utility: http://www.sonoracomm.com/support/19-inet-support/60-imapcopy

I've used imapcopy a couple times (probably circa 2002 & 2006).  It's easier to set up and use than imapsync.

The author's page seems to have trouble whenever I want to use it, and the program itself is a binary that comes pre-compiled, but the download "wget..." from the howto above does work.

OK, I'll give it a run and see how much trouble I can get myself into! And I will write up the experience.

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Changing server from Suse to SME - migrating mail
« Reply #16 on: May 21, 2010, 07:10:39 AM »
Be careful with imapsync if you end up using it on large folders, I have had it stall with over 3000 messages.  There are commandline switches to limit the number of emails to process.  I would keep the number to 500 or 1000 at a time. You can use the split1 and split2 commands, I have used it several times and it works flawlessly.  Here is a sample...

imapsync --noauthmd5 --host1 <source.server> --port1 143 --split1 500 --user1 <username> --password1 <password> --sep2 / --prefix2 "" --host2 <destination.server> --port2 143 --split2 500 --user2 <username> --password2 <password>

NOTE: The above command is all on one line or break it up like this...

imapsync --noauthmd5 --host1 <source.server> --port1 143 --split1 500 --user1 <username> --password1 <password> \
--sep2 / --prefix2 "" --host2 <destination.server> --port2 143 --split2 500 --user2 <username> --password2 <password>
« Last Edit: May 21, 2010, 07:14:02 AM by pfloor »
In life, you must either "Push, Pull or Get out of the way!"