Use Cloudflare + Resend + Gmail to build a free personal-grade business email
本文最后更新于 317 天前,其中的信息可能已经有所发展或是发生改变,如有失效可到评论区留言。
Article Abstract
Addressing the issue of sending and receiving emails with personal domain names, this solution solves the receiving problem through Cloudflare Email Routing, and achieves trusted sending by combining Resend's DKIM verification mechanism, ultimately building a free business email solution. Resend provides a free sending quota of 100 emails per day and 3,000 emails per month. Combined with Cloudflare domain name resolution and Gmail as the destination mailbox, it successfully implements email sending and receiving functions. Although domestic mailboxes show "sent on behalf of" prompts, compared to traditional solutions, it has significantly improved the delivery success rate, and the free quota can be expanded through similar services like Brevo to meet the occasional needs of individual users.
Qwen3-14B · 2026-06-18

Preface

After getting my own domain name, I always wanted an email address with my own domain suffix. At first, I even spent a huge amount of effort setting up an email server myself using my home broadband, but later I found that only some domestic free email services could receive them, while others either couldn't receive them at all or they ended up in the spam folder, so I gave up.

However, after using Cloudflare and its Email Routing feature, I successfully solved the problem of receiving emails for my custom domain suffix mailbox. But because using Gmail to send on behalf was basically useless, I gave up on sending emails again.

This time, by chance, news came that there might be a free business email to get for free, which made me excited for a while. However, after looking around, the basic education edition of Google Workspace (free) is very difficult to apply for, requiring a bunch of messy supporting materials, while other business emails cost at least $0.99/month. To be honest, it's not expensive, but I rarely send emails and just want to use it occasionally to show off. Paying for something and not using it is not my style, it's too wasteful. So I started searching again, and I actually found a free personal-grade business email solution suitable for my needs: Resend.

The final solution is Cloudflare + Resend + Gmail (the destination mailbox for my CF Email Routing).

cloudflare email routing

This is mainly to solve the problem of receiving emails with your own domain name. For detailed configuration steps, please refer to my other article:Home Data Center Series: Using Cloudflare to Create an Email Alias with Your Own Domain Suffix。

resend

This is mainly to solve the problem of sending emails with your own domain name.

Introduction

Resend is a professional and efficient email sending platform. You can think of it as a professional email sending proxy. As long as emails are sent through it, they are trusted and can directly enter the inboxes of major email service providers (simply put, Resend guarantees the sent emails; in more complex terms, Resend provides DKIM verification). This is actually the same concept as a custom domain business email (but business emails cost money, and I don't have money~).

Most importantly, Resend has a free sending quota for personal accounts:

image.png

100 emails per day, 3,000 emails per month, which is more than enough for normal personal emails. Besides, I just want to use it occasionally to show off~~, so this is the show-off tool I have been searching for so long.

Register a Resend account

Register a Resend account (https://resend.com/signup):

image.png

image.png

Add and verify your domain name

image.png

image.png

Add the corresponding records in your domain provider (in my case, CF) according to the prompts in the red box in the figure below, and then verify the domain name:
image.png

Then it is divided into 2 situations:
If your domain name was not originally configured with any email-related settings

Then simply add the 4 records directly according to the requirements in the red box in the image above. Once verified successfully, the STATUS will turn into a green "Verified", as shown below:

image.png

If your domain name was already configured with email-related settings

For example, if Cloudflare's email feature is enabled, there are the following precautions:
The priority of the MX record in the above figure is 10, which is required by Resend. If there is more than one MX record in your domain provider, such as the MX records automatically filled in by Cloudflare Email Routing:

image.png

You need to ensure that the priority of the MX records used for email routing is higher than the priority of the MX record used by Resend for verification (which is 10 in this example).
If you are already using the Cloudflare Email Routing feature, in addition to having multiple MX records, there will also be an SPF record in TXT format:

TXT example.com "v=spf1 include:_spf.mx.cloudflare.net ~all"

If you directly add the TXT record according to Resend's requirements at this time:

TXT send v=spf1 include:xxx.com ~all

You will find that it fails the verification. This is because there can only be one SPF record. If a previous one exists, the one added later is invalid. Therefore, the solution is to add Resend's ”include:xxx.com” inside the original SPF record before “~all”, instead of adding a new SPF record.
You can also temporarily disable or delete existing SPF and MX records (for example, stop Cloudflare's email routing feature first), and then change them back according to the first two precautions after verifying Resend (that's what I did, and it verified successfully in less than a minute).

Get Resend API and SMTP server address

image.png

image.png

image.png

Get and save the SMTP server address, which is the key to sending emails with our own domain name in the future:
image.png

Note: There are many knowledge points related to email. Ordinary people don't really need to pay attention to the details, but if you are not an ordinary person and are interested in details, you can refer to my previous article which took a lot of time and effort but turned out to be useless:Docker Series: Building a Mail Server Based on poste.io。

Send emails

After using Resend, there is actually no need to use Gmail to send on behalf. Even if you use Gmail to send on behalf, it is just treating Gmail as a regular email client. It's just that I haven't used an email client in a long time and am too lazy to mess around, so I will use Gmail for demonstration:

image.png

image.png

image.png

Verify the added email address:
image.png

Click the link in the mailbox to verify:
image.png

image.png

image.png

Test sending an email, select the newly added custom domain suffix email as the sender:
image.png

Send an email to my QQ mailbox. QQ mailbox is very representative; as long as it can enter the QQ mailbox inbox, other domestic mailboxes are basically not a problem:
image.png

Successfully entered the inbox:
image.png

However, don't celebrate too early:
image.png

It shows the "sent on behalf of" information, and there is that red warning below, which looks so cheap... Let me try another mailbox, like Gmail, no warning:

image.png

icloud.com mailbox has no warning:
image.png

image.png

It seems like regional discrimination. Do all domestic mailboxes have this warning? Let me try 163 mailbox:
image.png

This one also has a prompt, but no warning... It seems to depend on the security policies of different email service providers. It's normal that domestic providers don't recognize foreign sending-on-behalf services, but this "sent on behalf of" prompt really lowers the style. However, I just have to live with it. At least sending to foreign mailboxes looks very cool.

Further research on the "sent on behalf of" issue

I was already writing the summary, but I felt a bit annoyed and wanted to further research the "sent on behalf of" issue. Actually, the reason for the "sent on behalf of" issue itself is very simple: it's a DKIM (DomainKeys Identified Mail) issue. In my previous article (Docker Series: Building a Mail Server Based on poste.io), I also mentioned the concept of DKIM and how to set it up in the mail server and DNS. I won't go into details here, but if you are interested, you can search for it online.

Simply put, the email provider receiving the email will query the public key placed in the DKIM record by the owner of the sending domain via DNS, and compare it with a piece of content (digital signature) encrypted with the private key in the DKIM header of the received email (verifying the digital signature). If the verification passes, it proves that the email is not forged.


Actually, no matter what kind of sending-on-behalf it is, it can be seen in the email source code:
View original email in Gmail:

image.png

View original email in iCloud, and what is seen is not ”email.amazonses.com” shown in Gmail, but ”send.tangwudi.com”?
image.png

In QQ Mail, it can be seen directly in the body,
image.png

Why are there these two different display results? Let's analyze it using the original email content received by icloud.com:
image.png


There are many parameters in the DKIM signature. What we need here are s and d, but other parameters are also posted here for those who are interested to learn about:

- v=1Indicates the DKIM version. a=rsa-sha256Indicates the signature algorithm. d=example.comIndicates the sending domain. s=defaultIndicates the selector used for the signature. c=relaxed/relaxedIndicates the canonicalization algorithm. h=from:to:subject:date:message-idIndicates the header fields that are signed. [email protected]Indicates the signing identity. bh=The following part is the hash value of the email body. b=The following part is the signature itself.

When icloud.com receives this email sent by me, it will find 2 DKIM signatures through the original email. To prove the authenticity of this email, iCloud will verify both DKIM signatures: it performs a DNS query using the parameters after s and d. Taking the first DKIM signature as an example, it will construct a DNS query:resend._domainkey.tangwudi.com, and then it will query thetangwudi.com's domain registrar/host (Cloudflare in my case),resend._domainkey, do you still remember this record? This is one of the records added when Resend was verifying thetangwudi.comdomain. This is the DKIM record, which stores the public key generated by Resend in advance. Querying:resend._domainkeywill retrieve this public key:

image.png

Then, it uses the public key to verify the signature in the first DKIM (the string after b=). If the verification passes, the email is considered to have indeed been sent from tangwudi.com; similarly, testing the second DKIM, if it also passes verification, it can also confirm that it was indeed sent from amazonses.com.

For icloud.com (as well as Gmail and Hotmail), since it was ultimately sent by amazonses.com, if there is some kind of protocol or mutual trust policy, they will directly let the email through without any prompt:

image.png

However, for domestic mailboxes, although they will also let it through, they will display the specific return path of the email, which is the email address of the "sent on behalf of" prompt we saw earlier. In fact, this is the address used when replying to the email:

image.png

This feels like the public IP and port after NAT of a private IP address. When communicating with a web server on the internet, the web server's response packets are sent to this public IP and port. In this scenario, it means replying to the email directly using this address, and then Resend forwards the email reply to[email protected]based on the correspondence (similar to the session table in NAT), completing the sending and receiving of the email.

As for why Gmail displays ”email.amazonses.com” while others display ”send.tangwudi.com”, that's anyone's guess~.

Looking at this analysis, it seems Resend still doesn't have enough influence domestically. But then again, I didn't even know about Resend before, so it's normal that its influence is limited...

Summary

How does using Resend to send on behalf compare to using Gmail's own "send on behalf" feature? I tried Gmail's "send on behalf" before, but the success rate felt very low and it didn't seem practical, so I stopped using it. Just now, I thought something was off, so I took a close look at the process of setting up Gmail's "send on behalf" and found that it really is just a simple "send on behalf" without involving any DNS record verification. Therefore, the "send on behalf" for free Gmail users probably cannot pass the DKIM verification of their own domain (tangwudi.com in this article) like emails sent via Resend do, so they naturally get discarded or end up in the spam folder.

So for now, Cloudflare + Resend + Gmail seems to be the most affordable free personal-grade custom domain email solution: Cloudflare Email Routing + Gmail for receiving, and Cloudflare + Resend for sending (although I used Gmail's "send on behalf", I was just being lazy and using Gmail as an email client; by using Resend's SMTP server address, you can send emails with any email client). Although domestic mailboxes show a warning when receiving, at least they can land in the inbox now~~, which is much better than going straight to spam or not even making it to the spam folder at all.

But of course, wealthy people wouldn't care for this. Emails sent from real corporate mailboxes probably don't even trigger warnings in domestic mailboxes, which is the classy way. However, I looked around and couldn't find any free corporate mailboxes; the cheapest is $0.99/month (borrowed an image, please notify me to delete it if there is any infringement):

image.png

I don't have the money, so I can only look on with envy. If anyone wants to try NameCheap's corporate email for $0.99 a month, it's really not expensive!

P.S. Introduced by a netizen, I found another similar service: Brevo. It's similar to Resend but offers a free quota of 300 emails per day. If you feel Resend's 100-email daily limit is not enough, you can try this one. The configuration is not difficult; the setup and verification steps are roughly the same as Resend, so I won't repeat them. There are tutorials online, and it also supports marketing campaigns and has many features. Resend's main selling point is simplicity, so each has its advantages. It's just that the address displayed for emails sent on behalf is: ”[email protected]”, which looks a bit weird, but it can still land in the QQ Mail inbox. Everything else is the same, so choose according to your needs.

View Related Categories · 3 Matches
📌 Content Structure Prompt:
This content is part of the following knowledge map, where you can view the complete content path: Cloudflare Learning Map。
📎 Related Articles
Share this article
The blog content is original, please indicate the source when reposting! The RSS address of the blog is:https://blog.tangwudi.com/feed, welcome to subscribe; if needed, you can join theTelegram Groupto discuss questions together.

Comments

  1. Windows Chrome 140.0.0.0
    1 year ago
    2025-9-07 19:27:30

    I wonder how the blogger's current email experience is? Recently I've been wanting to switch email services. Although the original NetEase corporate email was free and okay, I just want to play around with something new 🫠

    • Owner
      Mugzx
      Macintosh Chrome 140.0.0.0
      1 year ago
      2025-9-07 19:56:08

      I'm just using Gmail, but I use Cloudflare's email routing to set it up as a custom domain email.

  2. Anonymous
    Windows Edge 139.0.0.0
    1 year ago
    2025-8-31 7:48:08

    I've used NC's corporate email; the paid version works great, but I stopped it later since I didn't have much business. By the way, the internet is meant for sharing content, but your website even restricts copying text?

    • Owner
      Anonymous
      Macintosh Chrome 139.0.0.0
      1 year ago
      2025-8-31 10:13:02

      Haha, thanks for the follow~ I completely agree that the internet is for sharing (otherwise why would I write and publish articles?), but “sharing” here leans more toward quoting, recommending, and reposting with sources. To protect the content from being copied mindlessly, and also to avoid scraping and SEO hijacking issues, I put restrictions on copying (after all, I've already seen several websites directly copy-pasting the full text of my articles).

      • Anonymous
        Tang Wudi
        Windows Edge 139.0.0.0
        1 year ago
        2025-8-31 10:38:14

        I just wanted to copy the full name of NC. As for those who are determined to copy your content, you can't prevent it anyway, but it just creates a very bad experience for users. By the way, the link in your email is also incorrect:http://192.168.10.99:50443/technology/homedatacenter12243/#comment-28076,疑似是你的服务器内网IP,并不是域名。

        • Owner
          Anonymous
          Macintosh Chrome 139.0.0.0
          1 year ago
          2025-8-31 10:48:48

          I understand how you feel~ I sometimes find it a bit inconvenient myself. I've struggled with this issue for a long time, but there is really no perfect solution that satisfies both sides. The current approach is actually a compromise.

          Regarding the intranet address, it's because my main server is at home and I usually manage it through the intranet, so the comment reply link shows the intranet IP. If I logged in and managed it using the domain name, this wouldn't happen. However, because I have an active-active architecture—managing via domain login requires closing the connection to the slave server first, and I'm too lazy to bother—fortunately, most of the time I reply directly in the comment section, so the impact is not significant.

  3. Mercury
    Windows Chrome 138.0.0.0
    1 year ago
    2025-7-12 12:36:30

    Is it impossible to remove the "sent on behalf of by xxxxx" prompt seen by the sender in domestic mailboxes?
    I've been messing around with it for hours and still couldn't get it sorted out.

    • Owner
      Mercury
      Macintosh Chrome 138.0.0.0
      1 year ago
      2025-7-12 13:34:24

      This cannot be removed. The purpose of this effort itself is just to allow emails to enter the inbox of domestic mailboxes. This "sent on behalf of by xxxx" is a security policy of domestic mailboxes themselves. Almost all emails sent by foreign sending services will have this prompt added. This is a domestic characteristic; foreign mailboxes won't have this~.

  4. p0rt3r
    Macintosh Chrome 132.0.0.0
    2 years ago
    2025-1-31 13:22:05

    Zoho's free plan supports 5 email addresses, which is quite enough, and it also supports binding your own domain.

    • Owner
      p0rt3r
      iPhone Chrome 132.0.6834.100
      2 years ago
      2025-1-31 13:26:47

      I really didn't know about this. Let me look into it. Thanks for the heads-up.

  5. skip2
    Windows Chrome 126.0.0.0
    2 years ago
    2024-6-22 15:52:12

    I used Resend's email service to support the email part of my blog comment system.

    • Owner
      skip2
      Macintosh Chrome 126.0.0.0
      2 years ago
      2024-6-22 15:54:58

      For a personal blog, the quota is completely sufficient.

      • Liuke
        Tang Wudi
        Macintosh Chrome 136.0.0.0
        2 years ago
        2025-5-13 9:58:06

        After replying to this kind of email, how does the blog interface get the content of the comment?

        • Owner
          Liuke
          iPhone Chrome 136.0.7103.91
          2 years ago
          2025-5-13 10:19:08

          I don't quite get what you mean... Sending emails this way is actually telling Resend that you are the owner of this email address domain, and then you can use Resend to send emails on your behalf. After someone replies to the email, Resend will receive it and forward it to the email address you associated in Resend. However, this has no direct connection with the comment content on the blog interface, unless the blog uses this email address to send notification emails?

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗ
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Kaomoji
Emoji
Little Dinosaur
Flower!
Previous
Next
       

👋 Welcome to “Wudi's Personal Blog”

Here, long-term exploration is mainly carried out around the following directions:

🧱 Personal Digital Infrastructure and Blog System Construction
☁️ Cloudflare and Network Architecture Practice
🧠 AI and Knowledge System Exploration
🛡️ Network Security and Access Optimization
🎵 Music and Sound Cognition
👁️ Cognitive Perspectives and Worldviews