Server settings
Both servers use SSL/TLS from the first byte. Choose SSL/TLS, not STARTTLS. If the app asks how to authenticate, choose the normal password option.
Set up in the console
1
Open the inbox's settings
Open the inbox from Inboxes and click Inbox settings at the bottom of its sidebar. The IMAP / SMTP section shows both servers, the username, and the inbox’s keys.
2
Create a key
Click Create key and name it after the device, for example
Laptop. Copy the key. It’s shown once and can’t be retrieved again.A key created here starts with IMAP / SMTP access on. A key created anywhere else works only for the API until you switch it on in the key list.3
Add the account to your mail app
In your mail app, add an account and choose to set it up manually, or pick Other or IMAP. Enter the server settings, with the inbox’s address as the username and the key as the password. Use the same username and password for both servers.
Set up with the API
Use an account-wide key, or a pod-scoped key for the inbox’s pod. Inbox-scoped keys can’t create, change, list or revoke keys.token in the create response is the password. It’s returned once, so store it straight away. Turning access on for an existing key only helps if you still have that key’s value. Every key object includes mailAccess, so listing the inbox’s keys with GET /v1/inboxes/{id}/api-keys shows which ones mail apps can use.
Any key that can reach the inbox can read the settings, including the inbox’s own inbox-scoped key.
Set up with the CLI or MCP
With the CLI, version 0.16.0 or later:get_mail_client_settings, and set_inbox_key_mail_access turns access on or off for an existing key. When you signed in with OAuth, the agent never creates the key itself. It sends you to the inbox’s settings in the console, so the key doesn’t end up in the chat. Turning access on or off over OAuth needs the Set up inboxes scope.
What a mail app can do
The mail app works on the same mailbox as the API and the console.- It sees Inbox, Sent, Drafts, Archive, Junk, Trash and your custom folders.
- It can file messages into folders, create, rename and delete custom folders, mark messages read or flagged, and edit drafts.
- It gets new mail pushed as it arrives (IMAP IDLE), so you don’t have to wait for the app to check.
- Mail it sends goes out through OpenMail like mail sent with the API. Sender rules, rate limits and billing apply, and the message is saved in Sent.
- Deleting a message moves it to Trash in most mail apps. That is the same Trash the console shows, and it empties itself after 30 days. Emptying Trash in the app, or an app set to delete without Trash, deletes the message for good.
Limits
Turn access off or revoke a key
To sign a mail app out, switch the key off under IMAP / SMTP in the inbox’s settings, runopenmail inbox keys update --mail-access false, or send {"mailAccess": false}:
DELETE /v1/inboxes/{id}/api-keys/{keyId}. Revoking a key that still has access on returns 409 api_key_in_use.
To replace a key, create a new one, update the password in the mail app, then switch the old key off and revoke it.
Troubleshooting
The mail app can't sign in
The mail app can't sign in
Check that:
- The username is the inbox’s full address, such as
support@omail.sh, not your console email or the key name. - The password is a key for this inbox, starts with
om_, and was pasted in full. - The key’s switch is on under IMAP / SMTP in the inbox’s settings. A key created on the API keys page starts with it off, and so does one minted with the API or CLI unless you asked for mail access.
- Security is SSL/TLS on ports
993and465, not STARTTLS.
Every sent message appears twice in Sent
Every sent message appears twice in Sent
OpenMail saves mail sent over SMTP in Sent itself. If your app also saves its own copy and you see both, turn off the app’s option to keep a copy of sent messages on the server.
A message won't send
A message won't send
Check the limits: at most 50 recipients, 25 MB and one Reply-To address, sent from the inbox’s own address. Sender rules and rate limits apply to mail apps too, so a send the API would refuse is refused here as well. An inbox on a custom domain also needs the domain to be verified and your organisation to be on a paid plan.
Related
- Inbox-scoped API keys: what the key can reach.
- Authentication: all three key scopes.
- Agent keys: rotating and revoking keys.