# Install imapsync with Homebrew, apk, dnf, MacPorts, Nix, pacman

Migrate or backup IMAP mail accounts. Version 2.314 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:imapsync
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install imapsync
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install imapsync
```

  Evidence: MacPorts ports tree: mail/imapsync/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add imapsync
```

  Evidence: Alpine Linux edge package indexes: imapsync from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install imapsync
```

  Evidence: Fedora Rawhide package metadata: imapsync from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#imapsync
```

  Evidence: nixpkgs package indexes: pkgs/by-name/im/imapsync/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S imapsync
```

  Evidence: Arch Linux sync databases: imapsync from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:imapsync
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/imapsync>
- **Version:** 2.314
- **Source summary:** Migrate or backup IMAP mail accounts
- **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
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- imapsync (cli)
- imapsync (alias)

## Build dependencies

- pod2man

## Uses from macOS

- perl

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.314
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://imapsync.lamiral.info/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 2001: Gilles Lamiral writes imapsync for a BaSystemes IMAP server migration over a fragile ISDN link.
- 2007: imapsync.spec work appears in project FAQ history, showing packaging interest around Linux distributions.
- 2011: The GitHub repository is created.
- 2024: The ChangeLog reaches the 2.300 series with refactoring, CGI, Gmail, and logging changes.
- 2025: Release 2.314 is documented in the README and VERSION file.
- 2026: The ChangeLog records 2.32x revisions, including refactoring and option changes.

### Related projects

- Mail-IMAPClient is the Perl module lineage named by imapsync's history section.
- rsync is the design inspiration named by the author for avoiding duplicate transfer work.
- offlineimap and mbsync are related IMAP synchronization tools that the README names for two-way synchronization use cases.

### Sources

- <https://api.github.com/repos/imapsync/imapsync>
- <https://formulae.brew.sh/api/formula/imapsync.json>
- <https://github.com/imapsync/imapsync>
- <https://imapsync.lamiral.info/>
- <https://imapsync.lamiral.info/ChangeLog>
- <https://imapsync.lamiral.info/INSTALL.d/INSTALL.ANY.txt>
- <https://imapsync.lamiral.info/README>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Nix - imapsync: normalized package name match | nixpkgs package indexes: pkgs/by-name/im/imapsync/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - imapsync - 2.314-r0: normalized package name match | Alpine Linux edge package indexes: imapsync from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | IMAP synchronisation, sync, copy or migration tool | https://imapsync.lamiral.info/
- apk - imapsync-doc - 2.314-r0: normalized package name match | Alpine Linux edge package indexes: imapsync-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | IMAP synchronisation, sync, copy or migration tool (documentation) | https://imapsync.lamiral.info/
- dnf - imapsync - 2.229-10.fc44: normalized package name match | Fedora Rawhide package metadata: imapsync from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tool to migrate email between IMAP servers | http://github.com/imapsync/imapsync
- pacman - imapsync - 2.314-1: normalized package name match | Arch Linux sync databases: imapsync from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | IMAP synchronisation, sync, copy or migration tool | https://imapsync.lamiral.info/
- MacPorts - imapsync: normalized package name match | MacPorts ports tree: mail/imapsync/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [imap-backup](https://www.automicvault.com/pkg/brew/imap-backup/) - Shares av.db curated category or tags: cli, email, email-backup, email-migration, imap.
- [himalaya](https://www.automicvault.com/pkg/brew/himalaya/) - Shares av.db curated category or tags: cli, email, imap, productivity.
- [imapfilter](https://www.automicvault.com/pkg/brew/imapfilter/) - Shares av.db curated category or tags: cli, email, imap, productivity.
- [mailcheck](https://www.automicvault.com/pkg/brew/mailcheck/) - Shares av.db curated category or tags: cli, email, imap, productivity.
- [meli](https://www.automicvault.com/pkg/brew/meli/) - Shares av.db curated category or tags: cli, email, imap, productivity.
- [neomutt](https://www.automicvault.com/pkg/brew/neomutt/) - Shares av.db curated category or tags: cli, email, imap, productivity.
- [neverest](https://www.automicvault.com/pkg/brew/neverest/) - Shares av.db curated category or tags: cli, email, imap, productivity.
- [nmail](https://www.automicvault.com/pkg/brew/nmail/) - Shares av.db curated category or tags: cli, email, imap, productivity.

## Combined YAML source

View the package source record on GitHub. [combined/imapsync.yml](https://github.com/automic-vault/db/blob/main/combined/imapsync.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
