# Gmail POP3 needs an app password nowadays

**URL:** https://meta.discourse.org/t/gmail-pop3-needs-an-app-password-nowadays/229546
**Category:** Support
**Created:** [June 9, 2022, 1:50pm UTC](https://meta.discourse.org/t/gmail-pop3-needs-an-app-password-nowadays/229546 "2022-06-09T13:50:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [June 9, 2022, 1:50pm UTC](https://meta.discourse.org/t/gmail-pop3-needs-an-app-password-nowadays/229546/1 "2022-06-09T13:50:32Z")

</div>

Would this be the cause of our recent gmail issues too?

Approx three days ago we started seeing this:

 ![Screen Shot 2022-06-09 at 14.45.21](https://global.discourse-cdn.com/meta/original/4X/8/9/4/8944fcdde36c5f8f0629a36505db3d8c2ce3d258.png)

The logs show:

`Job exception: -ERR [AUTH] Username and password not accepted.`

And the details:

```plaintext
/usr/local/lib/ruby/2.7.0/net/pop.rb:1007:in `check_response_auth'
/usr/local/lib/ruby/2.7.0/net/pop.rb:906:in `auth'
/usr/local/lib/ruby/2.7.0/net/pop.rb:568:in `do_start'
/usr/local/lib/ruby/2.7.0/net/pop.rb:531:in `start'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:39:in `poll_pop3'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:14:in `execute'
/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'
rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:80:in `with_connection'
/var/www/discourse/app/jobs/base.rb:221:in `block in perform'
/var/www/discourse/app/jobs/base.rb:217:in `each'
/var/www/discourse/app/jobs/base.rb:217:in `perform'
/var/www/discourse/app/jobs/base.rb:279:in `perform'
mini_scheduler-0.13.0/lib/mini_scheduler/manager.rb:93:in `process_queue'
mini_scheduler-0.13.0/lib/mini_scheduler/manager.rb:37:in `block (2 levels) in initialize'
```

Per:

 ![Screen Shot 2022-06-09 at 14.46.27](https://global.discourse-cdn.com/meta/original/4X/7/4/3/74321ac73c84eb65ceade265634faee2f54c23fa.png)

The username and password are both unchanged (for years now) and also confirmed they were correct by copying and pasting them from the Discourse admin panel in to [gmail.com](http://gmail.com) to confirm they were correct.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 9, 2022, 1:53pm UTC](https://meta.discourse.org/t/gmail-pop3-needs-an-app-password-nowadays/229546/2 "2022-06-09T13:53:49Z")

</div>

Your one sounds more like the recent change that now makes you use 2FA and App Password for your google account:

> [@Connection to the POP3 server is failing with an authentication error. Please check your POP3 settings](https://meta.discourse.org/t/connection-to-the-pop3-server-is-failing-with-an-authentication-error-please-check-your-pop3-settings/229297/2):
>
> I recommend turning on 2FA on the account and setting up an App Password for Discourse. The policy change is about the “allow less secure app access” option being deprecated. More info on this here:

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 27, 2022, 11:05am UTC](https://meta.discourse.org/t/gmail-pop3-needs-an-app-password-nowadays/229546/3 "2022-10-27T11:05:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
