Merge pull request #134782 from dminuoso/dovecot-allow-any-protocol

nixos/dovecot: Allow any or no protocol
This commit is contained in:
Luke Granger-Brown 2021-08-21 03:39:15 +01:00 committed by GitHub
commit eab1226578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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