Gmail accounts not receiving password reset emails through PHP mail() function

Message boards : Questions and problems : Gmail accounts not receiving password reset emails through PHP mail() function
Message board moderation

To post messages, you must log in.

AuthorMessage
AxiomOmen

Send message
Joined: 22 May 19
Posts: 4
United States
Message 91603 - Posted: 22 May 2019, 16:08:32 UTC
Last modified: 22 May 2019, 16:21:33 UTC

Hello,

About a week and a half ago, I received an email from one of the users in MilkyWay@home. He said he was having trouble receiving an email to reset his password even though our site confirmed the email was sent. After I tested the site using some dummy accounts, I found that not only was his account failing to receive emails, but ALL gmail accounts were rejecting our emails! I've tried looking into ways of having the PHP mail() function send to those accounts, but it's as if Gmail is completely ignoring all emails from our site. Every solution I've found on the internet has either failed to solve the problem or made it so that NO accounts can receive the password reset email. I've also received word from our user that only MilkyWay@home is giving him trouble with resetting his password. Is there anyone who can help with this problem?
Thank you in advance.

-Eric Mendelsohn

P.S. - After testing with a few other temporary emails, it seems that it isn't just gmail accounts that cannot receive the password reset email. It appears that any email that does not have a .edu cannot receive a password reset email.
ID: 91603 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2538
United Kingdom
Message 91604 - Posted: 22 May 2019, 17:16:14 UTC - in response to Message 91603.  

It appears that any email that does not have a .edu cannot receive a password reset email.


Sounds like a change in policy of the institution. CPDN had a problem with these not going out and also with emails notifying people of posts they had subscribed to on their forums.

I can't remember the details but it was a security upgrade by the it staff at Oxford Uni that caused the problem.

Hope this give some clues as to where to start looking.
ID: 91604 · Report as offensive
AxiomOmen

Send message
Joined: 22 May 19
Posts: 4
United States
Message 91605 - Posted: 22 May 2019, 18:49:15 UTC - in response to Message 91604.  

When I try receiving a password link, this is what I see in the mail log for our server:

May 22 14:31:12 milkyway3 sendmail[30076]: x4MIVCdl030076: from=boinc, size=545, class=0, nrcpts=1, msgid=<201905221831.x4MIVCdl030076@milkyway3.phys.rpi.edu>, relay=boinc@localhost
May 22 14:31:12 milkyway3 sm-mta[30077]: x4MIVCqZ030077: from=<boinc@milkyway3.phys.rpi.edu>, size=783, class=0, nrcpts=1, msgid=<201905221831.x4MIVCdl030076@milkyway3.phys.rpi.edu>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
May 22 14:31:12 milkyway3 sendmail[30076]: x4MIVCdl030076: to=rubegoldberg715@gmail.com, ctladdr=boinc (1002/1002), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30545, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x4MIVCqZ030077 Message accepted for delivery)
May 22 14:31:12 milkyway3 sm-mta[30079]: x4MIVCqZ030077: to=<rubegoldberg715@gmail.com>, ctladdr=<boinc@milkyway3.phys.rpi.edu> (1002/1002), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120783, relay=alt4.gmail-smtp-in.l.google.com. [108.177.127.26], dsn=4.0.0, stat=Deferred: Connection refused by alt4.gmail-smtp-in.l.google.com.


This seems like more of a security issue than a university problem. How can I change the securities to allow Google and other email providers to accept my password reset emails, and where can I find said configurations?
ID: 91605 · Report as offensive
G_UK
Avatar

Send message
Joined: 14 Apr 17
Posts: 6
United Kingdom
Message 91607 - Posted: 22 May 2019, 21:58:32 UTC - in response to Message 91605.  
Last modified: 22 May 2019, 22:12:37 UTC

The SPF DNS record for rpi.edu is
v=spf1 ip4:128.113.2.225/28 ip4:128.113.1.201/29 ip4:128.113.26.109 -all


milkyway3.phys.rpi.edu however resolves to
128.113.126.52


Edit: It looks like your e-mails are being rejected by providers that check the SPF record (like GMail) as your sending IP is not listed on your DNS record. The IP address of your BOINC mail server needs adding to the DNS SPF record.
https://gridcoin.ddns.net
Rx7Qvpvc7qEZbrHeJ8ukknJo4Gwrc3unBg
ID: 91607 · Report as offensive

Message boards : Questions and problems : Gmail accounts not receiving password reset emails through PHP mail() function

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.