Fix sieve configuration after update to 24.05
This commit is contained in:
parent
6dd2f190aa
commit
94eff34531
1 changed files with 8 additions and 4 deletions
|
|
@ -34,6 +34,14 @@ lib.mkIf cfg.enable {
|
|||
};
|
||||
|
||||
sieve = {
|
||||
globalExtensions = [
|
||||
"fileinto"
|
||||
"vnd.dovecot.pipe"
|
||||
];
|
||||
plugins = [
|
||||
"sieve_imapsieve"
|
||||
"sieve_extprograms"
|
||||
];
|
||||
scripts = {
|
||||
before = pkgs.writeText "spam.sieve" ''
|
||||
require "fileinto";
|
||||
|
|
@ -102,8 +110,6 @@ lib.mkIf cfg.enable {
|
|||
lda_mailbox_autocreate = yes
|
||||
|
||||
plugin {
|
||||
sieve_plugins = sieve_imapsieve sieve_extprograms
|
||||
|
||||
${lib.optionalString cfg.spam.enable ''
|
||||
imapsieve_mailbox1_name = Spam
|
||||
imapsieve_mailbox1_causes = COPY
|
||||
|
|
@ -115,8 +121,6 @@ lib.mkIf cfg.enable {
|
|||
imapsieve_mailbox2_before = file:/var/lib/dovecot/sieve/learn-ham.sieve
|
||||
sieve_pipe_bin_dir = ${pkgs.symlinkJoin { name = "sieve-pipe-bin-dir"; paths = with pkgs; [ rspamd ]; } }/bin
|
||||
''}
|
||||
|
||||
sieve_global_extensions = +vnd.dovecot.pipe
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue