tomtervel.no's DNS as DNSControl, and the vel's own DKIM key on kasse
dns/dnsconfig.js is the whole zone for Cloudflare: the site, id and chat pointing at kasse unproxied, Zoho's MX, SPF for Zoho and kasse, DMARC reporting, and kasse's DKIM key once it is made. kasse-dkim-tomtervel.sh makes that key in kasse's rspamd beside the other domains'. dns/README.md has the token, the first-push check against the live zone, and the order of the move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
5 files changed
+172
No files matched your search
@@ -0,0 +1,60 @@
|
||||
// tomtervel.no, all of it, as DNSControl applies it to Cloudflare.
|
||||
//
|
||||
// cd dns
|
||||
// CLOUDFLARE_API_TOKEN=... dnscontrol preview # what would change
|
||||
// CLOUDFLARE_API_TOKEN=... dnscontrol push # change it
|
||||
//
|
||||
// This file is the whole zone: a record that is in Cloudflare and not
|
||||
// here is deleted on push. `preview` lists every deletion first, so read
|
||||
// it before every push. See dns/README.md.
|
||||
|
||||
var REG_NONE = NewRegistrar("none");
|
||||
var DSP_CLOUDFLARE = NewDnsProvider("cloudflare");
|
||||
|
||||
// kasse: Klingenberg Bygg's host, where the vel's stack runs (portal,
|
||||
// Kanidm, chat, gdo) behind kasse's own Caddy, and whose postfix sends
|
||||
// the vel's mail. Move the vel to a host of its own: change this.
|
||||
var KASSE = "195.159.177.252";
|
||||
|
||||
// kasse's rspamd signs mail From @tomtervel.no with this key (selector
|
||||
// `kasse`). It is the public half, printed by kasse-dkim-tomtervel.sh;
|
||||
// the private half stays on kasse. Empty: no record yet, and the site
|
||||
// must keep sending from klingenbergbygg.no (site.yaml `mail.from`).
|
||||
var KASSE_DKIM = "";
|
||||
|
||||
D("tomtervel.no", REG_NONE, DnsProvider(DSP_CLOUDFLARE),
|
||||
DefaultTTL(1), // Cloudflare's "auto"
|
||||
|
||||
// The site, the login and the chat. Not proxied: kasse's Caddy gets
|
||||
// the certificates itself, and the login's cookies and the chat's
|
||||
// websockets reach it as they are.
|
||||
A("@", KASSE, CF_PROXY_OFF),
|
||||
CNAME("www", "tomtervel.no.", CF_PROXY_OFF),
|
||||
A("id", KASSE, CF_PROXY_OFF),
|
||||
A("chat", KASSE, CF_PROXY_OFF),
|
||||
|
||||
// The board's inbox, post@tomtervel.no, is at Zoho.
|
||||
MX("@", 10, "mx.zoho.eu."),
|
||||
MX("@", 20, "mx2.zoho.eu."),
|
||||
MX("@", 50, "mx3.zoho.eu."),
|
||||
TXT("@", "zoho-verification=zb14986736.zmverify.zoho.eu"),
|
||||
|
||||
// Who may send as @tomtervel.no: Zoho, for the board's own mail, and
|
||||
// kasse, for the site's. One SPF record only; two break both.
|
||||
TXT("@", "v=spf1 include:zoho.eu ip4:" + KASSE + " ~all"),
|
||||
|
||||
// Reports only, to start. Tighten to p=quarantine once the reports
|
||||
// show both Zoho and kasse passing.
|
||||
TXT("_dmarc", "v=DMARC1; p=none; rua=mailto:post@tomtervel.no"),
|
||||
|
||||
// Zoho's DKIM key, as it stands today: on the zone's apex, where no
|
||||
// receiver looks for it, so mail from Zoho is unsigned in effect. Zoho
|
||||
// Mail's admin (Domains -> Email configuration -> DKIM) names its
|
||||
// selector; move it to TXT("<selector>._domainkey", ...) and drop it here.
|
||||
TXT("@", "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCA2wb0ETspWV0uV8xjxBb4s0e+Ybe7Uh1CJgboXvZmBdZyUEfduuUXwBpJD+XuIXoaE16zGzeheVxwzMy4tvLa/FQ9XDZVQOSgUUoSyta1MHi5pPjgpmhqngEQczCrBzBuK/ew+biIdwNhyEHB738mxHTDTyY013Pob1cU9EFB+wIDAQAB"),
|
||||
|
||||
// Left from before; whoever set it up may still use Search Console.
|
||||
TXT("@", "google-site-verification=ElKwNmdiHDNHHrK07rI9zWAIO979bkxbPOp1rWcG8ZY"),
|
||||
|
||||
KASSE_DKIM ? TXT("kasse._domainkey", KASSE_DKIM) : []
|
||||
);
|
||||
Reference in new issue
Block a user