Skip to content
nofeb

SPF, DKIM, DMARC and MX on DigitalOcean

DNS host detected from nameservers under *.digitalocean.com

On DigitalOcean, nofeb can create the email records itself: give it a token for one call (token). To type them instead, DigitalOcean wants labels such as bounce.

Checked against the engine on .

How does nofeb know the domain is on DigitalOcean?

It looks up the zone's NS records and matches the nameserver hostnames. Nameservers under *.digitalocean.com mean DigitalOcean. When a zone is split between two hosts during a move, the host serving most of its nameservers wins.

Can nofeb publish the records on DigitalOcean for me?

Yes. Send the DigitalOcean credentials, token, with provider digital_ocean.

Publish on DigitalOcean
POST https://api.nofeb.com/v1/domains/{domain_id}/dns/apply
{
  "credentials": {
    "provider": "digital_ocean",
    "token": "…"
  }
}

What is specific to DigitalOcean?

  • A DigitalOcean token needs write access to domains (or the domain:create, domain:update and domain:read scopes); CNAME and MX values are written with a trailing dot, as DigitalOcean's API expects.
  • DigitalOcean names are relative, with @ for the apex, and its minimum TTL is 30 seconds.

What exactly do I type in DigitalOcean's record form?

Shown for example.com as DigitalOcean wants it; placeholder values come from your dns-setup response.

RecordTypeName boxValue boxPriority
DKIM key 1 CNAME token1._domainkey target-1-from-nofeb —
DKIM key 2 CNAME token2._domainkey target-2-from-nofeb —
DKIM key 3 CNAME token3._domainkey target-3-from-nofeb —
MAIL FROM MX MX bounce feedback-host-from-nofeb 10
MAIL FROM SPF TXT bounce v=spf1 include:<value from nofeb> ~all —
DMARC TXT _dmarc v=DMARC1; p=none; rua=mailto:dmarc@example.com —
Inbound MX (optional) MX @ inbound-host-from-nofeb 10

Which form rules does DigitalOcean follow?

  • DigitalOcean appends .example.com to whatever you type in the name box, so type only the label, for example bounce. Typing the full name creates bounce.example.com.example.com.
  • For the domain itself (the apex), type @.
  • Paste TXT values without quotes; DigitalOcean adds them. Quotes you type become part of the value and break SPF and DMARC.
  • MX priority has its own field: use 10.

Can I manage the records on DigitalOcean with Terraform?

Yes. The dns-setup response includes Terraform using the digitalocean_record resource for every record. The DMARC record looks like this:

Terraform for DigitalOcean
resource "digitalocean_record" "dmarc" {
  domain = "example.com"
  type   = "TXT"
  name   = "_dmarc"
  value  = "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
  ttl    = 3600
}

# CNAME and MX values are emitted with a trailing dot
Publishing email DNS records on DigitalOcean Add a domain; nofeb detects the DNS host from its NS records. Then one of three paths: a one-click Domain Connect link (Beta), publishing through the host's API with a token used once (Cloudflare, DigitalOcean, Hetzner DNS, Vercel, Porkbun, Gandi), or instructions written for that host plus zone-file, Route 53 and Terraform exports. Every record is then checked live, showing what was found and the likely mistake, and domain.verified is emitted when all pass. Add the domain POST /v1/domains records generated Detect the DNS host from its nameservers GET …/dns-setup One-click Domain Connect sign in at the host, click Connect Beta Published through the API token used for one call, never stored POST …/dns/apply Instructions for that host host and value boxes, as its form wants zone file · Route 53 · Terraform Live check found value and likely fix domain.verified
nofeb looks up who runs DigitalOcean from its nameservers, takes the shortest path that host allows, then checks every record live until domain.verified fires.

Frequently asked questions

Do I type the full domain in DigitalOcean's name field?

No. DigitalOcean appends .example.com itself, so for the MAIL FROM records type bounce. Typing the full name creates bounce.example.com.example.com, and nofeb's live check reports exactly that.

Does DigitalOcean need quotes around TXT values like DMARC?

No. Paste v=DMARC1; p=none; rua=mailto:dmarc@example.com as it is; DigitalOcean adds the quotes, and quotes you type become part of the value.

Where are the DNS records in DigitalOcean?

In DigitalOcean's DNS page: cloud.digitalocean.com/networking/domains/example.com, with your domain in place of example.com. The dns-setup response links the same page for your domain.

Can nofeb add the records on DigitalOcean automatically?

Yes. Send a DigitalOcean token with POST /v1/domains/{domain_id}/dns/apply. nofeb never deletes records; a conflict it will not resolve, such as another SPF record at the same name, comes back as skipped with what to do.

Status of everything on this page

Every capability named above, with its status as reconciled against the engine.

CapabilityWhat it doesStatus
Custom domains Add a domain and nofeb returns its DKIM, custom MAIL FROM and DMARC records, plus an inbound MX if you want nofeb to receive its mail, checks them, and emits domain.verified when they pass. Shipped
DNS setup made easy nofeb detects who hosts your domain's DNS and gives you the shortest path for that host. It can publish the records through the Cloudflare, DigitalOcean, Hetzner DNS, Vercel, Porkbun or Gandi API with a token used for that one call and never stored, and it never deletes a record. Every other host gets step-by-step instructions in its own terms, plus zone-file, Route 53 and Terraform exports. A live check shows each record's status, what was found and the likely mistake. Pointing your MX at nofeb is a separate choice, so publishing sending records never moves your mail. Shipped
Inbound mail server that checks mail at the door nofeb's own MX receives mail for the shared domain and your custom domains, with STARTTLS. It checks every recipient before accepting any data, verifies SPF, DKIM, ARC and DMARC, and scans for spam and viruses before it answers. Mail that fails a DMARC reject policy, carries a virus or is clearly spam is refused during delivery instead of bounced later; likely spam and DMARC-quarantined mail is filed into Junk. Every message carries a security verdict with its authentication, spam, virus and TLS results. Shipped