servo: dovecot: fix broken sieve

This commit is contained in:
Colin 2024-01-16 06:28:25 +00:00
parent d7a2bf9d26
commit 7d504892be

View File

@ -127,9 +127,15 @@
services.dovecot2.modules = [
pkgs.dovecot_pigeonhole # enables sieve execution (?)
];
services.dovecot2.sieveScripts = {
services.dovecot2.sieve = {
# maybe not all of these are needed. source: <https://github.com/NixOS/nixpkgs/pull/275031#issuecomment-1891052685>
plugins = [ "sieve_imapsieve" "sieve_extprograms" ];
extensions = [ "fileinto" ];
globalExtensions = [ "+vnd.dovecot.pipe" "+vnd.dovecot.environment" ];
# if any messages fail to pass (or lack) DKIM, move them to Junk
# XXX the key name ("after") is only used to order sieve execution/ordering
};
services.dovecot2.sieveScripts = {
after = builtins.toFile "ensuredkim.sieve" ''
require "fileinto";