summaryrefslogtreecommitdiff
path: root/hosts/surtr/email
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr/email')
-rw-r--r--hosts/surtr/email/default.nix9
1 files changed, 7 insertions, 2 deletions
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 {
264 264
265 services.dovecot2 = { 265 services.dovecot2 = {
266 enable = true; 266 enable = true;
267 enableImap = false;
268 sslServerCert = "/run/credentials/dovecot2.service/surtr.yggdrasil.li.pem"; 267 sslServerCert = "/run/credentials/dovecot2.service/surtr.yggdrasil.li.pem";
269 sslServerKey = "/run/credentials/dovecot2.service/surtr.yggdrasil.li.key.pem"; 268 sslServerKey = "/run/credentials/dovecot2.service/surtr.yggdrasil.li.key.pem";
270 sslCACert = toString ./ca/ca.crt; 269 sslCACert = toString ./ca/ca.crt;
271 mailLocation = "maildir:/var/lib/mail/%u/maildir:UTF-8"; 270 mailLocation = "maildir:/var/lib/mail/%u/maildir:UTF-8";
272 modules = with pkgs; [ dovecot_pigeonhole ]; 271 modules = with pkgs; [ dovecot_pigeonhole ];
273 protocols = [ "imaps" "lmtp" "sieve" ]; 272 protocols = [ "lmtp" "sieve" ];
274 extraConfig = '' 273 extraConfig = ''
275 mail_home = /var/lib/mail/%u 274 mail_home = /var/lib/mail/%u
276 275
@@ -335,6 +334,12 @@ in {
335 mail_plugins = $mail_plugins imap_quota imap_sieve 334 mail_plugins = $mail_plugins imap_quota imap_sieve
336 } 335 }
337 336
337 service imap-login {
338 inet_listener imap {
339 port = 0
340 }
341 }
342
338 service managesieve-login { 343 service managesieve-login {
339 inet_listener sieve { 344 inet_listener sieve {
340 port = 4190 345 port = 4190