summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorVictor Nawothnig <dminuoso+git@icloud.com>2021-08-19 11:59:43 +0200
committerVictor Nawothnig <dminuoso+git@icloud.com>2021-08-19 11:59:43 +0200
commit10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe (patch)
tree411ed7000528b68bd74231550e3a010bf491d487 /nixos
parent3fbb3d909196317505607d3929077a3d061cee0b (diff)
nixos/dovecot: Allow any or no protocol
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/mail/dovecot.nix4
1 files changed, 0 insertions, 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
@@ -468,10 +468,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));
message = "dovecot needs both sslServerCert and sslServerKey defined for working crypto";