Skip to content(if available)orjump to list(if available)

Imapsync

Imapsync

40 comments

·February 12, 2025

mytwoscents

I use it as a sync tool for each new mail I receive.

My domain provider offers to me a very small mailbox. Enough for a couple of mails but way too small to use as an IMAP server.

So I run a dovecot IMAP server on my RPI and trigger for each new mail imapsync to copy mails over to my dovecot and delete mails on my small mailbox. Works like a charm and allows me to have a virtually infinite sized mailbox for very little money. Plus, all my mails are in my home under my control instead of lying on some server somewhere.

rufugee

What do you use for search?

mytwoscents

Thunderbird on my PC, K9 on Android. The "search on server" works there quite well.

bayindirh

There’s another great alternative called “imap-backup” [0], which I use to backup my mail accounts.

It can sync, incrementally backup and/or restore e-mail accounts.

It runs great as a container, does its job and exits. If anyone wants an ARM version, I maintain a container at [1].

[0]: https://github.com/joeyates/imap-backup

[1]: https://hub.docker.com/r/bayindirh/imap-backup

cmsj

If it's of interest, I have an automated container of it that builds whenever any of imapbackup's dependencies, or the base ruby:alpine image, are updated.

https://github.com/cmsj/imap-backup

miles

HN discussion from 2022 (80 comments): https://news.ycombinator.com/item?id=29849762

charles_f

That website is delicious! Somehow it gives me more trust than if it were some overburdened react/bootcamp

Didn't know that tool but looks useful, thanks!

panki27

Used this around 5 years ago to migrate a mid-sized mailserver, absolutely magnificient.

I remember that back then you had to pay for the binaries, but could download the source code for free - you just had to figure out how to compile it.

The page mentions Perl source code though, so I'm not sure if I'm mixing this up with another tool...

tecleandor

I think the author packages an all-dependencies-included executable for windows that you're given access when you pay for support and all that, but it's in fact perl.

I remember using this program a bunch of times during the years (and I think I've paid at least once) and remember using CPAN when configuring it.

It has helped me a bunch of times!

birdman3131

https://imapsync.lamiral.info/dist/ for those wanting to download it. They hide it these days trying to force you to buy it.

colonial

I cooked up a Containerfile for it a while ago that takes care of all the Perl dependencies: https://pastebin.com/MKLUpgP1

You can build the image by just chmod +x'ing the file and running it. Then just do podman run --rm -it imapsync [ARGS] and you're off.

CharlesW

You can also install it via Homebrew. https://formulae.brew.sh/formula/imapsync

null

[deleted]

fraXis

I'm disappointed to see this posted by you. The developer of imapsync, Gilles, has created a fantastic piece of software and deserves all the sales he can get. Sharing private links like this undermines his hard work and effort.

haunter

The author disagrees with you

https://github.com/imapsync/imapsync/issues/257#issuecomment...

Why you don't find a direct download link on the upstream site https://imapsync.lamiral.info/ is because:

- I earn my leaving from imapsync buyers but less likely on donators, as a measured fact.

- Donations work 1/100 less than payments, ie, for $1 from donators I get $100 of buyers.

- I don't make the github release, Nicolas does, and Nicolas doesn't include the .exe binary in the repository, it is a common rule in free and open source software guidelines. I do not blame Nicolas about this.

- Nicolas does a good job, a basic copy of imapsync mainstream repository where releasecheck is off and whatever he wants, like exe trash, I'm ok with that.

To answer your questions:

- Windows binary exe is here in the zip file: https://imapsync.lamiral.info/dist/

- Don't worry, my income won't suffer, as people don't read. The no-dowload link on the main imapsync web site is just a payment incentive. It works. It works enough to make me concentrate my work life on imapsync and their users.

RockRobotRock

This looks to me like they originally made it available for free and then changed their mind. The developer is well within their right to do so, but don't be surprised that people find it confusing and try to avoid paying for it.

null

[deleted]

null

[deleted]

sp8

Haven't used this tool for many years, but when I needed to help a friend migrate his business email from the email services provided by a web host to Google Workspace (or whatever it was called at the time) this tool worked perfectly (admittedly, only about 3 fairly tame mailboxes).

z3n0n

bought this a few years back to handle some cpanel imap <-> Gmail sync. Simply gets the job done. No nonsense tool that makes do without overhyped promo and flashy website, a rare breed these days. Highly recommended.

consumer451

Last I checked this was easiest way to migrate email accounts between Microsoft365 tenants. Somehow this is not a Microsoft feature.

I have used imapsync quite a few times. Such a great tool.

illusive4080

Microsoft has deprecated “legacy” auth methods, which makes this sort of thing very difficult to accomplish nowadays.

I used to use IMAP/SMTP for Outlook Mail but they force you to use proprietary clients now, forcing OAuth. It makes scripting nearly impossible.

https://learn.microsoft.com/en-us/exchange/clients-and-mobil...

consumer451

Darn, it sounds like we are back to drag and drop in Thunderbird then?

charles_f

An alternative that works relatively well is to use thunderbird to synchronize all emails from the account to migrate, then drag them towards the new account.

consumer451

Ha, yes that is also a way that I have done it, prior to learning about imapsync.

Although according to the peer comment, it sounds like that's the last standing method.

locusofself

I had less luck with this around 12 years ago doing a migration from whatever the UW mailserver is to Office365. Probably an Office/Exchange related issue, but it was a big headache.

I do remember using it for another succcessful migration, and the author being quite helpful.

Deeg9rie9usi

This tool served me well with more than one migration of super large mailboxes.

tonijn

Great tool that I’ve been using for over a decade now. Highly recommended

qrush

Has anyone used this to migrate off of Gmail / Google Workspace? Someday I'll be able to do it...

CharlesW

Yes, I used imapsync to migrate from Google Workspace to iCloud+, worked great. This was the very helpful guide I followed: https://blah.cloud/miscellaneous/migrating-google-workspaces...

layer8

Doing that there's one issue I ran into, which is that GMail has a mail size limit of 25 MB whereas iCloud Mail only allows 20 MB, and I have a nontrivial number of emails with attachments just in between. If someone has a good solution for this other than manually removing or somehow shrinking (e.g. images) attachments, I'd be interested.

CharlesW

IIRC I used the imapsync --maxsize option, then hand-processed the relatively few (in my case) emails which had larger attachments. In my Google Workspace mail, I believe I searched emails using larger:19M has:attachment.

dclaw

Absolutely, ms365 too. Definitely a worthwhile tool, and if you have a big job or do it more than once a year you should purchase it.