Add a sending domain to SMTP Relay
Add the domain your application sends from, publish its SPF, DKIM and DMARC records, and verify it before you send.
In the dashboard
An SMTP Relay sends only from domains you have shown are yours. Add the domain your application sends from, publish its records and verify it. The relay adds no MX record, so the domain's inbox stays wherever it is.
Before you begin
Section titled Before you begin- An SMTP Relay service with the status
active. Order one if you have none. While a service is being set up, Add domain… is greyed out. - A domain whose DNS you can change. When its zone is on Coritan DNS in the same account, we publish the records for you.
- Room on the plan. The Domains card shows the plan's limit, such as
1 of 2 on this plan., or The domains your applications send from. when the plan has no limit. - If the domain is on your Mail Hosting service, a sending subdomain for the relay, such as
send.example.com. A domain can be on one mail service at a time, and the relay can still send as@example.comover SMTP.
Add the domain
Section titled Add the domain- In the dashboard, go to Email, open the SMTP Relay service, then the Domains tab.
- Select Add domain….
- In Domain, enter the domain, such as
example.comorsend.example.com. Names you claimed under coritan.gg are listed beside Your names:. - Leave Make this the primary domain ticked if this is the relay's main domain. The primary domain names the relay in lists.
- Select Add domain.
The domain's page opens, with its records on the DNS records card: the ownership record, SPF, two DKIM records once ownership passes, and DMARC.
Publish the records
Section titled Publish the recordsWhen the domain's zone is on Coritan DNS in this account, or the domain is a claimed coritan.gg name, we have already published the records. When the zone is on Coritan DNS but was added to this account after the domain, use the Publish to your zone card on the domain's page.
At any other DNS provider:
- Create the ownership record: the TXT record at
_mailverify.example.com. Copy its name and value from the DNS records card. - Create the SPF record. If the domain already has one because another service sends for it, add
include:_spf.<base>from the card to that record instead of creating a second one. - Create the DMARC record at
_dmarc.example.com. - On the domain's page, select Verify now. Once we find the ownership record, we make the domain's two DKIM keys.
- Reload the page, then create the two DKIM records it now lists.
Mail DNS records explains each record and what its check looks for.
Verify the domain
Section titled Verify the domain- On the domain's page, select Verify now.
- Read the toast.
example.com is verified.means you are done.example.com is still pending:is followed by the first problem the check found. - If it is still pending, fix what the Checks row and the The last check found problems list show, and select Verify now again.
We also check pending domains about every ten minutes, so a domain whose records are right verifies on its own.
Result
Section titled Result- The domain shows
Verifiedon the Domains tab, with Ownership, SPF and DKIM ticked. DMARC is shown too, but a domain is verified without it. - The Send tab and the send API accept From addresses on the domain.
- When we publish into your zone, the page shows Ready: the records are in your zone, with Open Credentials.
Next, create an SMTP credential. The relay needs one for SMTP and for the send API.
Note
Over SMTP, the relay already accepts a From address on the domain once its ownership check passes. Wait for the domain to be verified anyway: mail sent before SPF and DKIM are published fails those checks at the receiving servers.
Remove a domain
Section titled Remove a domainWarning
Removing a domain stops the relay sending from it at once. If you add it again later, it gets a new ownership token and new DKIM keys, so you publish and verify it from the start.
- Delete the SMTP credentials on the domain first. See Send over SMTP with credentials.
- On the Domains tab, select the domain.
- In the Remove this domain card, select Remove domain….
- Type the domain name to confirm, then select Remove domain.
We delete the records we published into a hosted zone. Records at another DNS provider are yours to delete.
Troubleshooting
Section titled Troubleshooting- Add domain… is greyed out
- The service is not
activeyet, or the plan's domains are all used. A full plan showsThis plan allows 2 domains. Remove one or change the plan to add another.Remove a domain or move to a bigger plan. example.com receives mail on your Mail Hosting service. Add a sending subdomain here instead, such as send.example.com. Your relay can still send as @example.com.- Add
send.example.cominstead. Over SMTP, the relay may still write@example.comin From, because the same account has proved that domain on Mail Hosting. example.com is already on another of your mail services- Remove it from your other SMTP Relay service first, or use a different sending subdomain.
That domain is already attached to a mail service- Someone else's mail service has it. If the domain is yours, contact support.
This plan allows 2 domain(s)orA mail service may hold at most 1000 domains- The plan, or the limit for a plan with no domain limit, is reached. Remove a domain or move to a bigger plan.
MX points tofollowed by other hosts- The relay does not use MX records, so this is information only: the domain can be verified with it. It shows when the domain receives its mail somewhere else.
DKIM selector cor202609r not published- The DKIM record with that selector is missing or holds a different key. Copy the whole value from the card again.
No DKIM keys yet: the mail engine has not made them- We have not finished making the domain's keys. Select Verify now again in a minute.
DMARC publishes p=reject, expected p=none- The domain already had a DMARC record with a different stage. Keep yours and set the same stage on the domain's DMARC policy card, or change your record. See DMARC.
The zone is busy with another change. Check the domain again in a minute.- Another change to the same zone was being saved. Select Verify now again.
Remove the mailboxes and aliases on this domain first- On a relay, this means the domain still has SMTP credentials. Delete them, then remove the domain.
Add a domain to Mail Hosting lists the messages both products share, such as an invalid name or a platform domain.
Related
Section titled Related- Mail DNS records
- Send over SMTP with credentials
- Send email over HTTPS
- How the DMARC stage ramp works
With the API
Section titled With the APIAdd a sending domain:
curl -X POST https://api.coritan.com/api/v1/client/smtp-relay/4812/domains \
-H "Authorization: Bearer $CORITAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"domain": "send.example.com"}'
domain is the name (3–253 characters) and primary defaults to false. The answer is 201 with the domain and its records. A name the service refuses answers 400 with one of the messages above, and a service that is not active answers 409 Service is not active.
The other domain operations work as they do for Mail Hosting, with /client/smtp-relay/ in the path:
| Operation | What it does |
|---|---|
GET /client/smtp-relay/{service_id}/domains |
Lists the relay's domains as {"items": [...]}. |
GET /client/smtp-relay/{service_id}/domains/{domain_id}/records |
The records to publish. See Mail DNS records. |
POST /client/smtp-relay/{service_id}/domains/{domain_id}/verify |
Checks the domain now and answers {"domain": {...}, "result": {...}}. See the example. |
PATCH /client/smtp-relay/{service_id}/domains/{domain_id}/dmarc |
Sets or holds the DMARC stage. See DMARC. |
DELETE /client/smtp-relay/{service_id}/domains/{domain_id} |
Removes the domain and answers {"ok": true}. |
A domain that is not on the service answers 404 Domain not found.
API operations on this page
| Method | Path | What it does |
|---|---|---|
GET | /api/v1/client/smtp-relay/{service_id}/domains | List domains |
POST | /api/v1/client/smtp-relay/{service_id}/domains | Add domain |
DELETE | /api/v1/client/smtp-relay/{service_id}/domains/{domain_id} | Remove domain |
PATCH | /api/v1/client/smtp-relay/{service_id}/domains/{domain_id}/dmarc | Set DMARC |
GET | /api/v1/client/smtp-relay/{service_id}/domains/{domain_id}/records | Domain records |
POST | /api/v1/client/smtp-relay/{service_id}/domains/{domain_id}/verify | Verify domain |