LinuxCommandLibrary

imapsync

synchronizes IMAP mailboxes between servers

TLDR

Sync mailboxes

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

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.

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community