From 70ea8b81cf6543ad31ce296460fc02e84e8416b0 Mon Sep 17 00:00:00 2001 From: Alberto Berti Date: Mon, 27 Mar 2023 16:28:39 +0200 Subject: [PATCH] Add configuration for the sieve extensions --- default.nix | 12 ++++++++++++ mail-server/dovecot.nix | 1 + 2 files changed, 13 insertions(+) diff --git a/default.nix b/default.nix index ef27f43..f098dc6 100644 --- a/default.nix +++ b/default.nix @@ -561,6 +561,18 @@ in ''; }; + sieveExtensions = mkOption { + type = types.listOf types.str; + default = []; + example = [ "+editheader" ]; + description = '' + Enabled extensions for the sieve interpreter. See + https://doc.dovecot.org/configuration_manual/sieve/#sieve-plugins . + For an example usage see + https://doc.dovecot.org/configuration_manual/sieve/configuring_auto_forward_sender_address/ + ''; + }; + virusScanning = mkOption { type = types.bool; default = false; diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 18a9262..7f2f9f4 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -254,6 +254,7 @@ in sieve_pipe_bin_dir = ${pipeBin}/pipe/bin + sieve_extensions = ${lib.concatStringsSep " " cfg.sieveExtensions} sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment }