mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
nixos/dovecot: Allow any or no protocol
This commit is contained in:
parent
3fbb3d9091
commit
10933c5ccf
@ -467,10 +467,6 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
assertions = [
|
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)
|
assertion = (cfg.sslServerCert == null) == (cfg.sslServerKey == null)
|
||||||
&& (cfg.sslCACert != null -> !(cfg.sslServerCert == null || cfg.sslServerKey == null));
|
&& (cfg.sslCACert != null -> !(cfg.sslServerCert == null || cfg.sslServerKey == null));
|
||||||
|
Loading…
Reference in New Issue
Block a user