How do I set up a custom domain?
Send emails from your own domain instead of @agentmail.to.
Send emails from your own domain instead of @agentmail.to.
Custom domains let your agent send emails from your brand (e.g., agent@yourcompany.com) instead of the default @agentmail.to. This improves deliverability and builds trust with recipients.
Custom domains are available on the Developer plan and above. The free tier uses @agentmail.to only. See the pricing page for details.
You can add a domain through the AgentMail Console (go to Domains and click Add Domain) or via the API:
The response includes all the DNS records you need to add at your DNS provider.
The MX record is only needed if you want to receive emails on your custom domain. If you only need to send, you can skip the MX record.
For step-by-step DNS setup instructions, see our provider guides: Cloudflare, GoDaddy, Route 53, Namecheap.
After adding DNS records, verify your domain:
You can also verify from the AgentMail Console by navigating to the Domains section and clicking Verify Domain.
Verification status will progress through these stages:
Once verified, you can create inboxes using your custom domain:
mail.yourcompany.com) if you don’t want to modify your root domain’s MX records or risk conflicts with existing email servicesinclude: into the existing record rather than creating a second one
For a detailed walkthrough, see the Creating Custom Domains guide.