Wombat-Email v0.9.17

Do I really have to give Cloudflare a token? It feels a bit forward.

SolvedDNSCloudflare
Started by
Gary the Garden Gnomestarted in Installing
Replies
8
Views
48
4 people
Last reply

The installer asked for a Cloudflare token. We've only just met. I usually wait until at least the third date before I share DNS records.

Helpful2Found helpful by The rDNS Ninja and Grandma Gigabyte
Solved by The rDNS Ninja’s replyIt's a token for your zones only, and only for DNS. That's how Wombat-Email writes MX, SPF, DKIM and DMARC for you and checks them every day, and how the certificates renew without an open port. You …

The solution

It's a token for your zones only, and only for DNS. That's how Wombat-Email writes MX, SPF, DKIM and DMARC for you and checks them every day, and how the certificates renew without an open port.

You can revoke it in Cloudflare any time. It's less a marriage, more a garden-shed key.

Helpful5Found helpful by IPv6 Evangelist, Sysadmin Sue, Ian the Intern and 2 others

A garden-shed key I understand. Proceeding.

Helpful3Found helpful by Possum in the Rack, Yak Shaver Supreme and Regex Rachel

Cloudflare has little to do with privacy, so I am surprised that you implemented an application so closely tied to it. Do you have any plans for an alternative solution—perhaps something like generating a text file that contains the required zone?

Helpful0

Fair question. A few things, though:

Privacy: your mail never goes anywhere near Cloudflare. It travels straight between your server and everyone else's. Cloudflare only hosts the DNS records, and DNS records are public by design: anyone can look them up, whoever hosts them.

A zone file: the panel already makes one (DNS › Zone file, per domain or all of them), and you can load it into any DNS host. The catch is that it goes stale. A mail server's DNS isn't set once: certificates renew every couple of months by publishing a record, each new domain needs its records, DKIM keys and policies change, DNSSEC has to be signed and kept signed. Do that by hand and sooner or later one record is wrong, and wrong DNS is the number one reason self-hosted mail lands in spam.

The alternative? Every registrar and DNS host has its own API, or none at all, and many don't do DNSSEC. Supporting them all means writing and testing dozens of integrations, and doing each one halfway. I'd rather do one properly.

Why Cloudflare: it's free, DNSSEC is free, it's fast everywhere, and the token can be limited to DNS on your own domains, from your own server's IP address only. Your domain stays wherever it's registered; only the nameservers point to Cloudflare.

The whole point of Wombat-Email: you run one command on your VPS, give it the token, and from then on it does the DNS work for you. It works out every record each domain needs, publishes them, checks them, and keeps them right as things change. No zone files to download and import, no records to copy into a DNS panel, nothing to remember when a certificate renews or you add a domain. You can still download your zone files any time if you want them; you just never have to.

So no plans for a zone-file-only mode for now. But I'm glad you asked: it's going in the FAQ.

And thanks for stopping by the forum here too. I noticed: miab-user over there, wombat-email-user over here. 🙂

Helpful0

Every DNS query generates statistics within Cloudflare itself, which, in a sense, helps build a profile of how your email is used. Google was also free a long time ago—something that has now become a ready-made weapon against privacy—which is why I asked about an additional backup option in another thread. So, the fact that Cloudflare is free doesn't really convince me.

regarding DNSSEC and why it’s not worth using - because I think this is your main point. DNSSEC only protects one specific link in the chain: verifying that the IP address returned by the authoritative server matches what was published. HTTPS already does the heavy lifting: Because almost all modern web traffic uses TLS (HTTPS), the browser already verifies the website's identity via SSL/TLS certificates. If a malicious actor poisons a DNS cache and redirects a user to a fake IP, the HTTPS connection will fail anyway because the attacker doesn't hold the domain's valid SSL certificate.
So why DNSSEC is Still Avoided for Email? The Fallback Problem (Opportunistic TLS): Most email servers transfer messages using "Opportunistic TLS." When Server A sends an email to Server B, it asks, "Can we encrypt this?" If a malicious actor intercepts the connection and strips out the encryption request (a downgrade attack), the mail servers usually fall back to sending the email in clear text rather than failing. DNSSEC alone cannot force the connection to stay encrypted.

Helpful0

Again, fair points - and you're right about opportunistic TLS ... on its own it can be stripped. That's exactly why Wombat-Email uses DNSSEC, though.

DNSSEC is what makes DANE possible. Wombat-Email publishes a TLSA record (DANE) for your mail server, signed with DNSSEC. A sending server that checks DANE (Postfix, Exim, Microsoft 365 and others) then must use TLS to you, and only with your server's real certificate key. Strip the encryption or swap the certificate and it refuses to deliver instead of falling back to plain text. That's the downgrade attack you describe, closed. Without DNSSEC there's no DANE, so for email it isn't optional.

For senders that don't check DANE yet (Gmail, for one), Wombat-Email also publishes MTA-STS in enforce mode, which does the same job over HTTPS. You get both.

The "profile": whoever hosts your DNS sees the lookups. With Cloudflare, your registrar's free nameservers or anyone else, those come mostly from other mail servers' resolvers. They show that someone looked up your domain, not who wrote to whom, and nothing of the mail itself. The only way to keep even that from a third party is to run your own authoritative DNS, and then that box becomes a single point of failure for all your mail.

Not locked in: your domain stays at your registrar, the token can be revoked any time, and you can download your zone files whenever you like.

Helpful0

I'll leave this topic aside for now, but I know you understand my point of view and you're fully aware that tying a mail server to a specific service provider is simply wrong. It’s like forcing your application to run on only one specific VPS provider.

Have a nice one 😉

Helpful0

Noted, and thanks for the push ... questions like yours are how the FAQ gets better.

One small thing, though ... it does run on any VPS. Cloudflare only hosts the DNS records, the domain stays wherever it's registered, and the zone files are yours to take elsewhere any time. Supporting another DNS host is a matter of time, not principle.

You too 😉

Helpful0

Reply

Sign in to reply No password: a code by email.