swiftapplications

Agent approvals & safety

Give an AI agent your inbox without letting it send

How to let an AI agent read and draft email without send or delete: IMAP versus SMTP, drafts you review, and holding back attachments and remote images.

Updated 8 October 2026 3 min read

The short answer

Reading and sending use different doors: IMAP reads and can save a draft; SMTP sends. Give the agent an IMAP-only connection that can read and append drafts but never sends, deletes or moves mail. You review the drafts and send them yourself. Hold back attachments and remote images by default, since they carry most of the risk.

Two doors: IMAP and SMTP

IMAP is the protocol for reading a mailbox; it can also append a message to the Drafts folder. Sending is SMTP, a separate connection with separate credentials. A connection without SMTP cannot send, whatever the agent is told.

What to allow

  • Allow: list folders, read messages, search, append a draft.
  • Deny: send, delete, move, flag changes, expunge.
  • Hold back by default: attachments and remote images (tracking pixels and payloads).

Drafts are the approval step

A draft in your Drafts folder is a proposal: you read it in your own mail app, edit it, and press Send yourself. It’s human-in-the-loop with tools you already use.

The safe way to do this

MoltenMail

Let an AI agent read and draft your email, never send it

A mailbox connection that can only read and save drafts. Attachments and remote images are held back by default; you send drafts yourself.

See MoltenMail

Questions developers ask

Can an AI agent read my email without being able to send?

Yes, with an IMAP-only connection that can read and append drafts but has no SMTP access.

Is it safe to give an AI my Gmail password?

No. Use an app password or OAuth with the narrowest access, and prefer a connection that can’t send.

Why hold back email attachments from AI agents?

Attachments can carry malware and hidden instructions, and remote images can track you. Read them only when you choose.