Docs › Connect channels › Connect an email mailbox

Connect an email mailbox (IMAP/SMTP)

This guide connects an existing email mailbox (e.g. support@yourcompany.com) to The-Y CRM. Afterwards, incoming mail lands automatically as tickets in the inbox, and your replies go back out from the same address.

⏱ approx. 5–10 min · Permission: settings.manage (admin) · Applies to Free & Paid

Settings → Channels in The-Y CRM
Settings → Channels — where you add the mailbox.

Before you start — what you need

Since version 1.1.50 you connect Microsoft 365 and Outlook.com with one click, without a password: here’s how. All other mailboxes are connected over IMAP/SMTP as described here; this works with every provider.

Step by step

  1. Open channel settings. In the app, click Settings → Channels on the left. If you have multiple brands (workspaces), first pick the brand this mailbox belongs to at the top.
  2. Add a mailbox. Under "Mailboxes & numbers" click "+ Add" and choose the type Email. The "Set up" panel opens automatically.
  3. Enter the sender address. Enter the email address you want to send/receive from (e.g. support@yourcompany.com) and optionally a display name.
  4. Enter IMAP (incoming). This is the server The-Y fetches new mail from.
    • Server/Host (e.g. imap.yourcompany.com)
    • Port — usually 993 (SSL/TLS)
    • Username (often the full email address) and password — stored encrypted (AES-256).
  5. Enter SMTP (outgoing). The server The-Y sends your replies through.
    • Server/Host (e.g. smtp.yourcompany.com)
    • Port — 587 (STARTTLS) or 465 (SSL). The-Y picks the encryption automatically from the port.
    • Username/password as for IMAP (identical with most providers).
  6. Test the connection. Click "Test connection". The-Y saves the entries and immediately opens a real test connection. Green "Connection OK" = all good. An error message (e.g. 535 Authentication failed) comes straight from the server — see Troubleshooting.
  7. Choose the import mode. Decide what happens on the first fetch:
    • New mail only (recommended): only mail arriving from now on becomes tickets.
    • Full history: the existing mailbox is imported gradually (in batches, de-duplicated).
  8. Add a signature (optional). Enter an HTML signature for this mailbox. Placeholders such as {{user.firstname}} are filled per sending agent automatically; a live preview shows the result.
  9. Save & activate. Save the mailbox. It is now active — incoming mail appears in the Inbox, replies go out from this address (with a quote + correct threading headers).
You can add several mailboxes per brand (e.g. support@ and info@). Which mailbox sends system mail (password reset, invitations) is set under Settings → Email sender.

Connect Microsoft 365 or Outlook.com

Microsoft no longer allows password sign-in for business mailboxes (Microsoft 365) or Outlook.com/Hotmail. Since version 1.1.50 you therefore connect these mailboxes directly with your Microsoft account. Your password stays with Microsoft; The-Y only gets permission to fetch and send email.

  1. Add the mailbox. Settings → Channels → Email: enter the address and click Add (or Configure on an existing mailbox).
  2. Choose the provider. Under Provider, choose “Microsoft 365 / Outlook.com”.
  3. Click “Connect with Microsoft”. You are briefly redirected to Microsoft (an ongoing call in this window will end).
  4. Sign in with exactly this address and confirm the access.
  5. Done. You come back automatically: “Connected!”. New emails appear in the inbox within a minute.

The-Y sets the servers itself (fetching outlook.office365.com, sending smtp.office365.com, or smtp-mail.outlook.com for Outlook.com).

“Your organisation only allows new apps with the approval of an admin”

Many organisations require admin consent once before a new app can be used. The-Y then shows an approval link:

  1. Copy the link and send it to your admin.
  2. The admin opens it (role Global Administrator, Cloud Application Administrator or Application Administrator), reviews the permissions (read email via IMAP, send via SMTP, stay signed in, profile) and clicks “Accept”. Alternatively: Microsoft Entra admin center → Enterprise apps → “The-Y CRM” → Permissions → “Grant admin consent”.
  3. Then click “Connect with Microsoft” again.

Common messages with Microsoft

Disconnect: “Disconnect” removes the Microsoft sign-in from The-Y. Conversations and messages are kept. You can also remove the app at myapps.microsoft.com (work) or account.live.com/consent/Manage (personal).

Gmail with an app password

Google does not allow your normal password for Gmail in other programs. You need an app password (16 characters):

  1. Turn on 2-Step Verification in your Google account (Security → 2-Step Verification).
  2. Open myaccount.google.com/apppasswords, enter a name (e.g. “The-Y CRM”), click Create.
  3. In The-Y, choose provider “Gmail / Google Workspace” → “Fill in Gmail values” → paste the 16-character password (without spaces) into both password fields → Test connection.

Servers: fetching imap.gmail.com, port 993 (SSL) · sending smtp.gmail.com, port 465 (SSL) or 587 (STARTTLS) · user: full Gmail address. Google Workspace: if the “App passwords” page is missing, your admin has blocked it (or IMAP). Changing the Google password deletes all app passwords; then enter a new one.

Self-hosted: “Connect with Microsoft” needs your own app registration at Microsoft on your server (MS_OAUTH_CLIENT_ID, MS_OAUTH_CLIENT_SECRET, redirect URI https://<your-domain>/api/channels/email/oauth/microsoft/callback), step by step in SELF-HOSTING.md (German). Without it the button is hidden; Gmail and all other providers keep working with server and password.

Server details for common providers

If you don't know your server details, you'll usually find them in your provider's help under "set up IMAP/SMTP". The most common:

ProviderIMAP (incoming)SMTP (outgoing)Login / note
Gmail / Google Workspaceimap.gmail.com : 993 (SSL)smtp.gmail.com : 465 (SSL) or 587 (STARTTLS)App password required (guide); enable IMAP in the Gmail account
Microsoft 365 / Outlook.comoutlook.office365.com : 993smtp.office365.com : 587
(Outlook.com: smtp-mail.outlook.com)
With one click via “Connect with Microsoft” (guide); The-Y fills in the servers itself
GMXimap.gmx.net : 993mail.gmx.net : 587Enable "POP3/IMAP access" in the GMX account
web.deimap.web.de : 993smtp.web.de : 587Enable IMAP in the account
Own server / hostimap.yourdomain.com : 993smtp.yourdomain.com : 587Details from your host (Virtualmin/Plesk/cPanel "Email accounts")
Providers change server details occasionally. When in doubt, your email provider's official IMAP/SMTP guide always wins.

Check that it works

  1. Incoming: Send a test mail from another account to the connected address. Within ~1 minute it appears as a new ticket in the Inbox.
  2. Outgoing: Open the ticket, write a reply, "Send". Check in the other account that the reply arrives (including your signature).

Troubleshooting

535 Authentication failed / "username or password wrong"

The server rejects the credentials. Most common causes: (1) With Gmail you need an app password instead of the normal password (guide). Microsoft 365 and Outlook.com are connected via “Connect with Microsoft” instead of a password (guide). (2) The username is not the full email address (some hosts want e.g. u12345). (3) IMAP/SMTP is not enabled on the mailbox.

wrong version number / SSL error when connecting

Port and encryption don't match. Use 993 for IMAP (SSL) and 587 (STARTTLS) or 465 (SSL) for SMTP. The-Y derives the encryption from the port — if you enter e.g. port 587 with forced SSL, this error appears.

Certificate/hostname error (own mail server)

If your server's TLS certificate is issued for a different hostname, The-Y retries the SMTP send once with relaxed certificate checking — so sending usually still works. Cleaner is a certificate that matches your mail hostname exactly.

The first fetch imported my whole history

That happens when "Full history" was selected on setup. For a clean start choose "New mail only". You can close already-imported old mail in the inbox.

Nothing arrives

Check: is the mailbox active (toggle in the channels table)? Is the IMAP host/port correct? The fetch runs in the background about once a minute — wait briefly. If "Test connection" is green but still nothing arrives, check the IMAP status in the email panel.

What's next