How do I avoid MX record conflicts?
If you already use Gmail, Outlook, or another email provider for your domain, adding AgentMail’s MX records could conflict with your existing setup. Here is how to avoid that.
Use a subdomain
The simplest and recommended approach: set up AgentMail on a subdomain instead of your root domain.
Your agents send and receive from addresses like support@agents.yourcompany.com, while your team keeps using name@yourcompany.com. Both work independently with no overlap.
How to set it up
When adding your domain in AgentMail, use the subdomain:
Then add the MX, SPF, and DKIM records for agents.yourcompany.com at your DNS provider. These records are completely separate from your root domain’s records and will not affect your existing email.
Can I use my root domain?
Yes, but only in these scenarios:
Sending only (no receiving): If you only need AgentMail to send emails from your root domain, you only need SPF (TXT) and DKIM (CNAME) records. These do not conflict with existing MX records, so your Gmail or Outlook inbound mail is unaffected.
Full AgentMail (sending and receiving): If you want AgentMail to also receive emails on your root domain, you would need to replace your existing MX records with AgentMail’s. This means all incoming mail for that domain routes to AgentMail instead of Gmail or Outlook. Only do this if you want AgentMail to handle all inbound email for that domain.
Example DNS setup
Before (Gmail only):
After (Gmail on root + AgentMail on subdomain):
Your team’s email continues to flow through Gmail. Agent emails go through AgentMail. Clean separation with no conflicts.
Common subdomain choices
Pick whatever makes sense for your brand. The important thing is that it is a separate subdomain from your root domain’s email.
