Stop an AI agent from sending mail as your employees
An agent with mailbox access can email outsiders, and quietly set forwarding rules that leak every future message. Gate the send and freeze the rules.
For: IT and security teams connecting an agent to Microsoft 365 or Gmail
Give an agent a mailbox and you give it two risks at once. It can send mail to anyone — including outside your organization, in an employee's name — and it can set an inbox rule or forwarding address that silently copies every future message somewhere else. The second is how business-email-compromise persists long after the first mistake.
The controls run at ingress, before the call reaches Microsoft Graph or Gmail. guard-external-send denies or draft-holds any agent send where a recipient is outside your corporate domains, so an agent drafts to outsiders but a human presses go. guard-mailbox-persistence blocks creation of mail rules, filters, and forwarding subscriptions — the standing exfiltration channel. freeze-identity-plane denies changes to groups and directory objects so an agent can't quietly widen its own reach.
Start with external-send held for review and mailbox persistence denied outright. The same two policies exist for Gmail, so a mixed shop governs both suites the same way.
Policies in this guide
Block Agent Email to External Recipients
Blocks agent-initiated Microsoft 365 email sends when any recipient address falls outside a corporate-domain allowlist.
Block Mail-Rule and Webhook Persistence
Unconditionally denies the classic business-email-compromise (BEC) persistence surface in Microsoft 365: creating or updating Outlook mail rules, changing…
ms365guard-mailbox-persistenceingressbecemailfinserv-commssoc2
Freeze M365 Identity Plane
Freezes directory and membership mutations on the Microsoft 365 MCP surface. The policy denies, by tool-name suffix:
ms365freeze-identity-planeingressidentityentragroupsiso27001-nistsoc2
Deny Agent Email Sends to External Recipients
Denies Gmail send-class tool calls when any recipient in to, cc, or bcc falls outside a documented corporate-domain allowlist.