The Lazy Admin Blog

Home  /  Emails  /  Migrate Emails Using imapsync

Migrate Emails Using imapsync

September 30, 2022 Emails Leave a Comment

Migrating emails from one mailbox to another could be a very frustrating task.
Luckily there is a free tool called “imapsync” which uses as a proxy that will fetch your emails from the old mailbox and will push them to the new one, and that’s basically a straightforward IMAP-based migration.

Let’s start with installing –

yum install epel-release
yum install imapsync

Execute it from the shell with the appropriate variables –

imapsync --host1 OLD_HOST_IP  \
   --user1 OLD_MAIL_BOX      \
   --password1 OLD_MAIL_BOX_PASSWORD       \
   --ssl1     \
   --host2 NEW_HOST_IP    \
   --user2 NEW_MAIL_BOX      \
   --password2 NEW_MAIL_BOX_PASSWORD   \
   --ssl2

If the connection is using SSL/TLS, use the flag “ssl”. This will default to port 993.

If the connection is using STARTTLS, use the flag “tls”. This will default to port 143.

Tags: Emails, IMAP
Previous Article
Next Article

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search Our Blog

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
Apache
CentOS
CloudLinux
cPanel
Emails
ESXI
iSCSI
JetBackup
Linux
Litespeed
MySQL
NGINX
Oracle
Reduxio
Security
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup bash CentOS cloudlinux cPanel CXS Emails freetds google htaccess IMAP InnoDB iscsi JetBackup Libmodsecurity litespeed modsec modsecurity mssql MySQL netapp nginx odbc Oracle php php.ini phpselector rsync ssh ssmtp systemd threads VMFS WHM Wordpress xenserver

Popular Posts

  • Convert JetBackup to cPanel structure October 6, 2022
  • How To Install & Configure a Galera Cluster with MariaDB on Centos 7 February 6, 2018
  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • rsync without prompting for password October 10, 2022

Recent Posts

  • Understanding Why More Threads Can Sometimes Slow Down Performance October 9, 2024
  • Set up a new systemd service May 18, 2024
  • Bash Arrays November 7, 2023
  • rsync without prompting for password October 10, 2022

Recent Comments

  • Sven on rsync without prompting for password
  • TheLazyAdmin on rsync without prompting for password
  • Sven on rsync without prompting for password
  • TheLazyAdmin on Convert JetBackup to cPanel structure
  • Chris on Convert JetBackup to cPanel structure
Privacy Policy • Contact