From 30e4f136fd7df76377cb5e608e46440dc98c700a Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Sun, 7 Jan 2018 12:32:05 +0100 Subject: [PATCH] Add enableManageSieve option to open port 4190 --- default.nix | 12 ++++++++++++ mail-server/networking.nix | 1 + 2 files changed, 13 insertions(+) diff --git a/default.nix b/default.nix index 5854226..04fd9d6 100644 --- a/default.nix +++ b/default.nix @@ -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; diff --git a/mail-server/networking.nix b/mail-server/networking.nix index c224b0a..20fa34f 100644 --- a/mail-server/networking.nix +++ b/mail-server/networking.nix @@ -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; }; };