Hi there. Sorry for the noob question, but I'm pretty new on managing a vps and It seems DO community lacks a few articles regarding setting up an email server properly.
I running a 1GB VPS powered by Ubuntu 12.04 and I successfully installed a LEMP Stack (nginx, php5-fpm, mysql and Wordpress), so everything was running smoothly and working 100% (performance, W3 total cache etc.), my website was scoring 80/100 on Google PageSpeed, CPU consume was low and stable, however, as soon as I started configuring Ubuntu to allow PHP/Wordpress to send emails (let's say contact form 7 submissions, wp email notifications), then my nightmares began.
Since my Droplet was created, I got DNS records properly configured to allow my domain respond on mail.live.com servers, this means that I'm able to login to my email accounts by typing mail.mydomain.com and then I'm redirected to outlook.com site so that I can login with myusername@mydomain.com and have complete access to my mailbox, send/receive emails etc.
While I was on my old shared hosting I used to rely on the same configuration, however, my wordpress site was able to send emails through PHP mail( ) function as also with the help of a plugin "WP Mail SMTP", which can be configured to send emails via SMPT with TLS authentication.
Then I started reading the articles available here on DO about postfix, Exim, Sendmail, "SMTP as relay for Gmail and Hotmail on postfix" etc., but even after following these tutorials strictly I couldn't enable php/wordpress to send emails on my server.
I don't need a full email server running on my VPS, I just want my web applications to be able to send emails through a outlook.com account with TLS authentication.
I've taken a snapshot of my droplet on its stable stage (LEMP + Wordpress fully working) and everything email related untouched, and since I've messed a lot with postfix, Exim and sendmail I had to rebuild my droplet from the snapshot so that I could proceed on my attempts to get email working again.
Has anyone configured Ubuntu or other Linux distro properly to enable php/wordpress to send emails through a third party service such as gmail or hotmail?
I really need this to work because this is the only thing compromising the development environment I'm trying to set up on my VPS.
Thanks in advance for your help.
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.
×