[GH-ISSUE #12] Gmail blocking nmail for security reasons #11

Closed
opened 2026-03-03 01:18:54 +03:00 by kerem · 5 comments
Owner

Originally created by @Kabouik on GitHub (Jan 14, 2020).
Original GitHub issue: https://github.com/d99kris/nmail/issues/12

Originally assigned to: @d99kris on GitHub.

I don't usually use Gmail but I tried it with an old account and noticed nmail was blocked, with the following statement:

Application moins sécurisée bloquée
Google a bloqué l'application que vous essayiez d'utiliser, car cette dernière ne respecte pas nos normes de sécurité.
Certaines applications et certains appareils utilisent une technologie de connexion moins sécurisée, ce qui rend votre compte plus vulnérable. Vous pouvez désactiver l'accès pour ces applications (recommandé) ou l'activer si vous voulez les utiliser malgré les risques encourus. Google désactive automatiquement ce paramètre s'il n'est pas utilisé.

Roughly translated, it basically claims that the application I tried to use does not satisfy Gmail's security standards. They say it uses a less secured connection technology, which makes the account more vulnerable. I can force authorizing the access despite the vulnerabilities.

Is it related to certificates and SSL? IMAP and SMTP ports are set to 993 and 465 in main.conf.

In any case, it would be useful to add that in the nmail instructions because the error from nmail is not straightforward, it just says that it failed to get message ids. I had to go check the Gmail webmail to see what happened.

Originally created by @Kabouik on GitHub (Jan 14, 2020). Original GitHub issue: https://github.com/d99kris/nmail/issues/12 Originally assigned to: @d99kris on GitHub. I don't usually use Gmail but I tried it with an old account and noticed nmail was blocked, with the following statement: > Application moins sécurisée bloquée > Google a bloqué l'application que vous essayiez d'utiliser, car cette dernière ne respecte pas nos normes de sécurité. > Certaines applications et certains appareils utilisent une technologie de connexion moins sécurisée, ce qui rend votre compte plus vulnérable. Vous pouvez désactiver l'accès pour ces applications (recommandé) ou l'activer si vous voulez les utiliser malgré les risques encourus. Google désactive automatiquement ce paramètre s'il n'est pas utilisé. Roughly translated, it basically claims that the application I tried to use does not satisfy Gmail's security standards. They say it uses a less secured connection technology, which makes the account more vulnerable. I can force authorizing the access despite the vulnerabilities. Is it related to certificates and SSL? IMAP and SMTP ports are set to 993 and 465 in `main.conf`. In any case, it would be useful to add that in the nmail instructions because the error from nmail is not straightforward, it just says that it failed to get message ids. I had to go check the Gmail webmail to see what happened.
kerem closed this issue 2026-03-03 01:18:54 +03:00
Author
Owner

@d99kris commented on GitHub (Jan 14, 2020):

Hmm. That is strange. I'm using nmail with several Gmail accounts. Are you able to use any other email client with this Gmail account?

I believe Gmail by default blocks IMAP/SMTP access, unless one enables some "unsafe access" mode (I need to look up the exact name). This applies to all IMAP/SMTP clients.

But yep, it's a good idea to add some info on this in the README. Thanks for the input!

<!-- gh-comment-id:574163539 --> @d99kris commented on GitHub (Jan 14, 2020): Hmm. That is strange. I'm using `nmail` with several Gmail accounts. Are you able to use any other email client with this Gmail account? I believe Gmail by default blocks IMAP/SMTP access, unless one enables some "unsafe access" mode (I need to look up the exact name). This applies to all IMAP/SMTP clients. But yep, it's a good idea to add some info on this in the README. Thanks for the input!
Author
Owner

@Kabouik commented on GitHub (Jan 14, 2020):

Actually enabling those "less secure" applications did not solve the "Get message ids failed" in nmail, so maybe I spoke too fast. However, I did receive this email on Gmail, and it coincides with when I tried setting nmail for it, not another client.

I haven't tried reading those emails in any client lately, but I did some years ago and it was working.

<!-- gh-comment-id:574164605 --> @Kabouik commented on GitHub (Jan 14, 2020): Actually enabling those "less secure" applications did not solve the "Get message ids failed" in nmail, so maybe I spoke too fast. However, I did receive this email on Gmail, and it coincides with when I tried setting nmail for it, not another client. I haven't tried reading those emails in any client lately, but I did some years ago and it was working. ![](https://reho.st/0x0.st/z7hZ.png)
Author
Owner

@Kabouik commented on GitHub (Jan 14, 2020):

It finally succeeded fetching messages after I deleted the pass in main.conf to be prompted to type it again. Weirdly enough, I am positive that the password was correct before (tried several times before noticing this "less secure apps" issue in Gmail).

<!-- gh-comment-id:574171739 --> @Kabouik commented on GitHub (Jan 14, 2020): It finally succeeded fetching messages after I deleted the pass in `main.conf` to be prompted to type it again. Weirdly enough, I am positive that the password was correct before (tried several times before noticing this "less secure apps" issue in Gmail).
Author
Owner

@d99kris commented on GitHub (Jan 16, 2020):

Ok, good to hear you got it working. I guess there is still some room for improvement on nmail side, such as:

  • In README.md document the GMail "less secure" config needed
  • Better error message when authentication fails (rather than "Get message ids failed").

I'll keep this issue open until I've fixed those things.

<!-- gh-comment-id:575104060 --> @d99kris commented on GitHub (Jan 16, 2020): Ok, good to hear you got it working. I guess there is still some room for improvement on `nmail` side, such as: - In README.md document the GMail "less secure" config needed - Better error message when authentication fails (rather than "Get message ids failed"). I'll keep this issue open until I've fixed those things.
Author
Owner

@d99kris commented on GitHub (Jan 20, 2020):

I've implemented some improvements to the UI and added some note to the README. Feel free to re-open if you have suggestions for related improvements.

<!-- gh-comment-id:576324847 --> @d99kris commented on GitHub (Jan 20, 2020): I've implemented some improvements to the UI and added some note to the README. Feel free to re-open if you have suggestions for related improvements.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nmail#11
No description provided.