Topic: IMAPSYNC with gmail account
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I am trying to use imapsync to move my emails from the gmail /g-suit/ Google Workspace/ to iredmail but have had no luck it seems to be failing with the gmail login.
This is the command I am using:
imapsync \
--syncinternaldates \
--subscribeall \
--host1 imap.gmail.com \
--authmech1 LOGIN \
--port1 993 \
--ssl1 \
--gmail1 \
--user1 xx@icednetworks.com \
--password1 xx@32 \
--authuser1 xx@icednetworks.com \
--folderlast "[Gmail]/All Mail" \
--host2 127.0.0.1 \
--user2 xx2@icednetworks.com \
--password2 xx22@32 \
--noauthmd5 \
--automap \
--maxsleep 2 \
--synclabels \
--resynclabels \
--allowsizemismatch \
--exclude 'Trash|Spam' \
--debugssl 4 \
--dry
and it fails:
...
Err 1/1: Host1 failure: Error login on [imap.gmail.com] with user [xx@icednetworks.com] auth [LOGIN]: 2 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
....
It connects to the local mail server but fails with gmail.
Any help is welcomed, I have read others have done it successfully, but mine seems to be failing.
Thanks in advance.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.