nixos-config/config/services/rspamd.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

{ config, ... }: {
services.rspamd = {
enable = true;
locals."dkim_signing.conf".text = ''
domain {
darkkirb.de {
selector = "dkim";
path = "${config.sops.secrets."services/rspamd/dkim/darkkirb.de".path}";
}
miifox.net {
selector = "dkim";
path = "${config.sops.secrets."services/rspamd/dkim/miifox.net".path}";
}
chir.rs {
selector = "dkim";
path = "${config.sops.secrets."services/rspamd/dkim/chir.rs".path}";
}
}
allow_hdrfrom_mismatch = true;
allow_hdrfrom_mismatch_sign_networks = true;
allow_username_mismatch = true;
use_domain = "header";
sign_authenticated = true;
use_esld = true;
'';
2022-04-27 10:30:34 +00:00
workers = {
normal = {
includes = [ "$CONFDIR/worker-normal.inc" ];
bindSockets = [ "[::1]:11332" ];
};
};
};
sops.secrets."services/rspamd/dkim/darkkirb.de" = { owner = "rspamd"; };
sops.secrets."services/rspamd/dkim/miifox.net" = { owner = "rspamd"; };
sops.secrets."services/rspamd/dkim/chir.rs" = { owner = "rspamd"; };
}