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

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


Submit an 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 :

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

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

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

Regards, KDSys