Password reset to Gmail addresses fails

150 views
Skip to first unread message

Alastair Campbell

unread,
Dec 4, 2017, 4:24:12 AM12/4/17
to Django users
Hi everyone,

I have a very strange problem, I'm looking for ideas on where to debug.

Using the standard password reset in Django (v 1.10), it silently fails to send to Gmail addresses.

There is no error generated by Django, and it works for non-Gmail addresses.

In /var/log/mail.log (a Debian VM on Linode), nothing gets passed to the mail log (and I checked .err, .warn and .info as well), it is like it didn't happen.

I can send email from that box to gmail addresses via my email client, that works fine and shows up in the logs. (And the TLS cert is being used, and I have done SPF.)

Is there somewhere between the mail log and django that I need to check? Any clues or similar problems recently?

Thanks,

-Alastair

Julio Biason

unread,
Dec 4, 2017, 8:19:50 AM12/4/17
to django...@googlegroups.com
Hi Alastair,

Just one question: are you using Gmail SMTP to send those messages or are you using your own/a third party?

Because Google could’ve marked your domain/server as spam and it is simply deleting all messages incoming from it (we had a similar problem a few days ago). If that’s the case, you need to contact the GMail team to ask what happened (I don’t have their contact ‘cause it was someone else here that solved that problem).

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAC5%2BKCFBuei5Cnue8yRwac%3Da92yr2e9AmUzuN_Q6OTf8mMV5vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Antonis Christofides

unread,
Dec 4, 2017, 8:19:50 AM12/4/17
to django...@googlegroups.com

Hello,

could you show your EMAIL_* settings?

(Meanwhile https://djangodeployment.com/2017/01/18/why-does-django-not-email-me-the-500-internal-server-error/ might help.)

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com

Alastair Campbell

unread,
Dec 4, 2017, 9:40:09 AM12/4/17
to Django users
Thanks, 

The django settings are very straightforward (localhost, email address set), and I've just tried sending from Mutt on that server (command line email from localhost), with the same email address, and that appears in the logs and gets delivered.

But from the password reset: nothing happens in the mail logs, nothing is delivered.

I get emails to my own (non-gmail) email from the password reset, and they show in the logs as well.

It is just from django, and just to gmail.

Very odd, 

-Alastair

Jason

unread,
Dec 4, 2017, 10:13:42 AM12/4/17
to Django users
what do you have for EMAIL_PORT and EMAIL_USE_TLS?  IIRC, gmail requires TLS to be True.

Vivek Shrivastava

unread,
Dec 4, 2017, 10:27:49 AM12/4/17
to django...@googlegroups.com
Also, please check if "allow insure access" is turned on for GMail. 

On Mon, Dec 4, 2017 at 10:13 AM, Jason <jjohn...@gmail.com> wrote:
what do you have for EMAIL_PORT and EMAIL_USE_TLS?  IIRC, gmail requires TLS to be True.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Alastair Campbell

unread,
Dec 4, 2017, 11:45:29 AM12/4/17
to Django users
Jason wrote:
what do you have for EMAIL_PORT and EMAIL_USE_TLS?  IIRC, gmail requires TLS to be True.

They are default (not set in the config). I believe the TLS is set by the mail agent, and the email I sent from Mutt on the command line used TLS so that appears to work.

Vivek wrote:
Also, please check if "allow insure access" is turned on for GMail. 

I'm confused, I'm not use a google app or hosting. My Django app is hosted on a Debian box with a pretty standard setup, but email from Django through Postfix to a Gmail inbox is not working...

-Alastair
Reply all
Reply to author
Forward
0 new messages