diff --git a/nixos/modules/mail.nix b/nixos/modules/mail.nix index 62fe93a..1019ffc 100644 --- a/nixos/modules/mail.nix +++ b/nixos/modules/mail.nix @@ -197,8 +197,15 @@ in { "lookup.default.hostname" "certificate.*" ] # the default ones - ++ ["sieve.trusted.scripts.*"]; #for macros to be able to include our redirection script + ++ ["sieve.trusted.*"]; #for macros to be able to include our redirection script sieve.trusted.scripts.redirects.contents = "%{file:/tmp/virt_aliases}%"; # generated redirect script + sieve.trusted.from-addr = "sender"; # set the from-address to the original sender as specified in the MAIL FROM. + sieve.trusted.from-name = "sender"; + sieve.trusted.return-path = "sender"; + sieve.trusted.limits = { + redirects = 50; + out-messages = 50; + }; session.data.script = "'redirects'"; authentication.fallback-admin = {