services/mail: SPF TXT record

This commit is contained in:
kat witch 2021-04-26 15:48:53 +01:00
parent bf215c4cc1
commit 2ee5f99fb3
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,6 @@
{ config, pkgs, witch, sources, ... }:
{ config, lib, pkgs, witch, sources, ... }:
with lib;
{
imports = [ sources.nixos-mailserver.outPath ];
@ -12,6 +14,12 @@
};
};
deploy.tf.dns.records.kittywitch_spf = {
tld = "kittywit.ch.";
domain = "@";
txt.value = "v=spf1 ip4:168.119.126.111 ip6:${(head config.networking.interfaces.enp1s0.ipv6.addresses).address} -all";
};
mailserver = {
enable = true;
fqdn = "athame.kittywit.ch";