Question

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

Posted April 26, 2020 146 views
ApacheEmailLet's Encrypt

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

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.

×
1 answer

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

by Nestor de Haro
In this tutorial we are going to configure a mail server using Postfix, Dovecot, MySQL, and SpamAssassin on Ubuntu 12.04.
Submit an Answer