2022-04-21 07:47:22 +00:00
|
|
|
{ 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" ];
|
2022-04-28 11:23:41 +00:00
|
|
|
bindSockets = [ "*:11332" ];
|
2022-04-27 10:30:34 +00:00
|
|
|
};
|
2022-04-27 10:37:49 +00:00
|
|
|
controller = {
|
|
|
|
includes = [ "$CONFDIR/worker-controller.inc" ];
|
2022-04-28 11:23:41 +00:00
|
|
|
bindSockets = [ "*:11334" ];
|
2022-04-27 10:37:49 +00:00
|
|
|
};
|
2022-04-27 10:30:34 +00:00
|
|
|
};
|
2022-04-21 07:47:22 +00:00
|
|
|
};
|
|
|
|
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"; };
|
|
|
|
}
|