Skip to content
nofeb

SPF, DKIM, DMARC and MX on Gandi

DNS host detected from nameservers under *.gandi.net

On Gandi, nofeb can create the email records itself: give it a token for one call (personal_access_token). Personal access token with "Manage domain name technical configurations". To type them instead, Gandi wants labels such as bounce and targets ending in a dot.

Checked against the engine on .

How does nofeb know the domain is on Gandi?

It looks up the zone's NS records and matches the nameserver hostnames. Nameservers under *.gandi.net mean Gandi. 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 Gandi for me?

Yes. Send the Gandi credentials, personal_access_token, with provider gandi. Personal access token with "Manage domain name technical configurations".

Publish on Gandi
POST https://api.nofeb.com/v1/domains/{domain_id}/dns/apply
{
  "credentials": {
    "provider": "gandi",
    "personal_access_token": "…"
  }
}

What is specific to Gandi?

  • Gandi's personal access token needs the "Manage domain name technical configurations" permission; nothing broader is required.
  • Gandi LiveDNS stores whole record sets. To add a value beside existing ones, nofeb rewrites the set with every existing value carried over unchanged, plus its own. TTLs below 300 seconds are raised to 300.

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

Shown for example.com as Gandi 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 Gandi follow?

  • Gandi 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; Gandi adds them. Quotes you type become part of the value and break SPF and DMARC.
  • CNAME and MX targets need a trailing dot, or Gandi appends your domain to the target.
  • MX priority has its own field: use 10.
Publishing email DNS records on Gandi 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 Gandi 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 Gandi's name field?

No. Gandi 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 Gandi need quotes around TXT values like DMARC?

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

Where are the DNS records in Gandi?

In Gandi's DNS page: admin.gandi.net/domain/example.com/records, 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 Gandi automatically?

Yes. Send a Gandi token with POST /v1/domains/{domain_id}/dns/apply. Personal access token with "Manage domain name technical configurations". 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