Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently running IMAPsync on CentOS and I'm getting out of memory errors. The problem I'm having is that I'm using the smallest mailbox as a test case, and it's not helping my confidence level to have out of memory errors on a 2G mailbox.

I assumed from the description on the page that is was a recursive program, so I expected it to continue from where it left off, but I have no idea if it did that on the second run or not.

Is it possible to have IMAPsync continue until both mailboxes are in sync, or at least till all the mail from host1 has been moved to host2?


share|improve this question
What flags are you passing it? You should be passing "--useheader 'Message-ID'", for example. – David Schwartz Dec 30 '11 at 2:56
./imapsync \ --host1 imap.domain.A --user1 foo --password1 secret1 \ --host2 imap.domain.B --user2 bar --password2 secret2 And also using --split1 100 --split2 100 – Mister IT Guru Dec 30 '11 at 3:35

The memory issue is solved by using Perl module Mail-IMAPClient >= 3.26


share|improve this answer
I seem to have been able to sync some massive 10G+ mailboxes using -useheader 'message-id' and also using --dry to make sure everything connects as expected. I'll update my Perl modules as well. – Mister IT Guru Jan 4 '12 at 15:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.