# Sending and receiving providers Choose which service carries mail, **per domain**, separately for receiving and sending. For admins who add or move domains. | | Cloudflare | Resend | Amazon SES | | --- | --- | --- | --- | | **Receiving** | Email Routing (default) | `email.received` webhook | S3 + SNS notification | | **Sending** | Cloudflare Email Sending | Resend API | SESv2 API | Your mail data stays in your own database and file storage. DNS stays on Cloudflare in every combination when Mailflare manages it. A domain can be receive-only or send-only (**Not selected**). ## Providers - [Cloudflare](provider-cloudflare.md) - [Resend](provider-resend.md) - [Amazon SES](provider-ses.md) ## Set up a provider 1. Open **Admin → Domains** and expand the domain. 2. Under **Setup receiving email** or **Setup sending email**, switch on a provider card. 3. Enter its credentials. 4. Press **Setup** in the card. 5. Wait for the green check. An amber triangle means setup is incomplete. > The switch only selects a provider. **Setup** changes DNS. You can prepare a new provider while the old one still works. ### When adding a domain **New domain** asks **Receive mail with** and **Send mail with**: Cloudflare, Resend, Amazon SES or Not selected. Only the Cloudflare choice enables Email Routing or the sending subdomain. For Resend or SES, finish on the domain page. The API fields are `receivingProvider` and `sendingProvider` ([API](api.md#domain-management)). ## Switch receiving provider Only one service can own a domain's MX records. Setup shows the existing records and asks you to confirm. > **Warning:** After you confirm, the previous service stops receiving mail for the domain. Per-address Cloudflare routes exist only for Cloudflare receiving. They are recreated if you set Cloudflare up again. ## Clean up the old provider An unselected provider that still has configuration shows **Clean up**. Each provider page lists what it removes. ## Differences from Cloudflare | Area | Resend and SES | | --- | --- | | Routing rules | Reject rules drop the message; domain forward rules do nothing. Other rules, spam filtering and webhooks work. | | Large attachments | Sent directly while the encoded message fits the admin's direct-attach limit (20 MB by default, at most 25 MB; Cloudflare itself allows 25 MiB); larger files become download cards. The admin's limit (100 MB by default) caps uploads. | | Incoming size | Over 25 MiB or the attachment limits: dropped | ## Related - [Suppression list for bounces and complaints](deliverability.md) (off by default) - [Troubleshooting](troubleshooting.md) - [API](api.md)