# E-mail polling on GMAIL not working

**URL:** https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562
**Category:** Support
**Created:** [February 19, 2019, 3:57pm UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562 "2019-02-19T15:57:38Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![meetya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meetya/32/139401_2.png) [@meetya](https://meta.discourse.org/u/meetya)
#### Post date: [February 19, 2019, 3:57pm UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/1 "2019-02-19T15:57:38Z")

</div>

Hello,

Since yesterday I am having difficulties polling for gmail replies as shown here:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/5/954251dae04a36ab43872616ba3da24339cdd20a.png)

These are my Google Account security settings:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/f/4f686c6f34b3c002e53c460505f374e2271be86e.png)  
As you can see I’ve got 2-Step Verification turned off.

I’ve also enabled Account access via [this page](https://accounts.google.com/b/0/DisplayUnlockCaptcha) as explained on [this topic](https://meta.discourse.org/t/troubleshooting-gmail-poll-via-pop3-for-email-replies/61839/4).

However, I’ve read somewhere that there might be some problems, because I am based in Slovenia, so our gmail account was created from Slovenia as well whereas our DigitalOcean servers are based in New York.

For example, when I try to log into this email account using a new browser, Gmail requires me to type in a code I receive over SMS message.

And ideas?

Note: and to state the obvious: log in credentials are correct - they were working just 5 days ago.

Thanks!  
Mitja

---

<div class="post-metadata">

### Author: ![meetya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meetya/32/139401_2.png) [@meetya](https://meta.discourse.org/u/meetya)
#### Post date: [February 19, 2019, 8:40pm UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/2 "2019-02-19T20:40:45Z")

</div>

I’m posting the solution here just in case someone else has the same problem.

What actually helped was to switch 2-step verification ON, and create an [App password](https://support.google.com/accounts/answer/185833?hl=en) and insert it in the Discourse POP3 password setting instead of my usual Gmail account password

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [February 19, 2019, 8:43pm UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/3 "2019-02-19T20:43:28Z")

</div>

> [@meetya](#):
>
> log in credentials are correct

Yes - that error from gmail is not an authentication failure. It’s asking you to login from a web browser because it think something fishy is going on with the account.

By turning on 2FA you’ve done what gmail was asking - you logged in via a browser.

Are you also using it to send emails?

---

<div class="post-metadata">

### Author: ![meetya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meetya/32/139401_2.png) [@meetya](https://meta.discourse.org/u/meetya)
#### Post date: [February 20, 2019, 7:23am UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/4 "2019-02-20T07:23:11Z")

</div>

yeah, but before enabling 2-step verification, logging into via web-browser didn’t help either. Probably because Google cannot make the connection between discourse trying to connect (with DO servers in New York) and me connection from a browser in Slovenia.

I am using Sparkpost to send emails. I created a dedicated basic gmail account only for receiving emails (reply via email) feature.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [February 20, 2019, 7:26am UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/5 "2019-02-20T07:26:22Z")

</div>

You can maybe consider this as an alternative?

[Configure direct-delivery incoming email for self-hosted sites with Mail-Receiver](https://meta.discourse.org/t/straightforward-direct-delivery-incoming-mail/49487)

---

<div class="post-metadata">

### Author: ![meetya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meetya/32/139401_2.png) [@meetya](https://meta.discourse.org/u/meetya)
#### Post date: [February 20, 2019, 7:46am UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/6 "2019-02-20T07:46:22Z")

</div>

Everything is working now anyway. As far as I understood from the Gmail documentation, it is a recommended approach to give apps, such as Discourse, special App passwords, that you can generate inside your google account security settings, instead of your ‘human’ google password.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 20, 2019, 12:50pm UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/7 "2019-02-20T12:50:36Z")

</div>

I would recommend moving discourse to Amsterdam (it is closer and the newest/best data center) and using the incoming mail server recommended above.

---

<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: [March 17, 2022, 4:17am UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/9 "2022-03-17T04:17:34Z")

</div>



---

<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: [April 16, 2022, 4:18am UTC](https://meta.discourse.org/t/e-mail-polling-on-gmail-not-working/109562/10 "2022-04-16T04:18:02Z")

</div>

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