# Cloudflare SMTP in Apple Mail and Thunderbird

> Send as you@yourdomain from Apple Mail or Thunderbird through Cloudflare's SMTP server: what to set up first, the settings to enter, and a fix for each error.

Source: https://ayoh.dev/help/cloudflare-smtp-apple-mail-thunderbird (updated November 27, 2026). Part of the Ayoh user guide: https://ayoh.dev/llms.txt

## What you need first

Email Routing only brings mail in: Cloudflare says it does not support sending or replying from your domain. [1] Your forwarded mail lands in an inbox you already have, such as Gmail or iCloud, and that is the account you read in Apple Mail or Thunderbird. To answer as `you@yourdomain.com`, the app needs an outgoing (SMTP) server that may send for your domain.

Cloudflare Email Sending has one. Cloudflare describes its SMTP endpoint as a way to send from any application or off-the-shelf mail client that speaks SMTP, and the mail gets the same DKIM signing and delivery logs as the rest of Email Sending. [2] It has been in beta since June 8, 2026. [3] Before you open your mail app:

1. Onboard your domain under **Email Service** > **Email Sending** in the Cloudflare dashboard. [2]
2. Create a Cloudflare API token with the **Email Sending: Edit** permission. It is the password your mail app will use. [2]
3. Check your plan. On Workers Free, Email Sending only sends to verified destination addresses in your account; to write to anyone, you need Workers Paid. [4]

> Onboarding can change how your other mail is checked. If the domain has no DMARC record, Cloudflare adds `v=DMARC1; p=reject;`, and suggests `p=none` while another service still sends for the domain. [5] If Gmail's Send mail as or a newsletter tool also sends as your domain, look at that record first.

## The settings to enter

| Setting | Value |
| --- | --- |
| Server | `smtp.mx.cloudflare.net` [2] |
| Port | 465 [2] |
| Security | SSL/TLS from the start (implicit TLS). STARTTLS on port 587 and plain SMTP are not supported. [2] |
| Authentication | A password. Cloudflare accepts PLAIN and LOGIN, which Thunderbird calls Normal password. [2] [8] |
| User name | The words `api_token`, exactly as written [2] |
| Password | Your Cloudflare API token with **Email Sending: Edit** [2] |

Outgoing server:

```
Server:    smtp.mx.cloudflare.net
Port:      465 (SSL/TLS)
User name: api_token
Password:  your Cloudflare API token
```

Treat the token like a password: anyone holding it can send from every domain onboarded on that account. [2]

## Apple Mail on a Mac

1. In Mail, choose **Mail** > **Settings**, click **Accounts** and select the account your forwarded mail arrives in. [6]
2. In **Account Information**, open the **Email Address** pop-up menu, choose **Edit Email Addresses** and add `you@yourdomain.com` as an alias. [6]
3. Click **Server Settings**, open the outgoing **Account** pop-up menu and choose **Edit SMTP Server List**. Add a server and give it a description such as Cloudflare. [7]
4. Enter the host name, user name and password from the table. Deselect **Automatically manage connection settings**, then set the port to 465 and turn on **Use TLS/SSL**. [7]
5. Click **OK**, choose the new server for the account, then click **Save**. [7] [9]
6. Write a message, pick your address in the **From** pop-up menu (aliases appear there), and send it to yourself to test. [6] [10]

> In Apple Mail the outgoing server belongs to the account, not to each address: once you choose Cloudflare's server, all messages you send from that account use it. [10] Cloudflare refuses a From address on a domain that isn't onboarded, so mail sent as `you@gmail.com` through that account fails with 550 5.7.1. [2] Use an account you send from only as your domain, or switch the server back first.

## Thunderbird

Thunderbird sets the outgoing server per identity, so your Gmail address can keep Gmail's server while your domain address uses Cloudflare's. [8]

1. Open **Account Settings**. In the **Outgoing Server** list at the bottom of the left side, add a server. [8]
2. Enter the **Server Name** and **Port** from the table, set **Connection security** to **SSL/TLS**, **Authentication method** to **Normal password**, and **User Name** to `api_token`. [8]
3. Select the account your forwarded mail arrives in and click **Manage Identities…**, then add an identity. [8]
4. On its **Settings** tab, fill in **Your Name** and **Email Address** (`you@yourdomain.com`), and choose the Cloudflare server as its outgoing server instead of **Use Default Server**. [8]
5. On the **Copies & Folders** tab, pick the Sent folder under **Place a copy in** so your replies are kept. [8]
6. Pick the identity in **From** and send yourself a test. Thunderbird has no password box for an outgoing server, so it asks the first time you send: paste the API token. [8]

> Using a catch-all? The identity setting **Reply from this identity when delivery headers match** takes the addresses to match, such as `*@yourdomain.com`, so replies to any address on your domain leave from the right identity. [8] How the catch-all itself works: [Cloudflare catch-all email](https://ayoh.dev/help/cloudflare-catch-all-email).

## Errors and what fixes them

| What you see | What to do |
| --- | --- |
| The app can't connect, or a TLS or certificate error | Use port 465 with SSL/TLS. STARTTLS on 587 is not supported. [2] In Apple Mail, turn off **Automatically manage connection settings** so you can set the port yourself. [7] |
| 535 5.7.8 Authentication failed | The user name must be `api_token`, with the token as the password. The token needs **Email Sending: Edit** and must not be revoked or expired. [2] |
| 550 5.7.1 Sender denied | The From address is on a domain that isn't onboarded for Email Sending in the account that owns the token. In Apple Mail, check you didn't send as another address through this server. [2] [10] |
| 550 5.7.1 for the person you wrote to, or 554 5.7.1 | On Workers Free, Cloudflare only sends to verified destination addresses, and refuses the whole message if any recipient isn't one. Verify the address or move to Workers Paid. [2] |
| 451 4.7.1 | You hit the sending rate or the daily limit. New accounts start with a small daily quota that grows over time. Try again later. [2] [11] |
| 452 4.5.3 Too many recipients | One message can have at most 50 recipients. Split the list. [2] |
| 552 5.3.4 Message too big | The message, attachments included, is over 25 MiB once encoded. Send a link instead. [2] |
| It sent, but nothing arrived | The recipient may be on your suppression list. Check **Email sending logs** in the dashboard, where suppressed mail shows as Rejected. [2] |

## Before you rely on it

- **It is a beta built for apps.** Cloudflare presents SMTP as a way to send transactional email, such as alerts and order confirmations, from software that already speaks SMTP. [3]
- **Replies count as sent mail.** Workers Paid includes 3,000 emails a month per account, then $0.35 per 1,000. Mail to your own verified destination addresses is free on every plan. [4]
- **It signs as your domain.** The DKIM key sits at `cf-bounce._domainkey.yourdomain.com`, so DMARC lines up without a Google include. [5] More on the records in [SPF, DKIM and DMARC on Cloudflare](https://ayoh.dev/help/cloudflare-spf-dkim-dmarc).
- **Using Gmail on the web instead?** The same server works with Send mail as, until Google ends it for other addresses in January 2027: [Gmail Send mail as with Cloudflare Email Routing](https://ayoh.dev/help/cloudflare-email-routing-gmail-send-as).
- **Answering as a team?** Several people sending as one `team@` or `support@` address, and keeping replies threaded: [Reply from a shared team@ address on Cloudflare](https://ayoh.dev/help/cloudflare-shared-email-address).

## One inbox instead of three settings screens

This setup reads your mail in one service and sends it through another, with a token typed into each app. Ayoh puts both halves in your own Cloudflare account: Email Routing receives, Email Sending replies, and Ayoh publishes the SPF and DKIM records, so every reply leaves signed as your domain from the same inbox, on the web and on your phone. Nothing to Ayoh; Cloudflare's Workers Paid plan is $5 a month. Setup is in [Getting started](https://ayoh.dev/help/getting-started).

## Sources

Read November 26, 2026.

- [1] Cloudflare, [Postmaster](https://developers.cloudflare.com/email-service/reference/postmaster/): Email Routing does not support sending or replying from your domain.
- [2] Cloudflare, [SMTP](https://developers.cloudflare.com/email-service/api/send-emails/smtp/), updated November 24, 2026: server, port, security, sign-in, limits, response codes and troubleshooting.
- [3] Cloudflare changelog, [Authenticated SMTP submission now available in beta](https://developers.cloudflare.com/changelog/post/2026-06-08-smtp-submission/), June 8, 2026.
- [4] Cloudflare, [Email Service pricing](https://developers.cloudflare.com/email-service/platform/pricing/): verified destinations on Workers Free, 3,000 included emails and $0.35 per 1,000 on Workers Paid.
- [5] Cloudflare, [Domain configuration](https://developers.cloudflare.com/email-service/configuration/domains/): the sending DKIM record and the `p=reject` DMARC record added at onboarding.
- [6] Apple, [Change Account Information settings in Mail on Mac](https://support.apple.com/guide/mail/cpmlprefacctinfo/mac): email aliases and the From pop-up menu.
- [7] Apple, [Change Outgoing server settings in Mail on Mac](https://support.apple.com/guide/mail/cpmlprefsmtpserver/mac): the SMTP server list, port and TLS/SSL.
- [8] Mozilla, Thunderbird's own English settings labels in its [source code](https://github.com/mozilla/releases-comm-central/tree/master/mail/locales/en-US): identities, outgoing servers, connection security, authentication and copies. Mozilla's help site refused automated reads that day.
- [9] Apple, [Change Server Settings in Mail on Mac](https://support.apple.com/guide/mail/cpmlprefacctadv/mac): choosing an account's outgoing server and saving.
- [10] Apple, [Verify an email account's outgoing server in Mail on Mac](https://support.apple.com/guide/mail/mlhlp1106/mac): testing by sending yourself a message, and all messages from an account using its chosen server.
- [11] Cloudflare, [Limits](https://developers.cloudflare.com/email-service/platform/limits/), updated November 24, 2026: daily sending limits for new accounts.
