SMTP Server not work

October 8, 2016 126 views
Applications Ubuntu

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?

1 Answer

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.

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.
Have another answer? Share your knowledge.