Agentic Mail
Give AI agents programmatic access to Hostinger Email with API tokens, webhooks, outgoing mail allow and block lists, and a dedicated MCP server.
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):
Open Agentic Mail → API access.
Create a named token.
Scope it to all mailboxes or a selected set, and choose its permissions — SMTP/IMAP actions and/or webhook management.
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.
To call the API from your own code, the official Email SDKs wrap it in PHP, Python, and TypeScript classes, and a hostinger-mail CLI covers the same operations from a terminal.
Webhooks
Get an HTTPS POST with a JSON payload whenever something happens in a mailbox:
Open Agentic Mail → Webhooks.
Add your endpoint URL (HTTPS only).
Pick the mailboxes and trigger events.
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/mcpSetup 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, 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: August 6, 2026
Last updated
Was this helpful?