Question

Unebale to sent mail from web server to personal mail server

Posted May 7, 2014 2.1k views
I have configured my mail server and my web server on 2 different droplets, but I can't sent mails. My website runs on Wordpress and I wanted to get email notifications from WP to my personal email user@mydomain.com. I have configured exim4 and works fine when I sent to my gmail account. How can I check what is wrong?

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.

×
Submit an Answer
2 answers
So the first question is, is the problem with the sending or receiving end? You say you can send may to gmail from the Wordpress server. Can you receive mail from other hosts on the mail server?

Next, we should check the log files to get a better sense of the problem. Could you paste the contents of /var/mail.log ?

Hello all,

What I could suggest here is using an SMTP plugin for your WordPress site.

That way you will be able to specify an SMTP server with authentication which your emails would be going through. You could for example use SendGrid’s SMTP service. This would drastically increase the delivery rate of your emails as well compared to using plain PHP mail.

I’ve been using this plugin for a while now and it works very well: Easy WP SMTP.

https://www.digitalocean.com/community/tutorials/how-to-get-wordpress-email-notifications-on-a-digitalocean-droplet

Hope that this helps!
Regards,
Alex

by Lyn Muldrow
Sending emails and notifications including form submit verifications and password resets from your WordPress server or Droplet is an essential function. In this tutorial, learn how to use a WordPress Simple Mail Transfer Protocol (SMTP) plugin to send emails from your WordPress Droplet or server.