> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/emails/agentic-mail.md).

# Agentic Mail

Give AI agents and applications programmatic access to your mailboxes — an email API, event webhooks, sending guardrails, and an MCP server. Find it under **Agentic Mail** in your email domain's sidebar (available on Hostinger Email plans).

## API access

Create API tokens for the email API (documented at [api.mail.hostinger.com](https://api.mail.hostinger.com)):

1. Open **Agentic Mail** → **API access**.
2. Create a named token.
3. Scope it to **all mailboxes** or a selected set, and choose its permissions — SMTP/IMAP actions and/or webhook management.
4. Copy the token immediately — it's shown only once.

Tokens are revocable individually, and there's a limit on how many you can hold at once.

## Webhooks

Get an HTTPS `POST` with a JSON payload whenever something happens in a mailbox:

1. Open **Agentic Mail** → **Webhooks**.
2. Add your endpoint URL (HTTPS only).
3. Pick the mailboxes and trigger events.
4. Store the **secret key** shown at creation — use it to verify request signatures. It's shown once but can be regenerated.

The page includes a **Test** button and a **Recent deliveries** table with the last 20 attempts and their response times. Webhooks that fail repeatedly are paused automatically — fix the endpoint and re-enable.

## Allow and block lists

Guardrails for **outgoing** mail — especially useful when an AI agent can send on your behalf:

* **Allow list** — when non-empty, mail can only be sent to the listed addresses or domains.
* **Block list** — sending to listed addresses or domains is rejected.

Entries can be full addresses or whole domains. If an address matches both lists, the block list wins.

## MCP server

Connect AI assistants to your mailboxes via the Model Context Protocol:

* Server URL: `https://mcp.mail.hostinger.com/mcp`
* Setup instructions are provided for Claude Code, Claude Desktop, Cursor, Windsurf, and JetBrains IDEs, plus a ChatGPT integration under **Apps & integrations**.
* Capabilities: read and search mail, send and manage messages, manage folders and webhooks.

> **Note:** This is a separate MCP server from the [Hostinger Connector](/hostinger-connector/overview.md), which covers hosting, domains, and the rest of the platform. Run both if your assistant should manage hosting *and* email.

## Security notes

* Treat API tokens and webhook secrets like passwords — store them in a secrets manager, never in code.
* Scope tokens to the fewest mailboxes and permissions that work.
* Use the allow list when an autonomous agent sends mail — it turns "the agent emailed the wrong person" into a rejected send.

***

*Last updated: July 22, 2026*
