Hi everyone đź‘‹
I am trying to import emails from Google mail (Gmail), into my association’s server running Mailcow (that we love 💝).
As I have to migrate a few dozens of email, I would like to find the easiest solution possible (i.e. the one with the least manual steps).
As anyone managed to make it work since Google since 30.05.2022 without creating an App-Password ?
See https://support.google.com/accounts/answer/6010255?hl=de&visit_id=637922209820747986-630763291&p=less-secure-apps&rd=1 and https://community.mailcow.email/d/1708-email-sync-job-not-working
Or would you recommend another way to migrate many emails from Google to Mailcow ?
If I don’t use the App-password, I am faced with a “Wrong username or password” error. Which I think is normal given the Google authentication policy (but I might be wrong).
I am using the Task Synchronization feature with the following configuration: imag.gmail.com
, port 993, and I activated IMAP on the Gmail side.
Here is the error details (redacted):
Host1 banner: * OK Gimap ready for requests from x.x.x.x p5mb50838256wmo
Host1 capability before authentication: IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH
Host1 info: authmech [LOGIN] user [my.user.redacted@gmail.com] authuser [] IsUnconnected []
Host1 failure: Error login on [imap.gmail.com] with user [my.user.redacted@gmail.com] auth [LOGIN]: 2 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
Host1: failed login on [imap.gmail.com] with user [my.user.redacted@gmail.com] auth [LOGIN]
Host2: connecting and login on host2 [localhost] port [993] with user [my.user*pass@mailcow.local]
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
Host2 IP address: ::1
Host2 banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
Host2 capability before authentication: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN AUTH
Host2: localhost says it has CAPABILITY for AUTHENTICATE LOGIN
Host2: success login on [localhost] with user [my.user*pass@mailcow.local] auth [LOGIN] or [LOGIN]
++++ Listing 1 errors encountered during the sync ( avoid this listing with --noerrorsdump ).
Err 1/1: Host1 failure: Error login on [imap.gmail.com] with user [my.user.redacted@gmail.com] auth [LOGIN]: 2 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
The most frequent error is ERR_AUTHENTICATION_FAILURE_USER1. Check the credentials for my.user.redacted@gmail.com.
Exiting with return value 161 (EXIT_AUTHENTICATION_FAILURE_USER1) 1/50 nb_errors/max_errors PID 1230571
Disconnecting from host2 localhost user2 my.user*pass@mailcow.local
No log file because of option --nolog
Thanks !