Scouty runs on Mermail

Explore
Back to blog
Guides6 min read

Who Sent That Email, the Agent or the Human? Fixing Attribution

Your logs record which key was used, not who decided to send. Here is how to make agent actions attributable, starting with an email address per agent.

By Toan Nhu

Mermail field guide cover reading Agent or human: who sent that?, contrasting a shared account log line with an agent address that has an owner and approval

A customer forwards you a screenshot. It is a sharp, slightly rude follow-up about an unpaid invoice, sent from your company's address on a Sunday night. Their note says: "Was this a person or your bot?"

You open the logs. The send came from the shared ops account that your team, two scripts and one AI agent all use. The log is correct, and it is useless. It tells you which credential was used, not who decided to send.

As agents take on real work, "who did this?" becomes a daily question for support, security and finance. The answer has to be designed in before the agent goes live, because no log viewer can recover a name that was never recorded.

Logs record the key, not the actor

Every system you use writes down the identity that authenticated the request. If an agent borrows a person's token, the log says the person did it. If five automations share one service account, the log says "the service account" five times.

That is not a bug in your logging. It is a decision made when access was handed out. Attribution is set at the moment you give the agent a credential, so that is where you fix it.

Three ways agents show up today

Most teams have a mix of these:

  • Borrowed human access. The agent runs on someone's OAuth grant or session. Every action appears as that person. This is the hardest case to untangle after an incident.
  • A shared service account. Better than borrowing a human, but every automation behind it looks the same. You can tell "not a person," and nothing more.
  • Its own identity. The agent has a credential and a name of its own, and a person is recorded as its owner. Now the log can say which agent acted and who answers for it.

Only the third gives you a clean answer. The first two are where most teams start, usually because they were fastest to set up.

Acting for someone vs acting as someone

There is a useful distinction here. When an agent acts for a person, a good record shows two names: the agent that did it and the person it worked for. When it acts as the person, only one name survives, and it is the wrong one.

Standards for delegated access already model this. OAuth token exchange, for example, defines an "actor" claim so a token can carry both the subject and the party acting on their behalf. Whatever stack you use, aim for records that keep both names.

What every agent action record should answer

For any action an agent takes, especially one that reaches outside your company, you want to answer four questions without guessing:

  1. Which agent? A stable, unique identity, not a shared account name.
  2. Who owns it? A named person or team accountable for its behavior.
  3. Who approved this action, if anyone? Was it reviewed, or sent on its own?
  4. What exactly went out? The message, the recipients, the time, and the thread it belongs to.

If your current setup cannot answer one of these for last week's sends, that is your gap.

Start the agent's identity with an email address

An email address is a practical first identity for an agent, because every system already understands it. Other people can reply to it. Vendors can send receipts to it. Your logs, your CRM and your help desk already have a column for it.

Give each agent its own address, on a subdomain you control, and name it for its job: invoices-agent@mail.yourco.com reads very differently from ops@yourco.com in a customer's inbox and in your audit trail. Pair it with a named owner in your internal records.

If you are weighing broader identity standards for agents, our explainer on OIDC for AI agents covers how sign-in identity and accountability fit together. An email address does not replace that, but it is something you can ship this week.

How Mermail helps you keep the names straight

Mermail gives each AI agent its own mailbox, separate from anyone's personal Gmail or Outlook. That is the core of clean attribution for email: the agent sends from its own address, so nobody confuses its mail with a person's.

A few details that matter for audit:

  • One mailbox per agent. Messages, drafts and settings live with that agent's mailbox inside a workspace. See Mailboxes.
  • Drafts for human review. The built-in reply triager saves replies as drafts instead of sending them, so "who approved this?" has an answer: a person did, or it did not go out.
  • Human takeover is explicit. For mail forwarded into Mermail from your original provider (Gmail, Outlook, iCloud Mail and others), if someone replies to that thread directly in the original mailbox, Mermail treats it as a human takeover and permanently stops AI processing for the entire thread. That keeps a hard line between agent turns and human turns.
  • Workspace-scoped credentials. API keys are bound to one workspace, and MCP connections with OAuth are tied to a signed-in user and a chosen workspace. See MCP and Authentication.
  • Your own domain. Agents can send from a dedicated subdomain you verify, so recipients see a name tied to your company. See Custom domains.

To be clear about limits: Mermail keys are scoped to a workspace, not to a single mailbox. If you need a hard per-agent boundary for credentials, give that agent its own workspace or keep its key in a service that only it can call.

Put it in place in five steps

  1. List every automation that sends mail today and the credential each one uses. Mark which ones borrow a person's access.
  2. Create one mailbox per agent with a job-based name. You can do this in the Mermail console or by API.
  3. Record an owner for each agent address in the system where you track services or vendors.
  4. Start every agent on drafts. Let a person approve sends until you trust the workflow, and keep the approval step for anything sensitive, such as payments, disputes or legal topics.
  5. Review a sample weekly. Pick a few sent messages and check you can answer the four questions above from the records alone.

For a broader pre-launch list, see our AI agent inbox security checklist and six controls that make agents enterprise ready.

FAQ

Isn't a service account enough?

It tells you a machine acted, but not which one, and not who owns it. Once you run more than one agent, that is rarely enough to answer a customer or an auditor.

Should the agent ever send as a person?

Only when the message really is that person's, and they approved it. For everything else, the agent should send from its own address so recipients know who they are talking to.

Does this help with regulation?

Clear records of what an AI system did and who oversaw it support most governance work. Our post on the EU AI Act and agent email goes deeper. This is not legal advice.

Can a human and an agent share one thread?

Yes, for mail forwarded into Mermail from your original provider (Gmail, Outlook, iCloud Mail and others). If a person replies to that thread directly in the original mailbox, Mermail permanently stops the AI on the whole thread, so the handover is visible.

References

Recent articles