Skip to content
Start here

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.

On this page · 8 sections

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]

The settings to enter

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]

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]

Errors and what fixes them

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.
  • 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.
  • 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.

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.

Sources

Read November 26, 2026.