enabling email SMTP service

October 9, 2014 9.8k views

Hi,

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
LAMP
(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

Best,
Dominic

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?

Thanks

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

Best

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.

Have another answer? Share your knowledge.