Forgot email link not sending

Permalink
Other email sending (from forms) seems to be working fine.

I have the sender email set in site.php:
define('EMAIL_ADDRESS_FORGOT_PASSWORD', 'webmaster@***.org');

*** replaced for this forum

and I have a local override for the login page to my template, but the password recovery section is still stock.

When I do a password reset request, C5 thinks the email is sending (it shows up in the logs) but I receive nothing.

As I said, form submission emails are working fine.

Any tips on where to troubleshoot?

invision
 
invision replied on at Permalink Reply
invision
*bump*
I've consulted with my hosting company trying to find the source of this issue to no avail.

All sent items (password reset, forms submissions) appear in the log, but the password reset email just won't send from the server.

Baffled.
invision replied on at Permalink Best Answer Reply
invision
I discovered the answer...

this was a setup on a newly-provisioned server at A2 hosting. They default in WHM for sending from 'nobody' (WHM -> Server Configuration -> Tweak Settings, Mail) is normally yes. Somehow, when they set up the server, they changed that setting to disallow sending from 'nobody'.

Apparently, the password recovery script sends from nobody, vs. the form submission script uses an actual email address. Perhaps that should change.

I had to dig into server logs to discover it. In /var/log/exim_paniclog:

2011-05-05 11:19:06 1QI0KY-0005M4-Ar User 0 set for local_delivery transport is on the never_users list


is what gave me the clue of what was happening.

Gotta love *nix servers...
andrew replied on at Permalink Reply
andrew
Thanks for taking the time to come back and reply to your own post letting people know what was going on. This might help someone in the future.
invision replied on at Permalink Reply
invision
Just trying to help :)
invision replied on at Permalink Reply
invision
While we're on the subject, why would the password recover script send from 'nobody' but the form submission script send from the default email address? Just curious.
deleteme replied on at Permalink Reply
Im having this issue too, Im going to check out your solution.
FatTony1952 replied on at Permalink Reply
FatTony1952
When you discovered this, did you notice that forms built on your site weren't working either, or was it just the password recovery function?

I have a client whose forms stopped sending notification emails for some reason. They did setup SSL on their server. This may be what causes the server to come up with this script change?

Thanks!
nourishu replied on at Permalink Reply
nourishu
Just want to put in my 2 cents worth of solution to this since I am not a technical person.
After studying all the posts in relation to the matter, through trial and error, I was able to make email notification as well as p/w change email work using this simple approach.
C5 default mail is phpmail so just don't change it. So, make sure in your form, put in the admin email address (which is local in your website) for email notification. Any other local email account does not seems to work. If you want to use external email account such as at gmail or yahoo, then you will get into the complication of smtp setting which may run into issues with ssl in phpinit file, etc.
At your server (in my case at bluehost), make sure under MX (mail exchanger) in the Cpanel under mail is set to Automatic Detect Configuration. This option is a default so if you don't know, it is there already. Make sure your admin email is a valid email in your local website which will allow mail to send out.
Then everything will work just fine. No other programming is necessary.
Hope this can help someone tumbling into the same problem like me and is not a techie.