diff --git a/hosts/by-name/servo/services/email/dovecot.nix b/hosts/by-name/servo/services/email/dovecot.nix index 9401cc34..0bddc89c 100644 --- a/hosts/by-name/servo/services/email/dovecot.nix +++ b/hosts/by-name/servo/services/email/dovecot.nix @@ -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: + 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";