Added kresd as local nameserver so rspamd stops complaining

This commit is contained in:
Philipp Dörfler 2018-01-12 22:07:27 +00:00
parent 58896e39ec
commit bc627f180a
2 changed files with 37 additions and 0 deletions

View file

@ -334,6 +334,14 @@ in
to enable this unless you're hacking on nixos-mailserver.
'';
};
localDnsResolver = mkOption {
type = types.bool;
default = true;
description = ''
Runs a local DNS resolver (kresd) as recommended when running rspamd. This prevents your log file from filling up with rspamd_monitored_dns_mon entries.
'';
};
};
imports = [
@ -346,6 +354,7 @@ in
./mail-server/postfix.nix
./mail-server/rmilter.nix
./mail-server/nginx.nix
./mail-server/kresd.nix
];
config = lib.mkIf config.mailserver.enable {