Add enableManageSieve option to open port 4190

This commit is contained in:
Andrey Golovizin 2018-01-07 12:32:05 +01:00
parent cd9e790f21
commit 30e4f136fd
2 changed files with 13 additions and 0 deletions

View file

@ -280,6 +280,18 @@ in
'';
};
enableManageSieve = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable ManageSieve, setting this option to true will open
port 4190 in the firewall.
The ManageSieve protocol allows users to manage their Sieve scripts on
a remote server with a supported client, including Thunderbird.
'';
};
virusScanning = mkOption {
type = types.bool;
default = false;

View file

@ -28,6 +28,7 @@ in
++ lib.optional enableImapSsl 993
++ lib.optional enablePop3 110
++ lib.optional enablePop3Ssl 995
++ lib.optional enableManageSieve 4190
++ lib.optional (certificateScheme == 3) 80;
};
};