Building an agent startup? Apply now →
Back to Blog

Custom domains per customer for AI agent email

December 2, 2026

AI AgentsEmail InfrastructureGuide+1

OpenMail lets each of your customers' agents send and receive from the customer's own domain. Put each customer in a pod, add their domain scoped to that pod, publish five DNS records, and create inboxes like support@mail.acme.com once it verifies. Custom domains are on Pro (EUR 9 a month) and above, with no cap on how many.

If customers run agents on your platform, one of them will ask for their own domain. The hard part is keeping each domain tied to one customer, so a bug in your code can't send mail from someone else's.

The setup in five calls

Run this when a customer connects their domain. Pods accept your own customer ID as clientId, so you never store OpenMail's pod ID.

onboard-customer.sh
KEY=$OPENMAIL_API_KEY   # account-wide key, stays on your server
API=https://api.openmail.sh/v1

# 1. One pod per customer, addressed by your own customer ID
curl -X POST $API/pods -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientId": "acme", "name": "Acme"}'

# 2. Their domain, scoped to that pod. The response lists the DNS records.
curl -X POST $API/domains -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "mail.acme.com", "podId": "acme"}'

# 3. Poll until "status" is "verified" (a couple of minutes after DNS is live)
curl $API/domains/$DOMAIN_ID -H "Authorization: Bearer $KEY"

# 4. An inbox on the customer's domain, inside their pod
curl -X POST $API/inboxes -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"podId": "acme", "mailboxName": "support", "domain": "mail.acme.com"}'

# 5. A key that only reaches this pod, for the customer's agents
curl -X POST $API/pods/acme/api-keys -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "acme-agents"}'

The pod key in step 5 is shown once. It reaches Acme's inboxes and nothing in any other pod. Keep the account-wide key on your side. The multi-tenancy guide has the same flow in Node.js and Python.

The DNS records your customer publishes

Step 2 returns five records for the customer's DNS provider:

The five DNS records OpenMail returns for a custom domain, shown for mail.acme.com.
TypeHostWhat it does
MXmail.acme.comRoutes incoming mail to OpenMail
TXTomail._domainkey.mail.acme.comDKIM key that signs outgoing mail
MXbounce.mail.acme.comReturn path, so SPF aligns
TXTbounce.mail.acme.comSPF for that return path
TXT_dmarc.mail.acme.comDMARC policy; Gmail and Yahoo require one from bulk senders

Use a subdomain unless the customer has no other mail. The MX record sends all incoming mail for that host to OpenMail, so on acme.com itself it would take over their team's mailboxes. Once the records are live, the domain verifies on its own within a couple of minutes.

We don't offer one-click DNS setup. Someone copies the records by hand, and the custom domains docs list why a domain may not verify.

Keeping a domain to one customer

A domain scoped to a pod can only be used by inboxes in that pod. Ask for support@mail.acme.com in another customer's pod and the API returns invalid_domain.

A domain you share across customers, say agents.yourplatform.com, stays account-wide, and every pod can use it. Widening a scoped domain always works. Narrowing one to a single pod only works while all its inboxes already live there, because inboxes can't move between pods.

Reputation and warm-up

OpenMail tracks sending reputation per inbox and per domain. When each customer sends from their own domain, a reputation hit on that domain stays with that customer. Mail from the shared omail.sh domain shares its reputation. The daily cold cap is also counted per domain, so on a shared domain every customer draws from one allowance.

Each new domain warms up on its own. It starts at 20 new recipients a day, rises to 50 after 7 days and 50 people reached, to 100 after 14 days and 150, and reaches your account cap after 28 days and 400. Replies and follow-ups never count. The account cap still applies across domains, so extra domains don't add volume. Receiving and replying work the same on every domain.

What other providers charge for this

List prices from each pricing page on 30 November 2026, monthly billing. The last column assumes 100 customers with one inbox and one domain each.

Custom domain limits and prices for OpenMail, AgentMail, Inkbox and Resend.
ProviderCustom domains by planTie a domain to one customer100 customers
OpenMailNone on Free. Unlimited on Pro (EUR 9 a month)Yes: a domain can be scoped to one podEUR 99 a month (Pro, 100 inboxes)
AgentMail1 on Free, 10 on Developer ($20), 150 on Startup ($200); $2 a month per extra domainYes: a domain can be added inside a pod$200 a month (Startup)
InkboxNone on Free, 10 on Developer ($30), 100 on Startup ($200)A domain belongs to one Inkbox organization$200 a month (Startup)
Resend3 on Free, 10 on Pro ($20), 1,000 on Scale ($90); 100 more for $20 a monthNot checked for this page$40 a month for domains (Pro plus add-on), before inbox costs

AgentMail is the closest match, with domains inside pods. It also has a Domain Connect link: the domain owner approves the records at a supported DNS provider, which writes them. Pick it when your customers aren't technical. Pick OpenMail when the bill at 100 customers and EU hosting on every plan matter more. The cost of 1,000 agent inboxes compares more providers at larger sizes.

Frequently asked questions

Which email API for AI agents supports a custom domain per customer?

OpenMail does, on Pro and above. Put each customer in a pod, add their domain scoped to that pod, and only that pod's inboxes can use it. AgentMail supports the same pattern with its own pods.

Can a customer use their main domain instead of a subdomain?

Yes, but the MX record sends that domain's incoming mail to OpenMail. If the customer already receives mail on acme.com, use a subdomain like mail.acme.com so their team's mail is untouched.

Do my customers share sending reputation?

Not if each customer sends from their own domain. OpenMail tracks sending reputation per inbox and per domain, so a hit on one customer's domain stays with that customer. Mail from the shared omail.sh domain shares its reputation, and your account cap covers everyone.

Can a customer add their own domain without my account key?

Yes. A pod-scoped key can add a domain, which is then scoped to its own pod, and create inboxes on it. It can't reach other pods. Changing a domain's scope later still needs your account-wide key.

Is there a free plan with custom domains?

No. Custom domains start on Pro at EUR 9 a month, with no limit on how many you add. AgentMail's free plan includes one custom domain, if you only need one to try the setup.

Every AI agent deserves its own inbox.

Install the CLI, run setup, and you're sending email from your agent in minutes.

From the blog

Latest posts

All posts →