Comments on How To Migrate Mailboxes Between IMAP Servers With imapsync
How To Migrate Mailboxes Between IMAP Servers With imapsync- This guide explains how you can migrate mailboxes between IMAP servers with imapsync. imapsync is an IMAP synchronisation, sync, copy or migration tool. More than 32 different IMAP server softwares are supported with success. All flags are preserved, unread will stay unread, read will stay read, deleted will stay deleted.
31 Comment(s)
Comments
Its a good technique, i found it easy to deal with .. thanks inowweb.com
I use "Dovecot", how I do to migrate all the mailboxes to another server without using "rsync", whith the command "imapsync" ?
I like to migrate but without to use logins and passwords...
You would need to configure your dovecot server to work with an Admin username and password as well as the regular user's usernames and passwords.
You can then use the --authuser1 --authuser2 flags to imapsync to specify a user to login as (which is different from the user who's mail your syncing)
http://wiki.dovecot.org/Authentication/MasterUsers
Hello
thanks that looks interesting. I am running a dovecot imap server but use the python script offlineimap, maybe imapsync is faster
Uwe Brauer
This tool seems quite good, the inly thing I see lacking is the ability to map certain from targets to certain to targets... i.e. the
Sent -> Sent Items
Appreciate the time and effort put forth in putting this out there. I know a lot of people who would find this very informative to say the least.
Thanks,
Nisha
Great guide. I've used imapsync a lot in the past, but I find it very resource intense (in particular if you're moving lots of mailboxes). Moreover, you're limited to the local bandwidth of the server running imapsync.
There are some good alternatives though, such as Yippiemove (Any IMAP-to-IMAP migration), Google Mail Migration (any IMAP to Google Apps Premier/Edu) and Rackspace Migration (IMAP and MAPI to Rackspace). All of those are fast, real easy to use, and do not require you to get you hands dirty.
Another great one is ShuttleCloud's email migration tool.
It's completely free on the Google Apps Marketplace, with no strings attached or trial versions.
ShuttleCloud also offers a version of the tool that doesn't require a Google Apps account.
The tool is called <a href="TransferMyEmail.com">TransferMyEmail</a>
Falko,
Do you know if imapsync will work with a Maildir that is copied to a locally attached portable disk and then attached to the new target server?
Reason I ask is because we have about 40GB of mail to migrate to a new server over ISDN.
If not, do you know of a better way with that locally copied mail brought down via that portable HDD?
Thanks!
//Todd
Hi,
Can we use imapsync to synchonize two different domains eg. from example.com to example1.com.
Thanks and Regards
Imran
There's a typo in the imapsync commands passfile1 string
imapsync --host1 server1.example.com --user1 [email protected] --passfile1 /etc/secret2 --host2 server2.example.com --user2 [email protected] --passfile2 /etc/secret2
it should read "passfile1 /etc/secret1" instead of "/etc/secret2"
If it is the same password, it does not matter
Thank you Falko for your clear instructions! I got imapsync working just fine, but realized it only syncs one way, not both ways. I have tried the following solutions:
- OfflineIMAP 4.0.16: works (fast!!!) both ways but doesn't sync new folders, crashes on folder deletion
- imapsync: works great but only one way, server1 -> server2, that's it
- isync: doesn't sync IMAP <-> IMAP, only IMAP <-> Maildir
I'm about to give up on my project - trying to keep the 60 IMAP mailboxes/20 GB at our provider synchronized with a local NetBSD server running Dovecot in order to improve access time and backup in case our internet connection goes out. I want users to access our local IMAP server as if they were accessing our ISP's server and never know the difference. Our ISP has a good webmail server (SurgeMail 5) and I want to keep the remote boxes identical to the local ones for this reason.
So far, nothing worked out simply because I need something that seems to be unavailable at the moment. Does anyone know about a solution that I can use on my NetBSD installation?
I think that's a quite painful process for a regular user. Instead, you could give a try to our tool, it's fast, secure and reliable and very easy to use since you don't need to download anything.
It also keeps label structure and transfer all your email in seconds
Improffice Email Transfer - Gmail and Google Apps Migrations
Thanks for the easy to follow instructions, however, it won't do IPv6.
Error connecting / IO::Socket::SSL: Bad hostname.
The dire state of perl ...
Hi, how are you?
one question, this tool is for mailbox to maildir too? i need migrate all mailbox´s (in opensuse) to another server with debian and maildir format.
thanks very much
(sorry my english)
bye bye
Do we need to provide all username & passwords we want to migrate from Lotus (Server1) to Zimbra (Server2)?
Is there any way to do the migration with ADMIN Accounts on both servers?
Please advise.
This worked beautifully, and it posted with a security conscience.
Thank you so much!!! - albertautin.com
Great Tool! working like a charm! God Bless You Falko!
como hago para saber los nombres de los server de mis 2 proveedores de hosting?
Hi Falko,
I'm looking at migrating over POP3 Squirrel Mail mailboxes from one server to another, do you any decent guides for this (POP3) - Everywhere i look for POP3 Squirrel Mail migration there isnt any straightforward guide to follow. Are you able to guide me?
ThanksJaved
How can I move my folders I've created in my email from one email to another?
I can not install imapsync Does anyone know why?
Hi, we use this HowTo some time ago, and work like a charm!
But today we need to do a new Email account migration, when I try to download imapsync from repository of Ubuntu 16.04, Debian 7, Debian 8, Debian 9, the package can' t be found.
But if you use Manjaro/Arch you can download and install this app!
If you visit the developer webpage, you can find that he sell the software.
bonjour, je suis tombé sur votre lien https://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync et je suis autorisé à vous contacter parce que j'ai besoin d 'aide.
Je voudrais pouvoir synchroniser tous les mails de mon serveur échange 2013 vers un serveur local povecot. j'ai suivi plusieurs liens et tutoriels sans succès.
merci de m'aider.
Your article incorrectly states that imapsync is no longer free. On CentOS, I just installed it with 'yum install epel-release' & 'yum install imapsync' and was never charged a dime. Please update your documentation.
It was no longer free, but the author seems to have changed his mind, so it's free again for non-commercial use now. I've updated the article.
To install imapsync in Debian 9/10:
sudo apt-add-repository contrib && sudo apt install -y libauthen-ntlm-perl libcgi-pm-perl libcrypt-openssl-rsa-perl libdata-uniqid-perl libencode-imaputf7-perl libfile-copy-recursive-perl libfile-tail-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libhtml-parser-perl libjson-webtoken-perl libmail-imapclient-perl libparse-recdescent-perl libmodule-scandeps-perl libreadonly-perl libregexp-common-perl libsys-meminfo-perl libterm-readkey-perl libtest-mockobject-perl libtest-pod-perl libunicode-string-perl liburi-perl libwww-perl libtest-nowarnings-perl libtest-deep-perl libtest-warn-perl make cpanminus && sudo wget -O /usr/bin/imapsync https://raw.githubusercontent.com/imapsync/imapsync/$(curl --silent "https://api.github.com/repos/imapsync/imapsync/tags" | grep -Po '"name": "\K.*?(?=")' | head -1)/imapsync && sudo chmod +x /usr/bin/imapsync