From 4e7c5f8ebe4a12786c3e6f910f07c585640353e4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 18 Dec 2017 15:33:46 +0100 Subject: dovecot passwd file --- ymir.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/ymir.nix b/ymir.nix index e73ae546..85f091ef 100644 --- a/ymir.nix +++ b/ymir.nix @@ -715,11 +715,33 @@ in rec { enableImap = true; enableLmtp = true; enablePop3 = false; - enablePAM = true; + enablePAM = false; # do that manualy sslServerCert = "/var/lib/acme/yggdrasil.li/fullchain.pem"; sslServerKey = "/var/lib/acme/yggdrasil.li/key.pem"; mailLocation = "maildir:~/mail:LAYOUT=index:UTF-8"; extraConfig = '' + userdb { + driver = passwd + } + + passdb { + driver = pam + args = dovecot2 + + return_success = continue-ok + } + + userdb { + driver = passwd-file + args = /srv/mail/dovecot.passwd + + skip = notfound + + return_failure = continue + return_internalfail = continue + return_success = continue + } + mail_plugins = $mail_plugins quota mailbox_list_index = yes postmaster_address = postmaster@yggdrasil.li -- cgit v1.2.3