# Other providers (IMAP and SMTP)

Send replies through Yahoo, AOL, iCloud, Fastmail, Zoho, Yandex, a hosting provider or your own mail server over SMTP, and on your own instance read the mailbox over IMAP, with the server settings detected for you.

A mailbox outside Google and Microsoft sends replies through its provider's **SMTP server**, so they come from your address and land in your Sent folder. Mail comes in by [forwarding](/guides/mailboxes/forwarding/). Sending over SMTP works on every instance, opendesk Cloud included.

On your own instance, a mailbox can also **receive over IMAP**: opendesk reads new mail from the IMAP server, with nothing to forward. IMAP receiving is on by default on a self-hosted instance, and `MAILBOX_IMAP` turns it off (see [Receiving over IMAP](/self-hosting/configuration/#receiving-over-imap)). opendesk Cloud receives by forwarding.

## Send through your SMTP server

**1. Add the mailbox and pick forwarding**

In **Settings**, open **Mailboxes** and click **Add mailbox**. Type a name and the address. Choose **Forward mail to opendesk** and click **Continue**.

**2. Enter the SMTP server**

Under **How replies are sent**, choose **Your SMTP server**. Enter the server, port and security from [Providers](#providers) below, your full address as the username, and the password your provider takes for mail apps: often an [app password](#app-passwords-by-provider). For a sending service such as Resend or Postmark, pick it under **Using a sending service?** instead (see [Send with a sending service](/guides/mailboxes/#send-with-a-sending-service)). opendesk signs in to the server before it saves anything.

**3. Forward the mail**

Turn on forwarding at your provider to the address opendesk shows, as in [Forwarding](/guides/mailboxes/forwarding/). Then write to your address from another account: it shows up in **Unassigned** as a new ticket.

## Connect over IMAP and SMTP, on your own instance

With IMAP receiving on, the wizard also offers ways that read the mailbox and send through it. You type the address, opendesk finds the servers, and you paste a password.

- **App password**, for providers that only accept one from mail apps: Yahoo, AOL, iCloud, Fastmail and Yandex. The wizard shows where to make it.
- **Email password**, for hosts that accept the mailbox's own password, such as a hosting provider or your company's mail server.
- **Other IMAP and SMTP**, to type or change the server settings yourself.

![The connect step for sales@yahoo.com: the three steps to create a Yahoo app password ringed as 1, the App password field ringed as 2, and the Yahoo servers set for you ringed as 3](https://heykefu.com/guides/mailboxes/yahoo-app-password.webp)

1. **Create an app password**: three short steps for your provider, and a button that opens the right page.
2. **App password**: paste it here.
3. **Server settings, set for you**: the provider's IMAP and SMTP servers, ports and security. **Edit** switches to Other IMAP and SMTP with them filled in.

### Connect with an app password or a password

**1. Add the mailbox and type the address**

In **Settings**, open **Mailboxes** and click **Add mailbox**. Type a name and the address. opendesk shows the provider and selects **App password** or **Email password**, whichever it takes. Click **Continue**.

**2. Create the app password**

For an app password, follow the three steps in the wizard, or see [App passwords by provider](#app-passwords-by-provider) below. Name it **opendesk** so you can find it later.

**3. Paste it and connect**

Paste the app password, or the mailbox's password, and click **Connect**. opendesk signs in to both servers before it saves anything, and the last step shows **Receiving works** and **Sending works**. If a server refuses, the wizard says why and how to fix it.

### Where the inbox starts

A mailbox that receives over IMAP first brings in the last 7 days of its inbox, up to 200 emails, then new email as it arrives. Under **Start with**, choose **Only new email** to begin with what arrives from now on instead, for example when your history came over with an [import](/guides/importing/). Older email in the inbox is never brought in.

### Read other folders

By default opendesk reads the inbox. When your server's rules file support mail into folders of its own, for example mail to an alias that goes straight to an archive folder, choose those folders as well. This works for any mailbox that reads over IMAP, including Google and Microsoft mailboxes connected to sync.

1. Open the mailbox in **Settings**, **Mailboxes**, and go to **Folders**.
2. Click **Choose folders**. opendesk signs in to the server and lists its folders.
3. Tick the folders to read, up to 10, and click **Save changes**. Untick **Inbox** to stop reading the inbox.

Each folder is read from the point you add it, as the inbox was when you connected: the last 7 days, or only new mail when the mailbox started with new mail. A message filed in several of the folders becomes one ticket message. Sent mail, drafts, trash, spam and Gmail's All mail are marked in the list: reading them would turn your own replies and junk into tickets. The inbox is always read first. If a folder is renamed or removed on the server, opendesk keeps reading the other folders and the mailbox names the folder it could not open until you choose again. A folder you untick and tick again later, the inbox included, is read as a new one. Changing the IMAP server or account keeps your choice, and each folder is read again as on a new connection.

### Keep sent email on the server

When replies go out through your SMTP server, or through opendesk, the mail server keeps no copy of them, so your mailbox in other mail apps shows only one side of each conversation. A mailbox that reads over IMAP can keep a copy of everything it sends, as a mail app does:

1. Open the mailbox in **Settings**, **Mailboxes**, and go to **Sending**.
2. Turn on **Keep sent email on the server**. opendesk picks the server's Sent folder; choose another folder if you like.
3. Click **Save changes**.

Each email goes into the folder, marked read and dated when it was sent, a moment after it is sent: replies, side conversations, auto-replies and satisfaction surveys. opendesk signs in to the IMAP server briefly for each copy. If the server refuses the folder, opendesk tries again a few times and then gives that copy up; the email itself was sent either way. Mailboxes that send with Google or Microsoft already keep their sent email, so they do not offer this.

Some SMTP servers save what they send in the Sent folder themselves, such as Gmail's SMTP (`smtp.gmail.com`) and Microsoft 365 (`smtp.office365.com`). Leave this off for those, or each email is kept twice.

## Providers

| Provider | Password | Where to make an app password | IMAP | SMTP |
| --- | --- | --- | --- | --- |
| Yahoo Mail | App password | [login.yahoo.com/account/security](https://login.yahoo.com/account/security) | `imap.mail.yahoo.com:993` TLS | `smtp.mail.yahoo.com:465` TLS |
| AOL Mail | App password | [login.aol.com/account/security](https://login.aol.com/account/security) | `imap.aol.com:993` TLS | `smtp.aol.com:465` TLS |
| iCloud Mail | App-specific password, with two-factor authentication on | [account.apple.com](https://account.apple.com/account/manage) | `imap.mail.me.com:993` TLS | `smtp.mail.me.com:587` STARTTLS |
| Fastmail | App password | [app.fastmail.com](https://app.fastmail.com/settings/security/apppasswords) | `imap.fastmail.com:993` TLS | `smtp.fastmail.com:465` TLS |
| Zoho Mail | Email password, or an app password with two-factor authentication on | [accounts.zoho.com](https://accounts.zoho.com/home#security/app_password) | `imap.zoho.com:993` TLS | `smtp.zoho.com:465` TLS |
| Yandex Mail | App password | [id.yandex.com/security/app-passwords](https://id.yandex.com/security/app-passwords) | `imap.yandex.com:993` TLS | `smtp.yandex.com:465` TLS |
| GoDaddy, Namecheap, IONOS, Hostinger, OVHcloud, Migadu, Purelymail, Rackspace, GMX | Email password | | Detected | Detected |
| Proton Mail | Forwarding only (see [Proton Mail](#proton-mail)) | | | |
| Any other host | Email password, with detected or typed settings | | Detected when the domain publishes it | Detected when the domain publishes it |

The IMAP server is used only by a mailbox that receives over IMAP. Zoho uses regional servers for accounts outside the US, such as `imap.zoho.eu` and `smtp.zoho.eu`. opendesk picks the right ones from the address and its MX records. For Gmail and Google Workspace, see [Gmail and Google Workspace](/guides/mailboxes/google/); for Outlook.com and Microsoft 365, see [Microsoft 365 and Outlook](/guides/mailboxes/microsoft/).

## App passwords by provider

**Yahoo Mail**

1. Sign in to Yahoo and open **Account security**.
2. Choose **Generate app password**, name it **opendesk** and choose **Generate password**.
3. Copy the password and paste it in opendesk.

**AOL Mail**

1. Sign in to AOL and open **Account security**.
2. Choose **Generate app password**, name it **opendesk** and choose **Generate password**.
3. Copy the password and paste it in opendesk.

**iCloud Mail**

1. Sign in at [account.apple.com](https://account.apple.com) and open **Sign-In and Security**. Two-factor authentication must be on.
2. Choose **App-Specific Passwords** and add one named **opendesk**.
3. Copy the password and paste it in opendesk. Use your iCloud address, not an alias.

**Fastmail**

1. In Fastmail, open **Settings**, **Privacy and Security**, then **Manage app passwords**.
2. Create one named **opendesk** with access to IMAP and SMTP.
3. Copy the password and paste it in opendesk.

**Zoho Mail**, when two-factor authentication is on

1. In Zoho Accounts, open **Security**, then **App Passwords**.
2. Generate one named **opendesk**.
3. Copy it and paste it in opendesk. Also check that IMAP access is on in Zoho Mail settings, under **Mail Accounts**.

**Yandex Mail**

1. Open Yandex ID, then **Security** and **App passwords**.
2. Create a password for **Mail** named **opendesk**.
3. Copy it and paste it in opendesk. Also allow IMAP in Yandex Mail settings, under **Email clients**.

## Settings found for you

For an address opendesk doesn't know by name, it looks the servers up from the domain, in this order:

1. The **MX records**, which name hosts like Google Workspace, Microsoft 365 or Zoho.
2. The domain's own **autoconfig file**, at `autoconfig.<domain>` or `<domain>/.well-known/autoconfig`.
3. **Thunderbird's provider database**, when your instance has it on (it is on for opendesk Cloud).
4. The domain's **DNS service records** (SRV) for IMAP and mail submission.

Only servers that offer TLS or STARTTLS are used. When the servers are found, the wizard suggests the password the host takes, usually **Email password**, and fills in the settings.

![Add a mailbox for help@acme.example: the servers found from the domain's autoconfig file ringed as 1, and Email password, recommended, ringed as 2](https://heykefu.com/guides/mailboxes/autoconfig-detect.webp)

When nothing is found, the wizard says so: type the SMTP settings from your host's help pages, or the IMAP and SMTP settings under **Other IMAP and SMTP** on an instance that receives over IMAP.

## Other IMAP and SMTP

On an instance that receives over IMAP, **Other IMAP and SMTP** shows every setting, filled in from what was found. Use it for your own mail server, or to change a detected setting.

![Other IMAP and SMTP for help@acme.example: the incoming mail server ringed as 1, the outgoing mail server ringed as 2, and the Connect and test button ringed as 3](https://heykefu.com/guides/mailboxes/imap-prefilled.webp)

1. **Incoming mail (IMAP)**: the server, port, security, and the username (usually the full address) and password.
2. **Outgoing mail (SMTP)**: the server, port and security. It uses the same username and password as IMAP unless you untick that and enter others.
3. **Connect and test** signs in to both servers, then saves the mailbox.

## Ports and security

| Server | Port | Security |
| --- | --- | --- |
| IMAP | 993 | TLS |
| IMAP | 143 | STARTTLS |
| SMTP | 465 | TLS |
| SMTP | 587 | STARTTLS |

Choosing a security setting fills in its usual port. If your host documents another port, type it in.

> **Warning**
>
> Security **None** sends your password unencrypted. Use it only on a private network, never over the internet.

### When port 465 does not answer

Some networks block port 465. When SMTP on 465 does not answer and the same server works on port 587 with STARTTLS, opendesk uses 587 and keeps it for the mailbox. This happens when you connect and whenever you test the connection, so you don't need to change it yourself.

## If the server refuses

Nothing is saved when a server refuses. The wizard shows the cause and the fix, with the server's own reply underneath.

| What you see | What to do |
| --- | --- |
| **Yahoo needs an app password**, and the same for AOL, iCloud, Fastmail and Yandex | Create an app password as above and use it instead of the account password. |
| **Zoho refused the password** | With two-factor authentication on, use an app password. Check that IMAP access is on in Zoho Mail. |
| **The server refused the sign-in** | Check the username, usually the full address, and the password. Some hosts need an app password, or a username other than the address. |
| **IMAP is turned off for this mailbox** | Only when the mailbox receives over IMAP. Turn IMAP on in the provider's mail settings, or ask your email admin. |
| **The server name does not exist** | Check the spelling of the IMAP and SMTP server. |
| **The server could not be reached** | Check the server and port, and that the server accepts connections from the internet. |
| **The mail port did not answer** | Use port 587 with STARTTLS instead of 465 or 25. |
| **The secure connection failed** | Match the security to the port: 465 and 993 use TLS, 587 and 143 use STARTTLS. Check that the server name matches its certificate. |
| **Encryption is required** | Use TLS on 465 or 993, or STARTTLS on 587 or 143. |
| **The server does not take a password here** | Use the provider's submission server, usually on port 587 or 465, not the MX server or port 25. |
| **The server must be a public address** | opendesk connects only to mail servers on the public internet. Use the provider's public server name. |
| **Too many sign-in attempts** | Wait 15 to 60 minutes before you try again. |

## Proton Mail

Proton Mail offers IMAP only through Proton Mail Bridge, an app on your own computer that opendesk can't reach. Connect a Proton address by [forwarding](/guides/mailboxes/forwarding/) its mail, and send replies through a [sending service](/guides/mailboxes/#send-with-a-sending-service) that has verified your domain. Forwarding is available on Proton's paid plans.

## Security

- Passwords and app passwords are encrypted at rest with AES-GCM and are never shown again after you save them.
- opendesk connects only to mail servers on the public internet.
- To revoke access, delete the app password at your provider, or change the mailbox's password.

## Related

- [Connect a mailbox](/guides/mailboxes/)
- [Gmail and Google Workspace](/guides/mailboxes/google/)
- [Forwarding](/guides/mailboxes/forwarding/)
