Hello, I have the 10$ Wordpress droplet. I had to reinstall sendmail and I cannot make it work again.
Problem: registration/pwd change/whatever that sends mail in WP hangs. Emails are delivered but the website hangs which makes users click the send button 10 million times.
Done so far:
After each change I restarted the sendmail service of course.
No effects so far.
My questions:
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Utilizing sendmail can be quite tricky on a droplet. To troubleshoot this further, you would want to review the output from a command utilizing the PHP mail function, such as:
php -r 'mail("TO_ADDRESS", "Testing PHP script", "Testing sending email via PHP", "From: YOUR_EMAIL\r\nReply-To: YOUR_EMAIL\r\nX-Mailer: PHP".phpversion());' && tail /var/log/mail.log
You would want to make sure to replace the TO_ADDRESS and YOUR_EMAIL parts with legitimate emails.
The output from such a command would show any PHP issues, as well as the logs the droplet for the mail service (in this case sendmail). If it is working locally, you would then want to inspect your scripts settings. If trying to send email via a remote service, like gmail, you would need to try and see if the remote mail service can provide you some feedback on the reason the issues are occurring.
Hope it helps!
Jason C. DigitalOcean Platform Support Lead
@EH - Anything show up in /var/log/apache2/error.log? Sounds like ‘php-mail’ or some mailer add-on in your Wordpress could not handle your now tainted sendmail configuration. That apache error log may shed some light on where the PHP code may be failing.
This comment has been deleted
This comment has been deleted
This comment has been deleted
@gndo seems nothing related to mail in tail -50. Just some notes probably related to service restart