Skip to main content

Set up IMAP + SMTP

IMAP + SMTP connects almost any mailbox that isn't covered by a dedicated provider — Fastmail, iCloud, Yahoo, self-hosted/on-prem mail servers, or even Gmail via an app password. Unlike Gmail, there's nothing for an administrator to set up: each user connects their own mailbox directly from their profile with their server settings.

  • IMAP handles receiving (inbound).
  • SMTP handles sending (outbound).

They're configured separately because many providers use different hosts/ports for each.

Prefer OAuth where it exists

For Gmail, the OAuth flow is more secure and avoids app passwords. Use IMAP for Gmail only if OAuth isn't an option for you.

What you'll need

Have these ready before you start (from your mail provider's "mail client / IMAP settings" help page):

FieldWhat it isTypical value
IMAP hostIncoming server hostnameimap.fastmail.com
IMAP port993 for implicit TLS, 143 for STARTTLS993
IMAP TLS modeImplicit TLS / STARTTLS / NoneImplicit TLS
IMAP usernameUsually your full email address[email protected]
IMAP passwordYour password — or an app password (see below)
SMTP hostOutgoing server hostnamesmtp.fastmail.com
SMTP port465 for implicit TLS, 587 for STARTTLS465
SMTP TLS modeImplicit TLS / STARTTLS / NoneImplicit TLS
SMTP usernameUsually the same as IMAP[email protected]
SMTP passwordUsually the same as the IMAP password
From addressThe address used in the From: header; must be deliverable by your SMTP server[email protected]
Use an app password when 2FA is on

Most providers (Gmail, Fastmail, Yahoo, iCloud, …) reject your normal account password over IMAP/SMTP once two-factor authentication is enabled. Generate a per-app / app-specific password in your provider's account/security settings and use that here. It's stored encrypted at rest.

Common provider settings

ProviderIMAPSMTPNotes
Fastmailimap.fastmail.com:993 (TLS)smtp.fastmail.com:465 (TLS)Requires an app password
iCloud Mailimap.mail.me.com:993 (TLS)smtp.mail.me.com:587 (STARTTLS)Requires an app-specific password
Yahoo Mailimap.mail.yahoo.com:993 (TLS)smtp.mail.yahoo.com:465 (TLS)Requires an app password
Gmail (via IMAP)imap.gmail.com:993 (TLS)smtp.gmail.com:465 (TLS)Enable IMAP in Gmail settings + use an app password. Prefer OAuth.
Self-hosted / on-premyour server :993 (TLS)your server :465 (TLS)Use 587/STARTTLS if implicit TLS isn't offered

Always confirm against your provider's own documentation — hostnames and ports occasionally differ.

Connect your mailbox

  1. Profile → My communication channels → Connect IMAP.
  2. Fill in the IMAP and SMTP sections from the table above, plus the From address, and acknowledge the security notice (IMAP/SMTP basic auth is less secure than OAuth).
  3. Click Connect.

Open Saasframe performs a live IMAP login and an SMTP check against your servers before saving anything. If the host, port, TLS mode, or password is wrong, you get a field-level error immediately — nothing is stored until both servers accept the login.

After connecting, new inbox mail appears within ~5 minutes (IMAP is polled, not pushed). To pull in older mail, use Import history on the channel — see the Communication Channels guide.

TLS modes explained

ModeWhen to useIMAP portSMTP port
Implicit TLSDefault, most secure — TLS from the first byte993465
STARTTLSWhen the provider only offers it143587
NoneTesting only, inside a private network — disables encryption

Pick the port that matches the mode. A mismatch (e.g. port 993 with STARTTLS) is the most common connection failure.

Troubleshooting

"Authentication rejected by the server. Check the username and password."

The server refused the login (often SMTP error 535). Usually one of:

  • Wrong password — re-enter it.
  • App password required — generate one in your provider's security settings; your normal password won't work with 2FA on.
  • IMAP/SMTP disabled — some providers turn IMAP off by default; enable it in their settings.

"Could not reach the server. Check the host and port."

The host/port isn't reachable (ETIMEDOUT / ECONNREFUSED / ENOTFOUND). Verify the hostname against your provider's docs and confirm the port matches the TLS mode (993 implicit TLS, 143 STARTTLS for IMAP; 465 / 587 for SMTP).

Connects, but sending fails

IMAP (receiving) and SMTP (sending) are validated separately. If inbound works but outbound doesn't, re-check the SMTP host/port/TLS and that the From address is one your SMTP server is allowed to send as.

Channel flips to "Needs reconnection"

A rotated password or revoked app password invalidates the stored credentials. Open the profile page, click Reconnect, and re-enter the (new) password.