Compare commits

...

2 commits

Author SHA1 Message Date
Alberto
82360fd69d Merge branch 'sieve-extensions' into 'master'
Add configuration for the sieve extensions

See merge request simple-nixos-mailserver/nixos-mailserver!294
2024-02-03 12:50:12 +00:00
Alberto Berti
70ea8b81cf Add configuration for the sieve extensions 2023-05-14 07:21:28 +00:00
2 changed files with 13 additions and 0 deletions

View file

@ -743,6 +743,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;

View file

@ -326,6 +326,7 @@ in
sieve_pipe_bin_dir = ${pipeBin}/pipe/bin
sieve_extensions = ${lib.concatStringsSep " " cfg.sieveExtensions}
sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
}