Imapsync¶
Imapsync
is a tool that allows migrating e-mail accounts via IMAP
or their backup.
Arguments¶
--host1
address of the imap server from which to migrate.
--port1
port to connect to host 1 (default 143).
--user1
username used for authentication on host1.
--host2
address of the imap server to which the migration will be performed.
--port2
port to connect to host 2 (default 143).
--user2
username used to authenticate to host2.
Examples¶
Migrate all folders (and e-mails) from user@example.net (IMAP imap.example.net, IMAP port 993, SSL) to the user@domain.com account (IMAP host2.domain.com, IMAP port 993, SSL):
imapsync --host1 imap.example.net \
--port1 993 \
--user1 user@example.net \
--ssl1 \
--host2 host2.doamin.com \
--user2 user@domain.com \
--port2 993 \
--ssl2 \
--authmech1 PLAIN \
--authmech2 PLAIN \
--addheader
Migrate Drafts, Sent, Trash, Spam and INBOX folders from user@example.net (IMAP server imap.example.net, IMAP port 993, SSL) to the user@domain.com account (IMAP server host2.domain.com, IMAP port 993, SSL) using the "." separator when NAMESPACE is not supported:
imapsync --host1 imap.example.net \
--port1 993 \
--user1 user@example.net \
--ssl1 \
--host2 host2.domain.com \
--user2 user@domain.com \
--port2 993 \
--ssl2 \
--authmech1 PLAIN \
- Drafts \ folder
- Sent folder \
- Trash \ folder
- Spam folder \
- INBOX \ folder
--authmech2 PLAIN \
--sep2 "." \
--prefix2 "" \
--addheader