From 10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe Mon Sep 17 00:00:00 2001 From: Victor Nawothnig Date: Thu, 19 Aug 2021 11:59:43 +0200 Subject: [PATCH] nixos/dovecot: Allow any or no protocol --- nixos/modules/services/mail/dovecot.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix index 1ccfb357750b..bac437c752dc 100644 --- a/nixos/modules/services/mail/dovecot.nix +++ b/nixos/modules/services/mail/dovecot.nix @@ -467,10 +467,6 @@ in ]; assertions = [ - { - assertion = intersectLists cfg.protocols [ "pop3" "imap" ] != []; - message = "dovecot needs at least one of the IMAP or POP3 listeners enabled"; - } { assertion = (cfg.sslServerCert == null) == (cfg.sslServerKey == null) && (cfg.sslCACert != null -> !(cfg.sslServerCert == null || cfg.sslServerKey == null));