Skip to main content

External Preparation

DNS records

You are configuring this mail server to enjoy sending and receiving emails at your domain addresses (e.g. your_name@yourdomain.tld) so you must be the owner of yourdomain.tld and have access to its DNS zone, this is generally provided by the domain name seller.

Mandatory Records

Each domain that you want to add to this mailcow server needs at least this set of records to function correctly:

$ORIGIN yourdomain.tld.
(...)
yourmail.yourdomain.tld. 3600 IN A ipaddress(v4)
yourmail.yourdomain.tld. 3600 IN AAAA ipaddress(v6)
autodiscover 3600 IN CNAME yourmail.yourdomain.tld.
autoconfig 3600 IN CNAME yourmail.yourdomain.tld.
@ 3600 IN MX 10 yourmail.yourdomain.tld.
(...)

Advanced Records

SRV records specify the server(s) for a specific protocol on your domain:

$ORIGIN yourdomain.tld.
(...)
_autodiscover._tcp 3600 IN SRV 0 1 443 yourmail.yourdomain.tld.
_caldavs._tcp 3600 IN SRV 0 1 443 yourmail.yourdomain.tld.
_caldavs._tcp 3600 IN TXT "path=/SOGo/dav/"
_carddavs._tcp 3600 IN SRV 0 1 443 yourmail.yourdomain.tld.
_carddavs._tcp 3600 IN TXT "path=/SOGo/dav/"
_imap._tcp 3600 IN SRV 0 1 143 yourmail.yourdomain.tld.
_imaps._tcp 3600 IN SRV 0 1 993 yourmail.yourdomain.tld.
_pop3._tcp 3600 IN SRV 0 1 110 yourmail.yourdomain.tld.
_pop3s._tcp 3600 IN SRV 0 1 995 yourmail.yourdomain.tld.
_sieve._tcp 3600 IN SRV 0 1 4190 yourmail.yourdomain.tld.
_smtps._tcp 3600 IN SRV 0 1 465 yourmail.yourdomain.tld.
_submission._tcp 3600 IN SRV 0 1 587 yourmail.yourdomain.tld.
(...)

Additional Records:

After installation of mailcow is finished, you will come back to your DNS zone to set some final records to ensure that your server accrues good reputation in the Internet, you will need to add SPF, DKIM and DMARC information.

Reverse DNS

Make sure that the PTR record of your IP address matches the FQDN of your mailcow host, for example: yourmail.yourdomain.tld.