Guides
Domains and DNS
Register a domain, publish its records, and find out why it is not verified yet.
Why a domain must be verified#
You can only send from addresses at a domain you have proven you control. Publishing DNS records is that proof, and it also lets receiving servers check that mail claiming to be from your domain really is: this is what keeps your email out of spam folders and protects your name from forgery.
Register a domain#
POST /v1/domains needs the domain:write scope and takes the domain's name, such as shop.example or mail.shop.example. Write an internationalised name in its ASCII (punycode) form. The answer is 201 Created, with the domain and the records to publish in dns_records.
curl -X POST https://api.cirrusmail.example/v1/domains \
-H "Authorization: Bearer $CIRRUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "shop.example"}'409 domain_exists: your organisation has already registered this domain. Fetch it instead.409 domain_claimed: another organisation has already verified it. A name can be registered by several people but held verified by only one.- Registering is not safe to repeat blindly: the API does not de-duplicate it, and the libraries do not retry it after a server error or a lost connection. Look the domain up before you try again.
The records you publish#
Registering a domain returns seven records. Copy each name and value exactly into your DNS provider, and set the type shown. Some DNS tools add the domain to a name by themselves; if the name ends in your domain already, enter only the part before it.
| Purpose | Type | What it does |
|---|---|---|
ownership | TXT | Proves you control the domain. The value must match exactly. |
dkim | CNAME (three) | Lets receiving servers check that the mail was signed by us on your behalf and was not changed on the way. |
spf | TXT | Says which servers may send for the return-path address of your mail. Matched by meaning, so a stricter record of your own still passes. |
mx | MX | Receives bounces at the return-path address, on a subdomain of yours. It has a priority. |
dmarc | TXT | Tells receivers what to do with mail that fails the checks. Matched by meaning, so a stricter policy of your own still passes. |
Find out when it is verified#
A new domain has the status pending. Cirrus checks it by itself about every five minutes for 72 hours after you register it, and the status becomes verified when every record is found and the email provider agrees. After the 72 hours it stops checking until you press Check again on the domain's page in the dashboard. The API only reports; it has no call that triggers a check.
GET /v1/domains/{id} (scope domain:read) returns the domain with its records. GET /v1/domains/{id}/dns returns just the records, as a short list with no pagination.
curl https://api.cirrusmail.example/v1/domains/$DOMAIN_ID/dns \
-H "Authorization: Bearer $CIRRUS_API_KEY"{
"data": [
{
"purpose": "dkim",
"type": "CNAME",
"name": "k1._domainkey.shop.example",
"value": "k1.dkim.example.net",
"status": "pending",
"last_checked_at": "2026-01-15T09:35:00Z",
"problem": "Nothing is published at this name yet.",
"problem_code": "not_found"
}
]
}Why a record is not passing#
Each record carries the result of its last check: status (pending or verified), last_checked_at, and, when it is not passing, a problem in plain words and a problem_code for programs.
| problem_code | Meaning | What to do |
|---|---|---|
not_found | Nothing of this type is published at the name yet. | Add the record. Check the name for a doubled domain, such as shop.example.shop.example. |
wrong_value | A record is published there, but not with the value required. | Correct the value so it matches exactly. |
lookup_failed | DNS could not be asked. This says nothing about your record. | Wait; it is checked again. |
Staying verified#
Cirrus looks at the records of every verified domain once a day. A domain is not switched off on one bad answer: after three failed checks in a row (a record missing or wrong; a lookup that could not be made counts for nothing either way) it goes back to pending. Sending from it then stops, including mail already queued, until you restore the records and press Check again. From the first failed check, the record that is broken shows its problem.
Who may send from the domain#
A new domain authorises every address at it. In the dashboard you can limit that to named senders, such as billing and support. A message from any other address is refused with 403 sender_not_authorised, and one already queued is cancelled with that reason. sending_enabled on the domain says whether email can be sent from it right now: it is verified and not disabled.
Before you send#
- Register the domain and publish all seven records.
- Wait until
statusisverifiedandsending_enabledistrue. - Send from an address at the domain.