enabling email SMTP service

Posted October 9, 2014 19.1k views


I am fairly green at development and technical stuff so not sure if I mess with initial server setup or the email feature are just block at this point.

I have installed wordpress (following instruction from the community) including LAMP.

Wordpress is being installed and work properly but I do not receive any email such as new user notification neither general contact form.

Could you please let me know if problem might be because SMTP is blocked on DO’s side for my account. Up to date, the following has been done :

Initial server setup
(site was hosted first on server IP before pointing domain to it later)
Wordpress installed

Domain registered at GD
DNS has been set I believe properly

Looking forward to hear from you shortly


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
4 answers

Hi! In order to send mail from php applications like Wordpress you need to set up an MTA on your droplet like postfix or sendmail. You can do this with:

apt-get install postfix

Once an MTA is installed php’s mail() function can use it to send your outgoing messages.

Thanks for your prompt reply.

I forgot to mention I have already done

sudo apt-get install sendmail

Should I try postfix instead? Will it conflict with sendmail by doing so? If yes, do I have to remove “sendmail” somehow?


I have to apologize, my bad. Since “sendmail” is installed, I do receive emails but they just ending up in spam/junk. Will do the proper adjustments.

Thanks for your help


Just in case you are still trying to resolve this issue, I suggest that you add the IP of your droplet to the SPF record of you mail server’s domain in DNS.