Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Many thanks for this very useful tutorial!
This guide works too for Debian 8 Jessie, with one difference:
The package mailutils does not contain postfix, so the postfix package has to be installed too:
sudo apt-get install postfix
Two remarks:
mydestination = line in /etc/postfix/main.cf will look likemydestination = $mydomain, localhost.$mydomain, $mydomain
sudo less /var/log/mail.log
gave me valuable information for troubleshooting.
This comment has been deleted
I cant test postfix my nail log shows
ubuntu postfix/cleanup[11972]: E026142C90: message-id=<20160510195553.E026142C90@ubuntu-xenial.Home>
ubuntu postfix/qmgr[11964]: E026142C90: from=<ubuntu@ubuntu-xenial>, size=393, nrcpt=1 (queue active)
ubuntu postfix/smtp[11966]: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out
ubuntu postfix/smtp[11967]: connect to mail-tester.com[94.23.206.89]:25: Connection timed out
ubuntu postfix/smtp[11967]: EECFF42C8D: to=<web-ScX3Ah@mail-tester.com>, relay=none, delay=994, delays=964/0.24/30/0, dsn=4.4.1, status=deferred (connect to mail-tester.com[94.23.206.89]:25: Connection timed out)
ubuntu postfix/smtp[11973]: connect to mail.mailinator.com[23.239.11.30]:25: Connection timed out
ubuntu postfix/smtp[11966]: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out
ubuntu postfix/smtp[11966]: B8EF642C91: to=<elh@gmx.us>, relay=none, delay=879, delays=819/0.12/60/0, dsn=4.4.1, status=deferred (connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
ubuntu postfix/smtp[11973]: connect to mail2.mailinator.com[45.79.147.26]:25: Connection timed out
ubuntu postfix/smtp[11973]: E026142C90: to=<goff@mailinator.com>, relay=none, delay=61, delays=0.01/0.12/61/0, dsn=4.4.1, status=deferred (connect to mail2.mailinator.com[45.79.147.26]:25: Connection timed out)
This comment has been deleted
Followed this tutorial to the tee but no matter what postfix always attempts to send the mail out as user@hostname (i.e. someone@machine rather than someone@domain.com). As a result, all mail is bounced with “Sender address rejected: need fully-qualified address”.
/etc/mailname has the correct domain. Droplet was renamed from just a hostname to a FQDN
Still did not solve the problem, even after purging and reinstalling mailutils and postfix.
Any ideas where I may have gone wrong or what I can do to solve this?
I have a problem when you have a server domain.com and a mail.domain.com and you try to install a send only postfix installation on domain.com.
When u set up, even when i set up as system.domain.com for postfix destination, and I try to send a email to somethingoruser@domain.com (which has a MX record pointing to mail.domain.com), it will say it doesn’t have a user.
No idea how to fix this.