imapsync

synchronizes IMAP mailboxes between servers

TLDR

Sync mailboxes
$ imapsync --host1 [src] --user1 [user] --password1 [pass] --host2 [dst] --user2 [user] --password2 [pass]
Dry run
$ imapsync --dry --host1 [src] --user1 [user] ...
Exclude folders
$ imapsync --exclude "Trash|Spam" --host1 [src] ...
SSL connections
$ imapsync --ssl1 --ssl2 --host1 [src] ...
Delete source after sync
$ imapsync --delete1 --host1 [src] ...

SYNOPSIS

imapsync [options]

DESCRIPTION

imapsync synchronizes IMAP mailboxes between servers. It copies emails, folders, and flags from source to destination.The tool handles mail migrations and backups. It supports incremental sync, filtering, and various authentication methods.

PARAMETERS

--host1 HOST

Source IMAP server.
--user1 USER
Source username.
--password1 PASS
Source password.
--host2 HOST
Destination server.
--user2 USER
Destination username.
--dry
Dry run mode.
--ssl1, --ssl2
Use SSL.
--help
Display help information.

INSTALL

sudo dnf install imapsync
sudo pacman -S imapsync
brew install imapsync
nix profile install nixpkgs#imapsync

CAVEATS

Can be slow for large mailboxes. Memory usage scales with size. Commercial version available.

HISTORY

imapsync was created by Gilles Lamiral for IMAP mailbox migration and synchronization.

SEE ALSO

offlineimap(1), mbsync(1), fetchmail(1)