machines/nix/systems/aarch64-linux/mx.kaareskovgaard.net/mailserver/dmarc.nix
Kaare Hoff Skovgaard fbe957b046
Some checks failed
/ check (push) Failing after 1m22s
/ dev-shell (push) Successful in 1m55s
/ rust-packages (push) Successful in 13m34s
/ systems (push) Successful in 54m5s
/ terraform-providers (push) Successful in 13m26s
Move the setup of the mailserver around
Currently delivery of mails is broken. There's some work
to be done in accounts.nix. But once done this should (I think)
support all the use cases desired.
2025-07-31 00:04:13 +02:00

17 lines
462 B
Nix

{ config, lib, ... }:
let
cfg = config.khscodes."mx.kaareskovgaard.net";
in
{
config = {
khscodes.infrastructure.provisioning.pre.modules = [
{
khscodes.cloudflare.dns.txtRecords = lib.lists.map (domain: {
fqdn = "_dmarc.${domain}";
content = ''"v=DMARC1; p=reject; rua=mailto:postmaster@${domain}; ruf=mailto:postmaster@${domain}; adkim=s; aspf=s;"'';
ttl = 600;
}) cfg.domains;
}
];
};
}