Skip to main content

1. Mailcow

Source: Tony Teaches Tech Mailcow docker configuration

To host your own mail server is not like hosting any other application. Why you might ask ? Well this has to do with spam and lots of it and also internet service providers blocking port 25 on which your mail is running on. But well, we will show how to run your own mail server regardless since it is great for learning purposes and you can have as many email addresses as you want. You don't need to pay a monthly subscription for every email address. Imagine you want x email addresses for all of your contributors then that is x times the yearly price to host an email .That can get expensive really quick. 

  1. So the first thing we need to make sure of is that you own a domain name. Yes, sadly enough this is still held by middle man that make millions of dollars each year by just being that. As stated everywhere else we are working on changing this to a more non profit based structure or completely decentralized with technologies like handshake.
  2. Next up, is adding DNS records to your domain name that you will use for your email server. The minimum records you should add are the following
Type Name
Priority Weight Port Target A example.org - -
Public IP address of your emailEmail server A mail.example.org - -
Public IP address of your emailEmail server MX - - -
mail.example.org CNAME autodiscover.example.org
-
mail.example.org CNAME autoconfig.example.org
-
mail.example.org SRV _autodiscover_tcp 0 0 443 mail.example.org

 

Type Name (Host) Value (Target) Priority Purpose A @ (or blank) Your Server IP N/A Links your server domain A mail Your Server IP N/A Links your server subdomain MX @ (or blank) mail.loolanta.org 10 Directs all incoming mail to your server CNAME autodiscover mail.loolanta.org N/A Outlook auto-config CNAME autoconfig mail.loolanta.org N/A Thunderbird auto-config SRV _autodiscover._tcp mail.loolanta.org 0, 0, 443

Outlook auto-config

Pointer

The next thing that we need to do is setup a pointer on your reverse proxy ;)