Back up and
move your mail
Switch providers without losing a single message, or back up your mailbox before you cancel it. Free, for macOS, Windows and Linux.
Version 0.2.3. All systems and checksums

One file per message
A backup is an ordinary folder: one .eml file per message, sorted like your account. Every mail program opens these files, with or without IMAP Transfer.
- After the first run, only new mail is fetched.
- Mail you delete in the account stays in the backup.
- An mbox export takes everything to Thunderbird or Apple Mail.
anna@example.com/
├── README.txt
├── imaptransfer.db
└── mail/
├── INBOX/
│ ├── 2024-05-03_Invoice May_3f2a9c01b4.eml
│ └── 2024-05-06_Lunch on Friday_8c41d27e90.eml
├── Archive/
│ └── 2023/
│ └── 2023-11-20_Contract_b7e0a5f312.eml
└── Sent/
└── 2024-05-04_Offer for the garden_51d9c0e6a8.eml

From provider to provider
Choose the target account, and IMAP Transfer shows every folder and where it goes: Sent becomes Sent Items, a missing folder is created. Mail that is already there is skipped.
The old account stays as it is. The migration only reads from it.
Until you have switched over, Sync keeps the new account in step with the old one: what you delete or move there happens here too.
Before you ask
Stop whenever you like
Close the laptop or lose the connection: the next run continues where the last one ended, without a single duplicate.
Duplicates cleaned up
A test run lists every exact copy and changes nothing. Only then do you decide; one of each message stays.
Any IMAP provider
Gmail, Outlook, iCloud, GMX, WEB.DE, T-Online, IONOS, Posteo and every other. The app knows their settings and tells you what to prepare.
Gmail labels kept
A message with five labels is stored once and goes back into all five when you restore it.
On the command line
The same engine runs on servers, NAS boxes and from cron, as imaptransfer. It needs Node.js 22.18 or newer, or Docker.
Exit codes tell a script what happened: 0 done, 2 done but some messages failed, 1 failed, 130 stopped.
# Back up; later runs only fetch what is new
npx imaptransfer backup ~/Backups/anna --user anna@example.com
# Every night at 2:00 (crontab -e)
0 2 * * * imaptransfer backup /srv/backups/anna --user anna@example.com --password-file /root/.anna-imap --quiet
# Move an account and keep it in step
imaptransfer migrate --from-user anna@example.com --to-user anna@example.org --sync
# On a NAS
docker run --rm -v /volume1/backups/anna:/backup -e IMAPTRANSFER_PASSWORD \
ghcr.io/scherhans/imaptransfer backup /backup --user anna@example.com
Download
Version 0.2.3, released on 24 November 2026. Checksums: SHA-256.
IMAP Transfer is free, and liability is limited accordingly. Back up your mail before you restore, migrate, sync or clean up. About liability
macOSYour system
A disk image. Apple silicon for Macs with an M chip, Intel for older Macs.
-
Apple silicon
121 MB
ec0f461ed43d36da5800e196a6e0ddae 8c45b93fde85e851 3a8859ec60270f8d -
Intel
128 MB
48676bf590f597f77c3167bf273310ed 8efd41432c030007 8e46423c15999c86
WindowsYour system
An installer. Intel and AMD for most PCs, ARM for laptops with a Snapdragon chip.
-
Intel and AMD
122 MB
3fbe2da1648b6471f9f8603a96c7a9bf 051082928c73928e 1710e2b8fd70ac62 -
ARM
116 MB
bc316360851eb1dcd57fbe9be8c3c632 ebc9ef4857675acf 33da3af95edfcf09
LinuxYour system
The AppImage runs almost anywhere, the .deb package on Debian and Ubuntu.
-
AppImage, x64
126 MB
1b810ca6407dbdb9ada0394202108799 8f42d9493d2fdeaf 572156454f4e354f -
.deb, x64
102 MB
035e61912b1bb47680e6e3af7e97a304 6d8acdca50cb5b20 a1ce787669a644b4 -
AppImage, ARM64
128 MB
1409a623eeb939ec46223d81e804a105 508d850e96c70a8f 3e6557fb13bf26ab -
.deb, ARM64
97 MB
f4dd521aa8c34230e15172143eac4629 177ad069ea7c79c0 274621884f0245b0
Check the file
Drop the downloaded file here, or choose it. Your browser computes the checksum itself and compares it with the checksums above; the file does not leave your computer.
Or in a terminal:
- macOS
shasum -a 256 ~/Downloads/imaptransfer-0.2.3-mac-arm64.dmg - Windows (PowerShell)
Get-FileHash $HOME\Downloads\imaptransfer-0.2.3-windows-x64.exe - Linux
sha256sum ~/Downloads/imaptransfer-0.2.3-linux-x86_64.AppImage