macOS
brew install imapsynclocal Homebrew formula metadata
sudo port install imapsyncMacPorts ports tree · mail/imapsync/Portfile · source: api.github.com
brew
Migrate or backup IMAP mail accounts. Version 2.314 via Homebrew; verified 2026-06-22.
install
brew install imapsynclocal Homebrew formula metadata
sudo port install imapsyncMacPorts ports tree · mail/imapsync/Portfile · source: api.github.com
sudo apk add imapsyncAlpine Linux edge package indexes · imapsync · source: dl-cdn.alpinelinux.org
sudo dnf install imapsyncFedora Rawhide package metadata · imapsync · source: dl.fedoraproject.org
nix profile install nixpkgs#imapsyncnixpkgs package indexes · pkgs/by-name/im/imapsync/package.nix · source: api.github.com
sudo pacman -S imapsyncArch Linux sync databases · imapsync · source: geo.mirror.pkgbuild.com
overview
Migrate or backup IMAP mail accounts
history
imapsync is a Perl command-line tool for one-way IMAP account migration and backup. It is one of the practical workhorse packages administrators reach for when mailboxes need to move between providers without duplicating messages or losing folder structure and flags.
Gilles Lamiral's README gives an unusually clear origin story: he initially wrote imapsync in July 2001 for BaSystemes, which needed to install a new IMAP server without losing large old mailboxes reachable over an unreliable low-bandwidth ISDN link.
The same history section says imapsync began as a patch to copy_folder.pl from the Mail-IMAPClient Perl module examples. Its design was explicitly made with rsync in mind: reruns should avoid wasting bandwidth and avoid creating duplicates.
The ChangeLog is an RCS-style log with more than one thousand revisions. It documents a tool that evolved through provider-specific behavior, Gmail and Yahoo options, OAuth support, web/CGI use, Docker behavior, logging, folder mapping, and a large unit-test corpus.
imapsync moved from a bespoke migration script into a long-running public tool with a distinctive funding model. The README says it is free, open, and public under the NOLIMIT Public License, while the author sells builds and support as a way to maintain the tool over decades.
The installation docs cover Unix, Windows, macOS, Docker, Debian, FreeBSD, Arch Linux, CPanel, AWS EC2, and an online UI. That breadth reflects adoption by individual users, hosting providers, consultants, and administrators doing bulk migrations rather than only local backups.
Homebrew formula metadata lists imapsync as a bottled package for macOS and Linux. That packaging matters because imapsync has a deep Perl dependency surface; package managers turn it from a migration project into a single installable command.
The core invocation names a source host, user, and password plus a destination host, user, and password. imapsync then recursively transfers folders and messages, preserves flags, and skips messages it has already identified on the destination.
The README is careful about operational limits: imapsync is for migration and backup, not active two-way synchronization. It points users who need two-way sync toward offlineimap or mbsync, and it documents strict destination cleanup with options such as --delete2.
For package nerds, imapsync is significant because it packages a messy real-world protocol job into a repeatable CLI. IMAP servers disagree, provider policies change, Gmail labels behave unlike folders, and credentials migrate from passwords to OAuth; imapsync's long option list is a fossil record of those edge cases.
It is also a useful example of an open tool that is commercially sustained without disappearing from package managers. The package remains scriptable and inspectable while the author sells convenience builds, support, and an online migration surface.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
imapsync | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://imapsync.lamiral.info/
install metadata
| Package key | brew:imapsync |
|---|---|
| Version | 2.314 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/imapsync |
| Homepage | https://imapsync.lamiral.info/ |
| Repository | https://github.com/imapsync/imapsync |
| Upstream docs | https://imapsync.lamiral.info/ |
| License | NLPL |
| Source archive | https://imapsync.lamiral.info/dist2/imapsync-2.314.tgz |
| Last updated | 2026-06-22T14:03:46-07:00 |
| Pulse | updated |
| Build dependencies | pod2man |
| Uses from macOS | perl |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | imapsync |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
imapsync
nix profile install nixpkgs#imapsyncimapsync 2.314-r0
IMAP synchronisation, sync, copy or migration tool
https://imapsync.lamiral.info/
sudo apk add imapsyncimapsync-doc 2.314-r0
IMAP synchronisation, sync, copy or migration tool (documentation)
https://imapsync.lamiral.info/
sudo apk add imapsync-docimapsync 2.229-10.fc44
Tool to migrate email between IMAP servers
http://github.com/imapsync/imapsync
sudo dnf install imapsyncimapsync 2.314-1
IMAP synchronisation, sync, copy or migration tool
https://imapsync.lamiral.info/
sudo pacman -S imapsyncimapsync
sudo port install imapsyncsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.