Operator guide
Open a secure route from ChatGPT to business email.
Mailroom keeps provider credentials on your server. ChatGPT receives a short-lived OAuth token and only sees the sender labels you connect.
Run locally
Install dependencies, generate secrets, and start the server:
npm install
npm run setup
npm run dev
Open http://localhost:3310 and use the admin password printed by the setup command.
Enable Gmail Workspace
- Create a project in Google Cloud and enable the Gmail API.
- Configure an OAuth consent screen.
- Under Data Access, add
openid,email,gmail.send, andgmail.readonly. Google grants read-only access to all mailbox messages, bodies, and attachments; Mailroom uses it for reply tracking and cannot modify or delete mail. - Create an OAuth client with application type Web application.
- Add
http://localhost:3310/oauth/google/callbackas an authorized redirect URI. - Put the client ID and client secret in
.env, then restart Mailroom.
For a deployed HTTPS domain, replace the localhost origin in both PUBLIC_BASE_URL and the Google redirect URI. gmail.readonly is restricted: external production use generally requires Google verification, and server-side handling of restricted Gmail data can require an annual security assessment.
Connect Neo or Hostinger
Choose the provider in the dashboard and enter the complete mailbox address and mailbox password. The official defaults are prefilled:
| Provider | SMTP | IMAP |
|---|---|---|
| Neo Business | smtp0001.neo.space:587 | imap0001.neo.space:993 |
| Hostinger Email | smtp.hostinger.com:465 | imap.hostinger.com:993 |
Mailroom verifies SMTP before saving. Neo also requires a working IMAP Sent folder; Sent copying is optional for Hostinger. If a Sent copy later fails after SMTP delivery, Mailroom reports the delivery with a warning instead of claiming that it failed.
Connect ChatGPT
- Deploy the server at a stable HTTPS address, or use OpenAI Secure MCP Tunnel for private developer testing.
- Set
PUBLIC_BASE_URLto that public origin and restart the server. - In ChatGPT, open Settings → Security and login and enable Developer mode.
- Open ChatGPT Plugins, add a connection, and enter the dashboard’s MCP endpoint ending in
/mcp. - Authorize with the Mailroom admin password.
Then try: “List my sender accounts.” Follow with: “Send an email from Sales inbox to [email protected] with subject …”