nixos/dovecot: Allow any or no protocol

This commit is contained in:
Victor Nawothnig 2021-08-19 11:59:43 +02:00
parent 3fbb3d9091
commit 10933c5ccf

View file

@ -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));