mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-02-05 09:45:15 +01:00
Add configuration for the sieve extensions
This commit is contained in:
parent
c04e4f22da
commit
70ea8b81cf
2 changed files with 13 additions and 0 deletions
12
default.nix
12
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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue