Mail DNS records reference
The DNS records a domain on a Self Host Wizard box publishes for mail, as internal/maildns produces them for thx dns: A, MX, SPF, DKIM, DMARC and client autoconfiguration.
thx dns <domain> prints these records for one of your domains. Below they are shown for the documentation domain example.com, the documentation address 203.0.113.10 and the cloud region sa-saopaulo-1; your box prints its own.
The records
| Type | Name | Value | Priority | Needed | Why |
|---|---|---|---|---|---|
| A | mail.example.com | 203.0.113.10 | — | required | the mail server; DNS only (never proxied by a CDN) |
| MX | example.com | mail.example.com | 10 | required | where the internet delivers mail for example.com |
| TXT | example.com | v=spf1 include:rp.oracleemaildelivery.com ~all | — | required | lets the cloud provider's email service send as example.com; one SPF record per name: merge if one exists |
| CNAME | <selector>._domainkey.example.com | <CNAME value shown in your cloud console: Email Delivery > Email Domains > example.com > DKIM> | — | required | the email service signs outgoing mail; copy both name and value from your cloud console |
| TXT | _dmarc.example.com | v=DMARC1; p=none | — | required | start at p=none; tighten once real mail shows SPF and DKIM pass |
| CNAME | autoconfig.example.com | mail.example.com | — | optional | Thunderbird and others find the server settings |
| CNAME | autodiscover.example.com | mail.example.com | — | optional | Outlook and others find the server settings |
| SRV | _submissions._tcp.example.com | 1 465 mail.example.com | 0 | optional | sending, implicit TLS (RFC 6186, 8314) |
| SRV | _submission._tcp.example.com | 1 587 mail.example.com | 0 | optional | sending, STARTTLS |
| SRV | _imaps._tcp.example.com | 1 993 mail.example.com | 0 | optional | reading mail, implicit TLS |
As zone-file lines
The same records as thx dns prints them (TTL 3600). The placeholder line is commented out so a zone file with it still loads.
mail.example.com. 3600 IN A 203.0.113.10
example.com. 3600 IN MX 10 mail.example.com.
example.com. 3600 IN TXT "v=spf1 include:rp.oracleemaildelivery.com ~all"
; <selector>._domainkey.example.com. 3600 IN CNAME <CNAME value shown in your cloud console: Email Delivery > Email Domains > example.com > DKIM>.
_dmarc.example.com. 3600 IN TXT "v=DMARC1; p=none"
autoconfig.example.com. 3600 IN CNAME mail.example.com.
autodiscover.example.com. 3600 IN CNAME mail.example.com.
_submissions._tcp.example.com. 3600 IN SRV 0 1 465 mail.example.com.
_submission._tcp.example.com. 3600 IN SRV 0 1 587 mail.example.com.
_imaps._tcp.example.com. 3600 IN SRV 0 1 993 mail.example.com.
SPF include and relay host by region
The SPF include follows the area of the cloud region that relays your mail; a region outside the areas below gets all three includes. The relay host is that region's SMTP endpoint of the email service (port 587, STARTTLS).
| Region | SPF include | Relay host |
|---|---|---|
us-ashburn-1 | include:rp.oracleemaildelivery.com | smtp.email.us-ashburn-1.oci.oraclecloud.com |
sa-saopaulo-1 | include:rp.oracleemaildelivery.com | smtp.email.sa-saopaulo-1.oci.oraclecloud.com |
eu-frankfurt-1 | include:eu.rp.oracleemaildelivery.com | smtp.email.eu-frankfurt-1.oci.oraclecloud.com |
uk-london-1 | include:eu.rp.oracleemaildelivery.com | smtp.email.uk-london-1.oci.oraclecloud.com |
ap-tokyo-1 | include:ap.rp.oracleemaildelivery.com | smtp.email.ap-tokyo-1.oci.oraclecloud.com |
me-jeddah-1 | include:rp.oracleemaildelivery.com include:ap.rp.oracleemaildelivery.com include:eu.rp.oracleemaildelivery.com | smtp.email.me-jeddah-1.oci.oraclecloud.com |