Report this

What is the reason for this report?

How do i setup email on my Ubuntu Apache server with a Lets Encrypt certificate

Posted on April 26, 2020

Hello there, I’ve just setup my droplet and I’ve been successful hosting my work. However, i need to setup an email for the domain i use. Any help and resources please. Also I’m using a Lets Encrypt certificate



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!

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.

Hi @jonathanpkatumba,

You’ll need to use a mailing service, Apache is just a WebService and can’t serve mails however you can use either Postfix or Exim. I’ll recommend using Postfix as DigitalOcean have pretty good tutorials on it.

I’ll recommend to go through the following tutorials so that you can get the grasp of how it works and how can you configure it.

The first tutorial is how to configure Postfix only as a Send service. This means you won’t have an actual mailbox to receive mails :

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04

The second tutorial is related to installing and configuring Postfix on Ubuntu so it’s a bit more concrete :

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-18-04

And the third tutorial is for configuring Postfix with Dovecot. Dovecot is used when you want to have a mailbox and login to it to review received mails. Now that’s the proper way to have a mailing service. The tutorial you’ll want to use about that one is

https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin

Please let me know if you need more information on it.

Regards, KDSys

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.