From cbfebbce6104ab298677765aaba3b38e0413f7f4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 May 2022 19:27:24 +0200 Subject: ... --- hosts/surtr/email/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'hosts/surtr') diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix index f8710ad3..46457210 100644 --- a/hosts/surtr/email/default.nix +++ b/hosts/surtr/email/default.nix @@ -264,13 +264,12 @@ in { services.dovecot2 = { enable = true; - enableImap = false; sslServerCert = "/run/credentials/dovecot2.service/surtr.yggdrasil.li.pem"; sslServerKey = "/run/credentials/dovecot2.service/surtr.yggdrasil.li.key.pem"; sslCACert = toString ./ca/ca.crt; mailLocation = "maildir:/var/lib/mail/%u/maildir:UTF-8"; modules = with pkgs; [ dovecot_pigeonhole ]; - protocols = [ "imaps" "lmtp" "sieve" ]; + protocols = [ "lmtp" "sieve" ]; extraConfig = '' mail_home = /var/lib/mail/%u @@ -335,6 +334,12 @@ in { mail_plugins = $mail_plugins imap_quota imap_sieve } + service imap-login { + inet_listener imap { + port = 0 + } + } + service managesieve-login { inet_listener sieve { port = 4190 -- cgit v1.2.3