HOW TO Send-Only email configuration on Ubuntu 12.04.?

February 3, 2014 3k views
Hi to all, so here is my problem. I am using a Ubuntu droplet, and have installed a script that need the ability to send emails. There is also a contact form. The problem I'm facing is that I'm stacked because I have setted to receive and send emails through Microsoft "" because of spam, so the only option that I need is the ability to send emails to, per example, new customers to confirm their email addresses, or to send emails from the contact form on the site to my email on Did anyone have any idea how to fix this? I have installed successfully postfix, but now I don't know what to do. Thank you in advance.
5 Answers
HI there, I've been facing the same issue and although it is Wordpress related, as long as wp itself also uses php mail() function I think I'm on the same boat!

The lack of documentation about setting up a proper and simple way to use Gmail or Hotmail or (aka as a relay service is extremely disappointing. I'm new on managing a VPS, but it is worth nothing if I've got a blowing fast server set up serving a web site which is not able to process a simple sendmail request.

I've also tried postfix, sendmail and exim on Ubuntu 12.04 with no avail.

I've read a few tutorials about setting up Gmail and Hotmail with postfix, but even following these tutorials strictly I could not make it anyway. Perhaps it may help you if I'm missing something, here a the links:

This ones instructs setting up hotmail (in portuguese) - but Google Translate may help:
by Pablo Carranza
Due to the popularity of Gmail, Google Apps,, Yahoo! Mail & a myriad of other providers, many cloud-server users mistakenly fail to install a mail server, initially. However, humans are not the only ones that send electronic mail. If fact, many Linux server applications also need to send email. This tutorial will review how to install a send-only mail server on Ubuntu 12.04.
Contato, I understand you completely.
Kamal, I have tried your way, but no luck!
Anyone else??
What part didn't work for you?
I've also spent hours going through the "tutorials", but nothing seems to work. Now I trying to configure my droplet to send emails using msmtp via Gmail, but the authentication is failing. There really needs to a be a simple, step-by-step guide to setting up a simple email send capability.
Have another answer? Share your knowledge.