To copy emails from one mailbox to another using imapsync, use
imapsync --host1 IP_SRC_SERVER -user1 YOU@YOURDOMAIN --password1 'PASSWORD' --host2 IP_NEW_SERVER --user2 YOU@YOURDOMAIN --password2 'PASSWORD'
Example
imapsync --host1 gator4170.hostgator.com -user1 [email protected] --password1 'CE2U7gnTq0CUk6' --host2 server20.hostonnet.com --user2 [email protected] --password2 'CE2U7gnTq0CUk6'
In this example, source and destination email and passwords are the same.
Install Using Docker
imapsync available as a docker container at https://hub.docker.com/r/gilleslamiral/imapsync/
Pull the image
docker pull gilleslamiral/imapsync
To use it, run
docker run gilleslamiral/imapsync imapsync
Install ImapSync on Ubuntu/Debian
Install dependency
apt-get install -y libauthen-ntlm-perl libclass-load-perl libcrypt-ssleay-perl libdata-uniqid-perl libdigest-hmac-perl libdist-checkconflicts-perl libencode-imaputf7-perl libfile-copy-recursive-perl libfile-tail-perl libio-compress-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libmail-imapclient-perl libmodule-scandeps-perl libnet-dbus-perl libnet-ssleay-perl libpar-packer-perl libreadonly-perl libregexp-common-perl libsys-meminfo-perl libterm-readkey-perl libtest-fatal-perl libtest-mock-guard-perl libtest-mockobject-perl libtest-pod-perl libtest-requires-perl libtest-simple-perl libunicode-string-perl liburi-perl libtest-nowarnings-perl libtest-deep-perl libtest-warn-perl make cpanminus
Install imapsync
git clone https://github.com/imapsync/imapsync.git cd imapsync ./imapsync
For more info, see
https://imapsync.lamiral.info/INSTALL.d/INSTALL.Ubuntu.txt
See imap
Leave a Reply