Connect a mailbox
An Email channel connects a mailbox to Rational AI. Incoming mail becomes conversations, and replies go out as email in the same thread.
A touchpoint whose channel is this mailbox answers the mail. An agent of Agents can also be bound to the mailbox, so that a new email starts it. A mailbox that no touchpoint uses and no agent is bound to is left unread.
Prerequisites
- A mailbox with IMAP and SMTP access, and its server addresses.
- Credentials: either an app password, or a Gmail or Microsoft 365 account you can authorize.
- Permissions: a role with Create and Update on Channels.
Connect the mailbox
- Go to Settings → Channels and select Add.
- Choose Email as the Channel type.
- Enter a Name and fill in IMAP Host, SMTP Host and Email Address. The ports default to 993 for IMAP and 587 for SMTP, and Transport security to
auto, which picks the TLS mode from the port. - Choose the Authentication method and enter the credentials (see Choose how to authenticate).
- Choose the reply mode. Manual is a safe start: mail is put in front of a person, and nothing is sent until someone replies.
- Select Save.
- In the channel's details, select Connect. With an app password, this checks both the IMAP and the SMTP login. With OAuth, select Authorize mailbox access and complete your provider's consent screen.
- Open the touchpoint that should answer and, on its Settings tab, select this channel as its Channel. The touchpoint must be enabled.
Choose how to authenticate
| Authentication | Use it for |
|---|---|
| app password (default) | Any IMAP and SMTP mailbox. Enter it in Password. |
| OAuth (Google) or OAuth (Microsoft 365) | Gmail and Microsoft 365, where app passwords are often turned off by policy. Enter your OAuth application's OAuth Client ID and OAuth Client Secret. |
How mail becomes conversations
Each email thread is one conversation, so two threads from the same person are two conversations, as in their mail client.
Rational AI picks up unread mail every 60 seconds by default (Poll interval (seconds)) and marks a message read once it's in a conversation. HTML-only mail is reduced to plain text.
Replies are sent with a Re: subject and the headers that keep them inside the existing thread in the recipient's mail client. If your mail server is unreachable, the reply is sent again later.
Filter automated and unverified mail
The channel ignores mail that would start a reply loop:
- Mail marked as automatically sent, or as bulk, list or junk mail.
- Out-of-office replies and other mail that asks not to be auto-answered.
- Mail from no-reply, mailer-daemon and postmaster addresses.
- Mail from the channel's own address.
Your allowed and blocked senders apply on top. On an Automatic mailbox, fill in Allowed senders: mailboxes get far more unsolicited mail than chat apps.
Only verified senders is on by default. Mail that fails the sender checks (DMARC, DKIM or SPF) is kept for a person to read, but it starts no agent and gets no automatic reply. Mail between colleagues on the same Microsoft 365 or Google Workspace may also count as unverified. The check needs a mail server that records these results, as Gmail and Microsoft 365 do.
Attachments
Attachments follow the channel's attachment settings. Attachment size limit (MB) defaults to 25 MB. The assistant reads the text of an accepted document before it answers. Operators can open or download what arrived from the conversation; see Use the chat.
Troubleshooting
| Symptom | What to check |
|---|---|
| A mailbox that worked has stopped receiving mail | The channel's Status. An OAuth authorization can expire or be revoked. Select Disconnect, then Connect, and complete Authorize mailbox access again. You don't need to re-enter the client ID or secret. |
| Connect fails with an app password | Both the IMAP and the SMTP login must work. Check the hosts, ports, Email Address and Password. |
| Mail arrives but gets no automatic reply | That the Reply mode is Automatic, that an enabled touchpoint uses the channel, and whether Only verified senders held back mail that failed the sender checks. |
Next steps
- Manage channels: modes, allowed senders, and attachment settings.
- Configure touchpoints: set up the assistant that answers the mail.
- Conversations: read and reply to what arrives.