diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 19:27:24 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 19:27:24 +0200 |
| commit | cbfebbce6104ab298677765aaba3b38e0413f7f4 (patch) | |
| tree | 531e67a501794da2ca30471fd7d20d360536eb0f /hosts/surtr/email | |
| parent | 95d7e5299ca786c53bf4acc922971e793b9846a7 (diff) | |
| download | nixos-cbfebbce6104ab298677765aaba3b38e0413f7f4.tar nixos-cbfebbce6104ab298677765aaba3b38e0413f7f4.tar.gz nixos-cbfebbce6104ab298677765aaba3b38e0413f7f4.tar.bz2 nixos-cbfebbce6104ab298677765aaba3b38e0413f7f4.tar.xz nixos-cbfebbce6104ab298677765aaba3b38e0413f7f4.zip | |
...
Diffstat (limited to 'hosts/surtr/email')
| -rw-r--r-- | hosts/surtr/email/default.nix | 9 |
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 |
