POP3 polling error

(Mathew Medoff) #1

I am having issues tracking down a problem.

In my admin panel I am seeing the following message

Some problems have been found with your installation of Discourse:

* Email polling has generated 4 errors in the past 24 hours. Look at [the logs] for more details.

on /logs I am seeing

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

This is the backtrace data

/usr/local/lib/ruby/2.4.0/net/pop.rb:1006:in `check_response_auth'
/usr/local/lib/ruby/2.4.0/net/pop.rb:905:in `auth'
/usr/local/lib/ruby/2.4.0/net/pop.rb:567:in `do_start'
/usr/local/lib/ruby/2.4.0/net/pop.rb:531:in `start'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:41:in `poll_pop3'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:16:in `execute'
/var/www/discourse/app/jobs/base.rb:134:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rails_multisite-2.0.4/lib/rails_multisite/connection_management.rb:63:in `with_connection'
/var/www/discourse/app/jobs/base.rb:129:in `block in perform'
/var/www/discourse/app/jobs/base.rb:125:in `each'
/var/www/discourse/app/jobs/base.rb:125:in `perform'
/var/www/discourse/app/jobs/base.rb:180:in `perform'
/var/www/discourse/lib/scheduler/manager.rb:91:in `process_queue'
/var/www/discourse/lib/scheduler/manager.rb:37:in `block in initialize'

I have verified using ruby net/pop that my credentials works. The polling interval is also set to 5 minutes and it has only failed 5 times in 24 hours. It has been happening for about 2 days now and I am just not having any luck tracking down the issue.

Anyone have any suggestions?

(Matt Palmer) #2

If your e-mail provider is intermittently failing to accept the username and password given to it, you probably want to talk to the operators of the e-mail service.

(Mathew Medoff) #3

I will be contacting google as well since this is a gmail account. I have been digging through the logs on the server and I can not seem to find an entry for these errors in any of my logs so I do not have timestamps for each instance of a failure that I can take to them. I am hoping I am overlooking a log somewhere.

(Jay Pfaffman) #4

If it’s a regular Gmail account then using it to deliver Discourse email is a violation of Google’s terms. I think it should work for G-Suite, however.

You’ll almost certainly be better off with a service like Mailgun.

(Mathew Medoff) #5

I am using G-Suite, I believe I have been able to resolve the issue by increasing polling interval.