Droplet running WP and Exim won't email local FQDN

  • Posted on November 25, 2014
  • opluscAsked by oplusc

I am running a Droplet with Ubuntu 14.04, WordPress and Exim for email.

I have setup Exim to be able to receive email notifications from WordPress and everything appears to be working fine as long as I use an email address that is NOT on the FQDN.

In other words, if my site is, I can receive emails with no problem as long as those email are sent to or but, if I try to send to, the message doesn’t get delivered.

This issue not only happens from within WordPress, but also from the command line.

If I enter echo "This is a test." | mail -s Testing the email does not get delivered, however if I try echo "This is a test." | mail -s Testing the message gets delivered without a glitch.

I can send email from any email client to without any problem so, evidently, it is something related to the configuration on my droplet.

Any help with this will be much appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thanks for the reply.

I’m not sure I’m following.

My email account is indeed hosted on another service like Google Apps.

Currently I have my hosts file set as follow:       localhost.localdomain localhost example
my.external.ip.address example

my.external.ip.address being the IP address that resolves to my site (assigned by DO)

So, how should I modify my hosts file to make this work, considering that the external IP address for is already listed in the file?

If you droplet is named on DO and you are hosting email accounts for your site on another service/server like Google Apps or another server you need to set your hosts file to the external ip address of your domain “”. not sure on ubuntu but is usually in /etc/hosts.

If your droplet is named and your email account are hosted in the same droplet then modify hosts file to point to