Account
More ways to use this page
Domains
Your account sends only from domains it has verified, and every server of the account can send from them. Verification is two DNS records, added once, and Sendora checks them for you. You never touch your own SPF record.
Before you start
Domains belong to the account. Add and check them in the dashboard under Domains, or through the API with an account key (ak_). An administrator creates that key under Account › Account keys. A server key can only send from the domains, as Keys explains.
Add the domain
The response has the two records to add. Sendora generates a DKIM key pair for the domain when you add it, and the private key never leaves Sendora.
POST /v1/domainscurl -X POST https://api.sendora.se/v1/domains \
-H "Authorization: Bearer $SENDORA_ACCOUNT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"domain": "mail.example.se"
}'import { SendoraAccount } from '@sendora/sdk';
const account = new SendoraAccount({
token: process.env.SENDORA_ACCOUNT_TOKEN,
});
const domain = await account.domains.create({
domain: 'mail.example.se',
});
console.log(
`${domain.returnPath.type} ${domain.returnPath.host} -> ${domain.returnPath.value}`,
);
console.log(
`${domain.dkim.type} ${domain.dkim.host} -> ${domain.dkim.value}`,
);import os
from sendora import SendoraAccount
account = SendoraAccount(
os.environ["SENDORA_ACCOUNT_TOKEN"]
)
domain = account.domains.create(domain="mail.example.se")
for record in (domain.return_path, domain.dkim):
print(record.type, record.host, "->", record.value)<?php
use Sendora\SendoraAccount;
// The key comes from SENDORA_ACCOUNT_TOKEN.
$account = new SendoraAccount();
$domain = $account->domains->create(
domain: 'mail.example.se',
);
$records = [$domain->returnPath, $domain->dkim];
foreach ($records as $record) {
printf(
"%s %s -> %s\n",
$record->type,
$record->host,
$record->value,
);
}import se.sendora.SendoraAccount;
import se.sendora.model.SendingDomain;
class AddDomain {
public static void main(String[] args) {
// The account key comes from SENDORA_ACCOUNT_TOKEN.
try (var account = SendoraAccount.fromEnv()) {
SendingDomain domain =
account.domains().create("mail.example.se");
var returnPath = domain.returnPath();
var dkim = domain.dkim();
System.out.printf(
"%s %s -> %s%n",
returnPath.typeAsString(),
returnPath.host(),
returnPath.value());
System.out.printf(
"%s %s -> %s%n",
dkim.typeAsString(), dkim.host(), dkim.value());
}
}
}Response
{
"domainId": "0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01",
"domain": "mail.example.se",
"verified": false,
"createdAt": "2026-09-15T12:00:00.000Z",
"lastCheckedAt": null,
"failingSince": null,
"returnPath": {
"type": "CNAME",
"host": "sendora-bounces.mail.example.se",
"value": "bounces.sendora.se",
"verified": false,
"verifiedAt": null
},
"dkim": {
"type": "TXT",
"host": "sendora-a1b2c3d4._domainkey.mail.example.se",
"value": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…",
"verified": false,
"verifiedAt": null
}
}Add both records at your DNS provider:
returnPath: a CNAME fromsendora-bouncesto.<your domain> bounces. Bounce reports and feedback-loop reports for your mail arrive there and become events on your messages..sendora .se dkim: a TXT record under<selector>holding the public key. The response gives the selector and the value. Every message is signed with the key, so receivers see your domain vouching for the mail.._domainkey .<your domain>
The domain may also be a subdomain, such as mail, which keeps the records away from the rest of your zone. The From address must use a verified domain exactly: verifying mail does not cover example or news.
Adding a domain the account already has fails with domain_, which gives the id of the existing one.
Check the records
Sendora looks the records up on its own: an unverified domain every two minutes, a verified one every day, and one in its warning every hour. To see the result now, ask for a check:
POST /v1/domains/{domainId}/verifycurl -X POST https://api.sendora.se/v1/domains/{domainId}/verify \
-H "Authorization: Bearer $SENDORA_ACCOUNT_TOKEN"import { SendoraAccount } from '@sendora/sdk';
const account = new SendoraAccount({
token: process.env.SENDORA_ACCOUNT_TOKEN,
});
const domain = await account.domains.verify(
'0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01',
);
console.log(
domain.verified,
domain.check.returnPath,
domain.check.dkim,
);import os
from sendora import SendoraAccount
account = SendoraAccount(
os.environ["SENDORA_ACCOUNT_TOKEN"]
)
domain = account.domains.verify(
"0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01"
)
print(
domain.verified,
domain.check.return_path,
domain.check.dkim,
)<?php
use Sendora\SendoraAccount;
// The key comes from SENDORA_ACCOUNT_TOKEN.
$account = new SendoraAccount();
$domain = $account->domains->verify(
'0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01',
);
printf(
"%s %s %s\n",
$domain->verified ? 'verified' : 'not verified',
$domain->check->returnPath,
$domain->check->dkim,
);import se.sendora.SendoraAccount;
import se.sendora.model.VerifiedDomain;
class VerifyDomain {
public static void main(String[] args) {
String domainId =
"0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01";
// The account key comes from SENDORA_ACCOUNT_TOKEN.
try (var account = SendoraAccount.fromEnv()) {
VerifiedDomain domain =
account.domains().verify(domainId);
System.out.printf(
"%s %s %s%n",
domain.verified() ? "verified" : "not verified",
domain.check().returnPathAsString(),
domain.check().dkimAsString());
}
}
}Response (26 lines)
{
"domainId": "0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01",
"domain": "mail.example.se",
"verified": true,
"createdAt": "2026-09-15T12:00:00.000Z",
"lastCheckedAt": "2026-09-15T12:10:00.000Z",
"failingSince": null,
"returnPath": {
"type": "CNAME",
"host": "sendora-bounces.mail.example.se",
"value": "bounces.sendora.se",
"verified": true,
"verifiedAt": "2026-09-15T12:10:00.000Z"
},
"dkim": {
"type": "TXT",
"host": "sendora-a1b2c3d4._domainkey.mail.example.se",
"value": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…",
"verified": true,
"verifiedAt": "2026-09-15T12:10:00.000Z"
},
"check": {
"returnPath": "ok",
"dkim": "ok"
}
}check says what each lookup found:
check | Meaning |
|---|---|
ok | The record is there with the right value. |
missing | There is no record. |
mismatch | A record is there with another value. |
dns_ | The resolver got no trustworthy answer, for example because DNSSEC validation failed. |
The domain is verified once both records have been seen.
When a record goes missing
A verified domain rides out DNS trouble rather than stopping at the first failed lookup:
- A
dns_changes nothing. The resolver could not answer, which says nothing about your records, so the domain stays as it was.error - A record found
missingormismatchstarts a 24-hour warning. The domain staysverifiedand keeps sending,failingSincesays when the warning began, Sendora looks the records up every hour, and your account’s administrators are mailed. - Any check that finds both records ends the warning.
- A check 24 hours or more after
failingSincethat still misses a record ends the verification. Your administrators are mailed again, and mail from the domain is refused withfrom_until both records are back. Once they are, the next check finds them within minutes.domain_ not_ verified
A DNS move is the usual cause. Publish both records at the new provider before you switch, and the domain never enters its warning.
SPF, DKIM and DMARC
- SPF is satisfied by the return-path domain,
sendora-bounces, whose records Sendora keeps. It aligns with your domain under DMARC’s relaxed mode..<your domain> - DKIM signs with your domain, through the key above, so it aligns strictly.
- DMARC is your own record,
_dmarc. Both signals align, so a policy of.<your domain> p=quarantineorp=rejectis safe for mail sent through Sendora. Sendora does not create or change your DMARC record.
List and remove domains
GET /v1/domainscurl https://api.sendora.se/v1/domains \
-H "Authorization: Bearer $SENDORA_ACCOUNT_TOKEN"import { SendoraAccount } from '@sendora/sdk';
const account = new SendoraAccount({
token: process.env.SENDORA_ACCOUNT_TOKEN,
});
const { domains } = await account.domains.list();
for (const domain of domains) {
console.log(
domain.domain,
domain.verified ? 'verified' : 'waiting for DNS',
);
}import os
from sendora import SendoraAccount
account = SendoraAccount(
os.environ["SENDORA_ACCOUNT_TOKEN"]
)
listed = account.domains.list()
for domain in listed.domains:
if domain.verified:
print(domain.domain, "verified")
else:
print(domain.domain, "waiting for DNS")<?php
use Sendora\SendoraAccount;
// The key comes from SENDORA_ACCOUNT_TOKEN.
$account = new SendoraAccount();
$listed = $account->domains->list();
foreach ($listed->domains as $domain) {
if ($domain->verified) {
echo $domain->domain, " verified\n";
} else {
echo $domain->domain, " waiting for DNS\n";
}
}import se.sendora.SendoraAccount;
import se.sendora.model.DomainList;
class ListDomains {
public static void main(String[] args) {
// The account key comes from SENDORA_ACCOUNT_TOKEN.
try (var account = SendoraAccount.fromEnv()) {
DomainList listed = account.domains().list();
for (var domain : listed.domains()) {
if (domain.verified()) {
System.out.println(
domain.domain() + " verified");
} else {
System.out.println(
domain.domain() + " waiting for DNS");
}
}
}
}
}Response (26 lines)
{
"domains": [
{
"domainId": "0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01",
"domain": "mail.example.se",
"verified": true,
"createdAt": "2026-09-15T12:00:00.000Z",
"lastCheckedAt": "2026-09-15T12:10:00.000Z",
"failingSince": null,
"returnPath": {
"type": "CNAME",
"host": "sendora-bounces.mail.example.se",
"value": "bounces.sendora.se",
"verified": true,
"verifiedAt": "2026-09-15T12:10:00.000Z"
},
"dkim": {
"type": "TXT",
"host": "sendora-a1b2c3d4._domainkey.mail.example.se",
"value": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…",
"verified": true,
"verifiedAt": "2026-09-15T12:10:00.000Z"
}
}
]
}Removing a domain refuses mail from it at once and discards its key. Adding it again creates a new key and new records.
Tracking domains
A tracking domain is the host that tracked links and the open pixel use, such as links. It is a subdomain of a verified sending domain, so links in your mail show your own name. The host carries a stream’s mail once tracking is switched on for that stream.
Add and check one in the dashboard, on the domain’s page under Domains, or through the API with an account key. Limits says how many an account may have.
Add a tracking domain
POST /v1/tracking-domainscurl -X POST https://api.sendora.se/v1/tracking-domains \
-H "Authorization: Bearer $SENDORA_ACCOUNT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"host": "links.example.se"
}'import { SendoraAccount } from '@sendora/sdk';
const account = new SendoraAccount({
token: process.env.SENDORA_ACCOUNT_TOKEN,
});
const domain = await account.trackingDomains.create({
host: 'links.example.se',
});
console.log(domain.cname.host, domain.cname.value);import os
from sendora import SendoraAccount
account = SendoraAccount(
os.environ["SENDORA_ACCOUNT_TOKEN"]
)
domain = account.tracking_domains.create(
host="links.example.se"
)
print(domain.cname.host, domain.cname.value)<?php
use Sendora\SendoraAccount;
// The key comes from SENDORA_ACCOUNT_TOKEN.
$account = new SendoraAccount();
$domain = $account->trackingDomains->create(
host: 'links.example.se',
);
printf(
"%s %s\n",
$domain->cname->host,
$domain->cname->value,
);import se.sendora.SendoraAccount;
import se.sendora.model.TrackingDomain;
class AddTrackingDomain {
public static void main(String[] args) {
String host = "links.example.se";
// The account key comes from SENDORA_ACCOUNT_TOKEN.
try (var account = SendoraAccount.fromEnv()) {
TrackingDomain domain =
account.trackingDomains().create(host);
var cname = domain.cname();
System.out.printf(
"%s %s%n", cname.host(), cname.value());
}
}
}Response
{
"trackingDomainId": "3f2b8c1e-6a7d-4e9f-8b10-5c4d3e2f1a09",
"host": "links.example.se",
"sendingDomainId": "0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01",
"state": "pending",
"createdAt": "2026-11-05T12:00:00.000Z",
"lastCheckedAt": null,
"certificateReadyAt": null,
"failingSince": null,
"expiresAt": "2026-11-12T12:00:00.000Z",
"cname": {
"type": "CNAME",
"host": "links.example.se",
"value": "track.sendora.se",
"check": null
},
"caa": {
"check": null,
"record": null
}
}Add the record in cname at your DNS provider: a CNAME from your host to track. If a proxy sits in front of your DNS, as Cloudflare’s does, switch it off for this record. A host whose records are not right in time goes, as Limits says.
A claim can fail with these codes:
| Code | Status | Meaning |
|---|---|---|
domain_ | 400 | The name is Sendora’s own, or holds a domain’s return path. |
tracking_ | 409 | The account has that host, or a host on that sending domain. trackingDomainId gives its id. |
tracking_ | 409 | The account has as many tracking domains as it may. |
tracking_ | 409 | Another account holds the host, and its sending domain is still verified. |
tracking_ | 422 | The host is a sending domain itself. Choose a subdomain of it. |
tracking_ | 422 | The host is not under a verified sending domain of the account. |
If another account holds the host but its sending domain has lost its verification, your claim takes the host over. Links in the mail that account sent stop working then, so a domain’s new owner never serves them.
Check the records
Sendora looks the records up on its own: every minute until the certificate works and for a warning’s first hour, every hour for the rest of a warning, and every day once the host is ready. To see the result now, ask for a check:
POST /v1/tracking-domains/{trackingDomainId}/verifycurl -X POST https://api.sendora.se/v1/tracking-domains/{trackingDomainId}/verify \
-H "Authorization: Bearer $SENDORA_ACCOUNT_TOKEN"import { SendoraAccount } from '@sendora/sdk';
const account = new SendoraAccount({
token: process.env.SENDORA_ACCOUNT_TOKEN,
});
const domain = await account.trackingDomains.verify(
'3f2b8c1e-6a7d-4e9f-8b10-5c4d3e2f1a09',
);
console.log(
domain.state,
domain.cname.check,
domain.caa.check,
);import os
from sendora import SendoraAccount
account = SendoraAccount(
os.environ["SENDORA_ACCOUNT_TOKEN"]
)
domain = account.tracking_domains.verify(
"3f2b8c1e-6a7d-4e9f-8b10-5c4d3e2f1a09"
)
print(
domain.state,
domain.cname.check,
domain.caa.check,
)<?php
use Sendora\SendoraAccount;
// The key comes from SENDORA_ACCOUNT_TOKEN.
$account = new SendoraAccount();
$domain = $account->trackingDomains->verify(
'3f2b8c1e-6a7d-4e9f-8b10-5c4d3e2f1a09',
);
printf(
"%s %s %s\n",
$domain->state,
$domain->cname->check ?? 'not checked',
$domain->caa->check ?? 'not checked',
);import se.sendora.SendoraAccount;
import se.sendora.model.TrackingDomain;
class VerifyTrackingDomain {
public static void main(String[] args) {
String domainId =
"3f2b8c1e-6a7d-4e9f-8b10-5c4d3e2f1a09";
// The account key comes from SENDORA_ACCOUNT_TOKEN.
try (var account = SendoraAccount.fromEnv()) {
TrackingDomain domain =
account.trackingDomains().verify(domainId);
var cname = domain.cname().checkAsString();
var caa = domain.caa().checkAsString();
System.out.printf(
"%s %s %s%n",
domain.stateAsString(),
cname.orElse("not checked"),
caa.orElse("not checked"));
}
}
}Response
{
"trackingDomainId": "3f2b8c1e-6a7d-4e9f-8b10-5c4d3e2f1a09",
"host": "links.example.se",
"sendingDomainId": "0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01",
"state": "waiting_for_certificate",
"createdAt": "2026-11-05T12:00:00.000Z",
"lastCheckedAt": "2026-11-05T12:10:00.000Z",
"certificateReadyAt": null,
"failingSince": null,
"expiresAt": null,
"cname": {
"type": "CNAME",
"host": "links.example.se",
"value": "track.sendora.se",
"check": "ok"
},
"caa": {
"check": "ok",
"record": null
}
}cname says what the lookup of the CNAME found:
check | Meaning |
|---|---|
ok | The chain of CNAME records ends at track, and the host has the same addresses. |
missing | The name answers nothing. |
mismatch | The name points elsewhere, through another CNAME or an A record. An A record fails even if it is Sendora’s. |
proxied | A proxy answers in front of the name. Switch it off for this record. |
dns_ | The resolver got no trustworthy answer. |
caa says whether the CAA records on the host or its nearest parent that has any let Let’s Encrypt issue the certificate. When they do not, caa gives the record to add and the name to add it under:
check | Meaning |
|---|---|
ok | There are no such records, or they allow it. |
no_ | The records do not allow Let’s Encrypt. |
other_ | The records allow only another account at Let’s Encrypt. |
no_ | The records do not allow the validation method http-01. |
dns_ | The resolver got no trustworthy answer. |
state says where the host stands:
state | Meaning |
|---|---|
pending | The records have not been right yet. expiresAt says when the host goes. |
waiting_ | The records are right, and the certificate is not working yet. |
ready | New mail from the sending domain uses the host. |
failing | A check found the records wrong. A host that was ready stays in use until 24 hours after failingSince. |
stopped | Those 24 hours have passed, and new mail no longer uses the host. |
sending_ | The sending domain is deleted or has lost its verification, so new mail does not use the host. |
When a tracking domain’s records go wrong
- A
dns_changes nothing. The resolver could not answer, which says nothing about your records.error - A check that finds the records wrong after they have been right starts a 24-hour warning, and
failingSincesays when it began. - If the records are still wrong an hour later, your account’s administrators are mailed. A new record can look missing for that long.
- Any check that finds the records right ends the warning.
Remove a tracking domain
Removing a tracking domain stops new mail from using it at once. Keep the CNAME record for as long as links in sent mail matter, since they stop working without it.