CentOS 7.x imapsync syntax
From Notes_Wiki
<yambe:breadcrumb self="imapsync syntax">CentOS_7.x_imapsync|imapsync</yambe:breadcrumb>
CentOS 7.x imapsync syntax
imapsync can be used for:
- Migrating from one email service (Eg GSuite) to another (Eg Zimbra)
- Migration from older version of email server (Eg Zimbra 8.6) to newer email server (Eg Zimbra 8.7)
- Migration from mulit-server email setup to single-server setup
- Creating a delayed HA between two servers using Zimbra community edition.
- Note this will only sync emails. User accounts, passwords, preferences, distribution lists, contacts, etc. need to be synced separately.
Imapsync syntax is:
imapsync \ --host1 <zimbra-host1> --user1 '<email-id>' --authuser1 admin@cgg.gov.in --password1 '<adminpass-zimbra-host1>' \ --host2 <zimbra-host2> --user2 '<email-id>' --authuser2 admin@cgg.gov.in --password2 '<adminpass-zimbra-host2>' \ --authmech1 plain --ssl1 --port1 993 \ --authmech2 plain --ssl2 --port2 993 \ --subscribe --useheader 'Message-Id' --skipsize --allowsizemismatch --syncinternaldates --fast --nofoldersizes \ --exclude "Drafts|Junk|Trash|Junk E-mail|Emailed Contacts" --noauthmd5