跳到正文
DEV Community· Mayank chopra·· 36 分鐘前AI 評分53

作者改用 cloudmail 管理多個項目的網域電郵,停止逐席付費

Every side project needs an email address. I stopped paying per seat for them.

AI 導讀

作者 Mayank chopra 建立並使用 cloudmail,將多個網域的電郵信箱部署在自己的 Cloudflare 帳戶,授權費為單一網域 $9 或不限網域 $29 一次支付。

正文

I ship a lot of small products. Each one gets a domain, and within a week each one needs email: hello@ on the landing page, support@ in the footer, billing@ for the payment provider, and a sender address for receipts.

The domain is the cheap part. The mailbox is where it gets annoying.

What I tried

A paid workspace for every project. Google Workspace Business Starter is $7 per user per month on the annual plan ($8.40 monthly). One seat per project adds up before any of them earns money.

One workspace with extra domains. Workspace lets you add a domain as a user alias domain at no extra cost, up to 20 of them. Every user then gets an address at both domains, with the same name before the @. That covers me@project-two.com. A separate support@ that a second person can open is another paid user or a group to configure. A domain added as a secondary domain needs its own paid users.

Forwarding to my personal inbox. Free, and it receives fine. Then I reply to a customer from my personal address, or from the wrong project's address, and it looks careless.

None of this is hard. It is upkeep that grows with every project: another admin console, another bill, another set of filters.

What I run now

I built cloudmail, a webmail app that deploys into my own Cloudflare account. One deployment serves every domain I add to it.

Three domains, one deployment, one list of all inboxes

Add a domain

cloudmail domain add project-two.com --catch-all hello@project-two.com
cloudmail domain provision project-two.com --yes
cloudmail domain verify project-two.com

provision turns on Cloudflare Email Routing for the zone, points the catch-all at the Worker and sets up sending. It leaves a catch-all rule you already have alone unless you tell it to overwrite. verify reports pass, warn or fail for each DNS record. The same steps are in the app under Settings → Domains.

Settings → Domains with three domains ready to receive and send

Catch-all first, mailboxes later

On day one a project gets one mailbox and a catch-all. Mail to any address on the domain lands there, so support@, billing@ and whatever I typed into a signup form all work without setup.

When a project grows, I create real mailboxes and give people roles on them. Mailboxes, aliases and users are not counted or billed.

One inbox for the same job across projects

A mailbox can take aliases on other domains:

cloudmail mailbox aliases set support@project-one.com \
  support@project-two.com support@project-three.com

A reply defaults to the address the customer wrote to, so someone who emailed support@project-two.com gets an answer from that address.

The right name and signature per project

Each domain gets a product: a display name, accent colour, logo, default signature and reply tone. When I change the From address in the composer, the signature changes with it. This is what stopped me from signing a reply with the wrong project's name.

One list

All inboxes shows conversations from every mailbox I can read, newest first, with a badge for the product. In a terminal it is cloudmail mail list --all. One request covers up to 20 mailboxes, and a product filter reaches the rest.

What it costs

cloudmail's licence is paid once: $9 for one domain, $29 for unlimited domains. Each licence covers one deployment with unlimited mailboxes and users. The code is open source under Apache-2.0.

Cloudflare bills your account directly. The usual setup is the Workers Paid plan at $5 a month for the whole account. It includes 3,000 sent emails a month, then $0.35 per 1,000. Receiving has no per-message fee.

Email for 10 people over three years: $2,520 per seat, $209 with cloudmail

The chart is for 10 people over three years, at US list prices in November 2026:

  • Per-seat plan: 10 users × $7 × 36 months = $2,520.
  • cloudmail: $29 once + $5 × 36 months = $209.

Two things to keep this fair. Workspace Business Starter also includes Calendar, Docs, Drive and Meet, and cloudmail is email only. And for one person the gap is small: $84 a year for one Workspace seat, against $60 a year to Cloudflare plus the licence. The difference comes from seats and separate mailboxes, so it grows with every person and project you add.

On the Workers Free plan it partly works. Receiving works. Sending through Cloudflare only reaches your own verified addresses, so you would send through your own Resend or Amazon SES account. That can be enough for one person with light mail.

What you give up

  • No calendar, documents, drive or video calls. If you need those, keep a workspace for them.
  • No IMAP or SMTP. Apple Mail, Outlook and Thunderbird cannot connect. You use the web app, which installs on a phone with push notifications.
  • Your domain must use Cloudflare DNS.
  • It runs on Cloudflare only. You can export every mailbox as .mbox, but you cannot move the app to another host.
  • It is not for cold outreach. New Cloudflare Email Service accounts start with a low daily sending quota.
  • You run it. Updates and backups are yours to do. The mail sits in your Cloudflare account and never passes through my servers.

Who this suits

People with several domains and a small team, who want real addresses on each without counting seats. If you have one domain and already live in Google Docs and Calendar, a workspace is the simpler choice.

Code and docs: github.com/cloudmail-hq/cloudmail

Disclosure: I build cloudmail. This post was written with AI. The prices and commands were checked against their sources: Google Workspace Business editions, Workspace alias and secondary domains and Cloudflare Email Service pricing.

來源:DEV Community · dev.to