Used Zammad installation source/Operating system: zammad.com Hosting
Expected behavior:
Fetch all mails via imap from a gmail account (gsuite)
Actual behavior:
We cant fetch any incoming mails via imap. User, Password are correct and imap settings are the same like the error message. The problem appeard today.
do you have two factor auth enabled on you gmail account?
do you run a self-hosted version or a hosted? If hosted please provide the instance name, so we can have a look at the logs.
I run Zammad with an gmail account myself and it works fine. There is no need to set the “unsafe app” flag in your account. Which allows older|lower ssl certs/ciphers/keys.
So, we took a look and it seems you are right.
We don’t support OAuth2 for gmail IMAP/SMTP. This means all IMAP/POP3/SMTP connection with username and password is “unsafe” for google, even over TLS/SSL. So you have to enable this setting (no matter if the client is Zammad or any other IMAPS/POP3/SMTPS client).
We will discuss this internally to enhance the support for this specific provider. If the support is there you have to register your app within google admin and then create the account within Zammad.
Which is a bit of a pain to.
In the meantime we will add this to documentation.