Before you start
- An Aquila account
- A Spacemail mailbox
- The mailbox password or app password required by your account
- An agent environment that accepts remote MCP server configuration
Connect your Spacemail mailbox in Aquila
Choose Spacemail in the host grid. Aquila fills the provider settings automatically.
- Open the dashboard and choose Add inbox.
- Select the provider card when it is available, or use Other IMAP for custom settings.
- Enter an inbox name, email address, and mailbox password or app password.
Use this slot for a screenshot of the Aquila provider picker or custom IMAP form.
Test and save the mailbox
Aquila tests the incoming IMAP connection and, when SMTP is enabled, the outgoing SMTP connection before saving credentials.
- Use the credential Spacemail expects for IMAP and SMTP access.
- A successful test confirms that the agent can reach the mailbox through Aquila.
- Mailbox credentials are encrypted at rest and decrypted only for request-time access.
Use this slot for the Aquila Test connection step after the check animation succeeds.
Create an API key for ChatGPT
Create a dedicated API key for each agent or workspace so access can be audited, scoped, and revoked independently.
- Name the key after the agent or environment that will use it.
- Select only the mailboxes this key should expose.
- Optionally set an expiration date for temporary projects or contractor access.
Use this slot for the Aquila API key configuration dialog with mailbox access selected.
Add Aquila as an MCP server in ChatGPT
Use the Aquila MCP endpoint and the API key you created. The endpoint is http://localhost:8080/mcp.
- Use an Authorization bearer token header with the API key.
- Keep the API key secret. Aquila only shows it once after creation.
- After connecting, ask the agent to list connected email addresses to verify access.
Use this slot for the ChatGPT MCP server configuration screen.
Reusable MCP configuration block
Use this block in every guide and replace the API key placeholder with the one-time key copied from Aquila.
{
"mcpServers": {
"aquila-email": {
"url": "http://localhost:8080/mcp",
"headers": {
"Authorization": "Bearer <your aqla_ API key>"
}
}
}
}FAQ
Can ChatGPT send email through Spacemail?
Yes, when SMTP is enabled and the API key has access to that mailbox.
Can I disable access without deleting the mailbox?
Yes. Disable the inbox or revoke the API key from the Aquila dashboard.