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
Litespeed
MySQL
NGINX
Oracle
Reduxio
Security
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup 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 VMFS WHM Wordpress xenserver

Popular Posts

  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • How To Install & Configure a Galera Cluster with MySQL on Centos 7 February 6, 2018
  • Libmodsecurity installation April 14, 2016
  • JetBackup Cheat Sheet :: Automatically Acknowledge Alerts November 15, 2018

Recent Posts

  • rsync without prompting for password October 10, 2022
  • Convert JetBackup to cPanel structure October 6, 2022
  • Configure LiteSpeed Crawler October 5, 2022
  • Change Hostname in Oracle Cloud Infrastructure (OCI) October 3, 2022

Recent Comments

  • Anonymous on InnoDB: Failed to find tablespace for table `X` in the cache
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Oleg Drabkin on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
Privacy Policy • Contact