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.
17 lines
462 B
Nix
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;
|
|
}
|
|
];
|
|
};
|
|
}
|