Hosted Mailbox
Open in CMSThis tutorial walks you through connecting a mailbox to your qlar agent with the Hosted (Qlar-managed) option. Qlar reads the mailbox and sends the replies for you, so there is nothing to install. It takes about five minutes.
The example connects Atlas, Kirana Group's operations assistant, to the mailbox ask@kirana.example, a Google Workspace mailbox.
Before you start
- Your agent has been published at least once. See Preview and Publish Changes.
- You have a dedicated mailbox. The agent answers every human email that arrives in it. See Connect to Email.
- For Gmail or Google Workspace: 2-Step Verification is turned on for the mailbox, so you can create an app password for it. Qlar signs in with the app password, not with your normal password.
- For any other provider: you know the IMAP and SMTP server names, ports and security type (your provider's help pages list them), and the login username if it differs from the address.
Note: Microsoft 365 mailboxes are not available in Hosted yet, because Microsoft requires a different sign-in method. The option is listed as Microsoft 365 — Needs OAuth and cannot be selected. Use the Self-hosted Gateway for Microsoft 365 mailboxes.
Step 1: Open the Email page
- Open the CMS dashboard and select your agent.
- In the left sidebar, open Channels → Email.
- On Connect Email, choose Hosted (Qlar-managed).
If you see a warning that the published agent is not available, publish the agent first and come back.
Step 2: Choose your mail provider
The first of four steps asks Which kind of mailbox is it?
- Gmail: a Gmail or Google Workspace mailbox, signed in with an app password.
- Generic IMAP: any other mailbox that supports IMAP and SMTP.
For Kirana, choose Gmail.

Step 3: Sign in to the mailbox
Sign in to the mailbox asks for the mailbox login. Qlar uses it to read the inbox and send replies.
| Field | What to enter |
|---|---|
| Email address | The mailbox, for example ask@kirana.example. |
| App password | For Gmail, click Create an app password, create one at Google, and paste it here. You can paste it with its spaces; they are removed before it is sent. |
| Login username | Only if it is different from the email address. Leave it empty to use the address. |
Tip: Use an app password instead of your main password whenever your provider offers one, so you can revoke it later without changing your real password.
Qlar stores these credentials encrypted and uses them only to read this inbox and send replies.
If you chose Generic IMAP, this step also asks for the IMAP host, IMAP port, IMAP security, SMTP host, SMTP port and SMTP security. For Gmail they are filled in for you.

Step 4: Customize the connection
Customize the connection is optional. Most mailboxes work as they are.
- Sender name: the “From” name shown on replies, for example
Atlas · Kirana Group. Leave it empty and replies show the mailbox address. - Server settings (IMAP and SMTP hosts, ports and security): pre-filled by the provider you chose. Change them only if your mail server is set up differently.

Step 5: Test and connect
Test and connect checks the login before anything is saved. Qlar shows Connecting to the mail server… and then a result:
- Signed in to IMAP: Qlar can read the inbox.
- SMTP ready to send: Qlar can send replies.
- New mail arrives instantly (IDLE supported): the mail server tells Qlar as soon as mail arrives. If your server does not support this, you see No IDLE: Qlar checks the inbox by polling instead. That still works, but a reply can take a little longer to start.
If a check fails, go back and fix the field the message points at. The usual cause is a wrong app password or the provider blocking sign-in with an app password.
When the checks pass, click Connect mailbox.

Check the result
The Email page now shows your mailbox address with a green Connected status, the Channel on switch, and Hosted (Qlar-managed) under Connection.

- Open the Configuration tab and use Test send: enter a Recipient you can read, optionally a subject and message, and click Send test. The test email arrives in that inbox, and its result appears in the Console below.
- From another address, email the mailbox with a real question. The reply should arrive in the same thread.
Tip: If mail is not answered, check that: (1) the switch shows Channel on, (2) the status is not
auth_failed, (3) the app password has not been revoked, and (4) the sender is allowed by your contact rules.
Change or remove the connection
- Sender name and login username: change them from the mailbox settings on the Configuration tab.
- New app password: if the old one was revoked, update the credentials from the same card. Qlar uses the new ones from then on.
- Switch off: use the Channel on switch in the header. While it is off, incoming mail is ignored and the agent does not reply; your settings are kept.
- Delete channel: Qlar deletes the stored credentials and stops answering mail from this mailbox. Deleted credentials are not used again: to reconnect, enter them again.
A channel serves one mailbox. To use another mailbox, delete the channel and connect again.
Next steps
- Decide who gets answered: Choose Who Gets Answered. New mailboxes start in Public mode, so check this before sharing the address.
- Brand your replies: the Email designer tab builds the reply layout from blocks (heading, text, button, image, divider, footer) around the place where the AI answer goes. See Email.
- Hand difficult conversations to a person: see Hand Off to a Human.