mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-01-27 05:19:05 +01:00
Compare commits
3 commits
82360fd69d
...
29e35512cf
Author | SHA1 | Date | |
---|---|---|---|
|
29e35512cf | ||
|
572c1b4d69 | ||
|
70ea8b81cf |
3 changed files with 14 additions and 9 deletions
12
default.nix
12
default.nix
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ in
|
|||
inherit debug;
|
||||
locals = {
|
||||
"milter_headers.conf" = { text = ''
|
||||
extended_spam_headers = yes;
|
||||
extended_spam_headers = true;
|
||||
''; };
|
||||
"redis.conf" = { text = ''
|
||||
servers = "${cfg.redis.address}:${toString cfg.redis.port}";
|
||||
|
@ -69,14 +69,6 @@ in
|
|||
''; };
|
||||
};
|
||||
|
||||
overrides = {
|
||||
"milter_headers.conf" = {
|
||||
text = ''
|
||||
extended_spam_headers = true;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
workers.rspamd_proxy = {
|
||||
type = "rspamd_proxy";
|
||||
bindSockets = [{
|
||||
|
|
Loading…
Reference in a new issue