DocsConnect 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

One-click connect for Gmail and Microsoft 365 via OAuth is in progress. Until then, you can reliably connect any mailbox 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)
    • Port587 (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 → System email.

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 : 587 (STARTTLS)App password required (with 2FA on); enable IMAP in the Gmail account
Microsoft 365 / Outlookoutlook.office365.com : 993smtp.office365.com : 587App password with 2FA on; SMTP-AUTH must be allowed in the tenant
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/Outlook and two-factor you need an app password instead of the normal password — create it in the security area of your Google/Microsoft account and enter it here. (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