Scouty runs on Mermail

Explore
Back to blog
Guides9 min read

Is That Really Your Agent? How to Verify an AI Agent's Email Address

A delivered message and a passing DKIM check do not prove an agent is yours. Four checks, domain, mailbox, owner and message, tell you when to trust it.

By Toan Nhu

Mermail field guide cover reading Is that really your agent?, with four checks for an agent address: domain verified, mailbox live, owner named, message authentic

Finance just received a refund request for order 4471, sent from refunds-agent@mail.yourco.com. The address uses your domain, the message passed DKIM, and the name looks like an agent you would actually run.

That is still not enough to release the money. You need to know whether that mailbox is currently in your Mermail workspace, and which person would have to explain the refund if it was a mistake.

Agent mailboxes now show up in the same queues as people: vendor portals, invoices, internal approvals. When a message can move money or change access, the receiving team needs a check it can repeat. Here is the one we use.

"It delivered" is not "it's ours"

The usual tools answer narrower questions than the one you have.

  • Email verifiers look up MX records and probe the SMTP server. They tell you whether a mailbox will accept mail today. Domains that accept mail for every address make even that answer fuzzy.
  • SPF, DKIM and DMARC tell a receiving server that a message was sent with the approval of the domain it claims. They say nothing about which mailbox on that domain is an agent, whether it is still in service, or which team runs it.
  • A familiar address proves nothing at all. Lookalike domains and display names are cheap, and a retired agent address can sit on the right domain for months.

Each of these is a useful signal. None of them is a decision you can defend in a security review or an incident report.

Four questions before you trust an agent address

Treat it as four separate questions. The evidence for each one lives in a different system, and you will not need all four on every message.

QuestionEvidence that answers itRed flag

Re-check the domain when you add it and on a schedule. Authenticate every message that can trigger an action. Confirm the mailbox and its owner in your registry only when the next step would actually matter, for example just before finance releases a refund.

Question 1: is this domain in your workspace?

Look at the domain first, not the local part. If your organization registered it and completed verification in the platform that hosts your mail, the address at least sits inside your boundary, and outgoing mail can be signed as yours. The tradeoff is reputation: anything that agent sends is associated with your domain.

In Mermail, a workspace connects a custom domain, ideally a dedicated subdomain such as mail.yourco.com. Mermail generates the DNS records to publish and checks them. Each record shows a status of Verified, Pending, Retrying or Failed, and the domain card shows whether Sending and Receiving are ready. Only a workspace admin can add, check or remove the domain.

You can read the same state by API. GET /api/v1/workspaces/{workspaceId}/email-domains returns the workspace's domains with their status and verified_at. If the domain behind an agent address is not verified in your workspace, stop there.

Two things to know:

  • Mermail signs with SPF and DKIM once the records verify, but it does not create your DMARC record. Add one at _dmarc.<your domain>, start at p=none, and tighten over time. Our SPF, DKIM and DMARC rollout guide for agent email walks through it.
  • A hosted @mermail.app address is not enough for this question. It will accept mail, and a verifier will often call it valid, but the domain belongs to Mermail. That is fine for experiments and internal tools. If a vendor or partner has to trust the agent, put it on a custom domain you have verified in your workspace.

Question 2: is the mailbox in your workspace and live?

A verified domain only shows the address could belong to you. To know you actually run that mailbox, look it up in the workspace that should own it, with a key bound to that workspace.

Mermail API keys are bound to one workspace, so a lookup only succeeds for mailboxes inside your boundary. The get-mailbox endpoint accepts the stable public_id (preferred), a hosted alias id, or the current email address:

bash
curl https://console.mermail.app/api/v1/mailboxes/refunds-agent@mail.yourco.com \
  -H "x-api-key: sk-proj-YOUR_KEY"

Then read the response before you trust anything:

  • Not found, or forbidden: the address is not a mailbox your workspace runs. Treat the request as external.
  • `workspace_id`: confirm it matches the workspace you expect, especially if you run one workspace per team or customer.
  • `disabled_at`: non-null means the mailbox was disabled and should not be acting. An approval request from a disabled agent is a red flag.
  • `receiving_status` and `can_receive`: ready and true mean the mailbox can receive mail. On a custom domain, both follow the domain's current Receiving MX check; if that check is not ready, receiving_status becomes unavailable.

Store the stable public_id alongside any record the agent creates, so you can look the same mailbox up later even if its address changes.

Question 3: who is on the hook for this mailbox?

A live mailbox in your workspace still does not name a person. Mermail treats the workspace as the ownership boundary, so you keep a separate owner list and have a human approve high-stakes drafts.

Be clear about what Mermail gives you here. Every mailbox lives under a workspace, and the workspace is the ownership boundary for mailboxes, members, domains and billing. GET /api/v1/workspaces/{workspaceId}/members lists the people in that workspace and their roles, so you can always see which humans administer it.

Mermail does not stamp a named owner on each mailbox, and it does not issue signed identity tokens that carry an owner claim. So keep the owner yourself:

  1. Keep a small registry that maps each mailbox public_id to one accountable person and their team.
  2. Put the job in the mailbox name, such as refunds-agent or vendor-signup-agent, so the address explains itself.
  3. Review the registry against the workspace member list when people change roles or leave.
  4. For anything that moves money or grants access, keep the agent's outbound mail as drafts that a person approves before sending.

If you are thinking about signed identity for agents that sign in to other apps, our explainer on OIDC for AI agents covers what such a token should carry. For keeping actions attributable inside your own logs, see who sent that email, the agent or the human.

Question 4: this message really came from that mailbox

An address can pass questions 1 to 3 and the message in front of you can still be forged. Check the message itself.

  • For mail you receive, read the Authentication-Results header your server adds. You want dkim=pass with a signing domain that matches your agent's domain, and dmarc=pass. Once your DMARC policy reaches p=reject, receivers that honor it are asked to reject mail that fails authentication for that domain.
  • For events your systems receive from Mermail, verify the webhook before acting. Each delivery carries webhook-id, webhook-timestamp and webhook-signature headers, and you verify an HMAC-SHA256 signature over the raw body with your signing secret, using a constant-time compare.

Authentication tells you who sent a message. It never tells you the request is a good idea, so keep the approval rules from question 3 in place.

Match the checks to the stakes

You do not need all four checks everywhere. Match them to the stakes.

SituationChecks to run

Set it up in six steps

  1. Create a Mermail workspace per team or customer deployment, with at least one human admin.
  2. Connect a dedicated subdomain under Custom domains and wait until both Sending and Receiving are ready.
  3. Publish a DMARC record and move it from p=none toward p=reject as reports come back clean.
  4. Create one mailbox per agent job, named after the job, and record its public_id and owner in your registry.
  5. Before any high-stakes action, call the get mailbox endpoint with your workspace key and check workspace_id, disabled_at and receiving_status.
  6. Verify webhook signatures on every event, and keep high-stakes replies as drafts a person approves.

Agents can run the same lookups through Mermail MCP with the get_mailbox, list_email_domains and list_workspace_members tools. MCP supports OAuth for interactive clients and API keys for automation, and the Mermail CLI can list a workspace's mailboxes with mermail mailboxes list. You can start in the Mermail console.

What these checks will not prove

  • They only work inside your own workspace. You cannot look up another organization's mailboxes, and there is no public directory of agent addresses.
  • They do not prove intent. A real, live, owned agent can still be tricked by a malicious email. Treat inbound content as untrusted and keep approval on risky actions.
  • Ownership is only as good as your registry. If nobody keeps it current, question 3 quietly fails.

FAQ

Is an email verifier enough to confirm an agent address?

No. A verifier tells you a mailbox will accept mail. It cannot tell you who runs that mailbox, whether it is an agent, or who is accountable for it.

Does passing DKIM and DMARC prove the sender is our agent?

It proves the message was authorized by the domain. If that domain is a verified, dedicated agent subdomain in your workspace, that is strong evidence. You still need the mailbox lookup to know the specific mailbox is live and yours.

Should agents that deal with outside companies use a hosted address?

Use a custom domain for those. A hosted @mermail.app address is fine for internal tasks and quick setup, but outside systems cannot tell your agent apart from any other mailbox on a shared domain.

Does Mermail tell me which person owns each agent mailbox?

Mermail shows which workspace a mailbox belongs to and who the workspace members and admins are. It does not attach a named owner to each mailbox, so keep that mapping in your own registry.

How often should we run these checks?

Check the domain when you add it and then on a schedule. Check message authentication on every message that can trigger an action. Look up the mailbox right before any action that moves money or grants access.

References

Recent articles