Connect IMAP + SMTP
Connect any mailbox that speaks IMAP and SMTP: anymize reads your mail in the chat and sends a plain-text email only once you approve it.
6 min readUpdated
What this connection does
The connector reads through IMAP and sends through SMTP. In the chat, the assistant can:
- list the folders of your mailbox, with their message and unread counts
- show the newest messages of a folder, up to 50 at a time
- search sender, recipients, Cc and subject in the latest 500 messages of a folder
- read the text of a selected message. The mailbox is opened read-only, so the message stays unread
- send a plain-text email, only after you approve it
Not included: attachments, HTML mail, full-text search in message bodies, moving, deleting or flagging messages, calendars and contacts.
Which mailboxes work
Any mailbox whose server offers encrypted IMAP and SMTP and can be reached from the internet. Typical examples:
- the mailbox that comes with your hosting or domain package
- your own mail server, for example Dovecot and Postfix, mailcow or Open-Xchange
- iCloud Mail, with an app-specific password (see below)
Gmail and Outlook in Microsoft 365 have their own connectors with Google or Microsoft sign-in, and they can do more. An Exchange Server in your own data centre has its own guide.
Before you start
- 01Get the server addresses for incoming (IMAP) and outgoing (SMTP) mail. Your provider's help pages usually list them, often as imap.yourcompany.com and smtp.yourcompany.com.
- 02Check whether your provider requires an app password. Many providers with two-factor sign-in reject your normal account password for IMAP and SMTP. You create an app password in your provider's account settings.
- 03Both servers must be reachable from the internet. anymize does not accept internal or local addresses, including those behind a VPN.
- 04Both servers need a valid TLS certificate for exactly the address you enter, and at least TLS 1.2.
| Purpose | Port | Encryption |
|---|---|---|
| Read mail (IMAP) | 993 | TLS from the start, the default |
| Read mail (IMAP) | 143 | STARTTLS, required before sign-in |
| Send mail (SMTP) | 465 | TLS from the start |
| Send mail (SMTP) | 587 | STARTTLS, required before sign-in |
Other ports and unencrypted connections are not possible. That way your password never crosses the network in clear text.
Connect in anymize
- 01Open Apps, Connectors and search for "IMAP + SMTP".
- 02Under Inbox (IMAP), enter the server, the port, your username and your password or app password.
- 03Under Outbox (SMTP), enter server, port, username and password. They are often the same credentials as for incoming mail, but not always.
- 04Click Connect. anymize checks both addresses, signs in to IMAP over an encrypted connection and checks the SMTP sign-in without sending an email.
- 05The connector then shows up in the chat with its Email area, and the assistant can read your mailbox.
Both checks must pass, even if you only want to read for now. If one fails, the dialog shows whether IMAP or SMTP is the problem.
iCloud Mail and Apple Mail
Apple Mail has no interface of its own, but iCloud Mail works through IMAP and SMTP. The dialog fills in the servers for you.
- 01Create an app-specific password at account.apple.com under Sign-In and Security.
- 02Click "Fill in iCloud servers" in the dialog. This sets imap.mail.me.com with port 993 and smtp.mail.me.com with port 587.
- 03Enter your iCloud address as the username. If the IMAP sign-in fails with it, use only the part before the @.
- 04Enter the app-specific password in both sections and click Connect.
Sending only with your approval
Before an email goes out, anymize shows it to you and waits for your approval. That applies to every single email, whichever mode you picked in the chat.
- The sender is always the SMTP username. So enter an email address there that your mailbox is allowed to send from.
- Each email takes up to 20 addresses in To, Cc and Bcc.
- Emails are sent as plain text, without attachments, HTML or custom headers.
Fix common errors
| Message | What to check |
|---|---|
| Sign-in rejected | Username and password. Most providers with two-factor sign-in need an app password. |
| SMTP sign-in rejected | The SMTP credentials. They sometimes differ from the incoming ones. |
| Server does not respond in time | Address and port. 993 is the default for IMAP, 465 or 587 for SMTP. |
| Encryption failed | Whether the port matches the encryption: 993 and 465 with TLS, 143 and 587 with STARTTLS. Also the certificate and its expiry date. |
| Host not reachable | The address for typos and whether its DNS record is right. |
| Internal or local addresses are not allowed | The address points to an internal network. anymize only connects servers that are reachable from the internet. |
anymize stores your credentials encrypted and checks the server address again on every connection. Never send passwords in a support ticket or on a screenshot.