rspam needs SYS_ADMIN to use DynamicUser
This commit is contained in:
parent
1730fc8bd5
commit
39482d7ee1
|
@ -2,6 +2,8 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.fudo.mail.dovecot;
|
||||
|
||||
sievePath = let
|
||||
isRegularFile = _: type: type == "regular";
|
||||
sieves = filter isRegularFile (builtins.readDir ./sieves);
|
||||
|
|
|
@ -342,6 +342,7 @@ in {
|
|||
];
|
||||
user = mkUserMap "mailserver-antivirus";
|
||||
volumes = [ "${cfg.state-directory}/antivirus:/state" ];
|
||||
capabilities.SYS_ADMIN = true;
|
||||
};
|
||||
nixos = {
|
||||
useSystemd = true;
|
||||
|
|
10
rspamd.nix
10
rspamd.nix
|
@ -63,11 +63,11 @@ in {
|
|||
}
|
||||
'';
|
||||
|
||||
"rbl.conf".text = ''
|
||||
rbls {
|
||||
an_rbl
|
||||
}
|
||||
'';
|
||||
# "rbl.conf".text = ''
|
||||
# rbls {
|
||||
# an_rbl
|
||||
# }
|
||||
# '';
|
||||
};
|
||||
|
||||
overrides."milter_headers.conf".text = "extended_spam_headers = true;";
|
||||
|
|
Loading…
Reference in New Issue