Emails/DNS
From wiki
< Emails
MX
The most important DNS record, is the MX one. It is the one that allows other persons to find your server and send you emails
@ MX 10 smtp
- Name (@): This must point to the root of your domain
- Type (MX):
- Value (10 smtp): Indicate that the server smtp.example.org will handle the emails of your domain. The number 10 represent the priority. YOu can add other servers with increasing priority (10, 20, 30...).
SMTP
This record is used for two purposes:
- It is the one pointed by the MX record above. External server will send emails here.
- It is also the one that you will use in your email client to send emails from your machine to other persons.
smtp A 198.51.100.42
AAAA 2001:db8:57:12::1
- Name (smtp): This will be expanded to smtp.example.org
- Type (A/AAAA): A for IPV4 and AAAA for IPV6. Note that as the above MX record is pointing to this one, you cannot use a CNAME here.
- Value: The IP address of your server
IMAP
This record is used for Dovecot.
imap CNAME server
SPF
The SPF record is a spam fighting tool. It allows to tell other mail server who is allowed to send emails on your behalf.
@ TXT "v=spf1 mx -all"
DKIM
See Exim/DKIM
DMARC
_dmarc TXT "v=DMARC1;p=none;rua=mailto:you@example.org"
imap CNAME server
mail CNAME server