SMTP Server not work

Posted October 8, 2016 6.2k views

Hello everyone. SMTP is not running on my server, Digital Ocean already unlocked the SMTP and still nothing. Can anyone help me what to do? I have to set something else on the server?

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

We do not provide an SMTP service by default on our OS images so you’ll need to set up an MTA. If you just need to send emails from a web app or form simply installing postfix to provide a local MTA should do the trick. This can be done from your droplet’s command line with:

sudo apt-get update;
sudo apt-get install postfix;

If you require a more complete mail solution this tutorial will guide you but I recommend reviewing this article first.

by Mitchell Anicas
When setting up a web site or application under your own domain, it is likely that you will also want a mail server to handle the domain's incoming and outgoing email. While it is possible to run your own mail server, it is often not the best option for a variety of reasons. This guide will cover many of the reasons that you may not want to run your own mail server, and offer a few alternatives.

postfix has become a nightmare…tons of spam being sent out…so would be really great instead of managing postfix to be able to offload that work to an smtp service easier. Read both articles and neither make it very clear how to open up the ports necessary to connect to an outside smtp service for sending mail.