Automic VaultAutomic Vault

brew

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

Additional install commands

macOS

Homebrewverified · 100%
brew install imapsync

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install imapsync

MacPorts ports tree · mail/imapsync/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add imapsync

Alpine Linux edge package indexes · imapsync · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install imapsync

Fedora Rawhide package metadata · imapsync · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#imapsync

nixpkgs package indexes · pkgs/by-name/im/imapsync/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S imapsync

Arch Linux sync databases · imapsync · source: geo.mirror.pkgbuild.com

overview

Package summary

Migrate or backup IMAP mail accounts

Commands and aliases

  • imapsync

history

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.

security posture

Risk level: blue

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

Risk classifier

blue risk · medium confidence · tool

Why

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

Signals

  • text:sync,backup

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
imapsynccliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.314
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

https://imapsync.lamiral.info/

install metadata

Package metadata

Package keybrew:imapsync
Version2.314
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/imapsync
Homepagehttps://imapsync.lamiral.info/
Repositoryhttps://github.com/imapsync/imapsync
Upstream docshttps://imapsync.lamiral.info/
LicenseNLPL
Source archivehttps://imapsync.lamiral.info/dist2/imapsync-2.314.tgz
Last updated2026-06-22T14:03:46-07:00
Pulseupdated
Build dependenciespod2man
Uses from macOSperl
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameimapsync
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

imapsync

nix profile install nixpkgs#imapsync
  • normalized package name match
  • Matched by: Imapsync
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/im/imapsync/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

imapsync 2.314-r0

IMAP synchronisation, sync, copy or migration tool

https://imapsync.lamiral.info/

sudo apk add imapsync
  • License: NLPL
  • Architecture: x86_64
  • Source Package: imapsync
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Imapsync
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: imapsync from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

imapsync-doc 2.314-r0

IMAP synchronisation, sync, copy or migration tool (documentation)

https://imapsync.lamiral.info/

sudo apk add imapsync-doc
  • License: NLPL
  • Architecture: x86_64
  • Source Package: imapsync
  • normalized package name match
  • Matched by: Imapsync
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: imapsync-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

imapsync 2.229-10.fc44

Tool to migrate email between IMAP servers

http://github.com/imapsync/imapsync

sudo dnf install imapsync
  • License: NLPL
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: imapsync
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Imapsync
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: imapsync from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

imapsync 2.314-1

IMAP synchronisation, sync, copy or migration tool

https://imapsync.lamiral.info/

sudo pacman -S imapsync
  • License: custom:imapsync
  • Architecture: any
  • 29 dependencies
  • normalized package name match
  • Matched by: Imapsync
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: imapsync from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

imapsync

sudo port install imapsync
  • normalized package name match
  • Matched by: Imapsync
MacPorts ports tree · api.github.com · MacPorts ports tree: mail/imapsync/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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