summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-18 15:33:46 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-18 15:33:46 +0100
commit4e7c5f8ebe4a12786c3e6f910f07c585640353e4 (patch)
tree832f3ed4cd9f7c1cd71add65e773b94aa27c61ed
parent5ed93877497433aa9ffe078ec6d8aaea4e80ad87 (diff)
downloadnixos-4e7c5f8ebe4a12786c3e6f910f07c585640353e4.tar
nixos-4e7c5f8ebe4a12786c3e6f910f07c585640353e4.tar.gz
nixos-4e7c5f8ebe4a12786c3e6f910f07c585640353e4.tar.bz2
nixos-4e7c5f8ebe4a12786c3e6f910f07c585640353e4.tar.xz
nixos-4e7c5f8ebe4a12786c3e6f910f07c585640353e4.zip
dovecot passwd file
-rw-r--r--ymir.nix24
1 files changed, 23 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index e73ae546..85f091ef 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -715,11 +715,33 @@ in rec {
715 enableImap = true; 715 enableImap = true;
716 enableLmtp = true; 716 enableLmtp = true;
717 enablePop3 = false; 717 enablePop3 = false;
718 enablePAM = true; 718 enablePAM = false; # do that manualy
719 sslServerCert = "/var/lib/acme/yggdrasil.li/fullchain.pem"; 719 sslServerCert = "/var/lib/acme/yggdrasil.li/fullchain.pem";
720 sslServerKey = "/var/lib/acme/yggdrasil.li/key.pem"; 720 sslServerKey = "/var/lib/acme/yggdrasil.li/key.pem";
721 mailLocation = "maildir:~/mail:LAYOUT=index:UTF-8"; 721 mailLocation = "maildir:~/mail:LAYOUT=index:UTF-8";
722 extraConfig = '' 722 extraConfig = ''
723 userdb {
724 driver = passwd
725 }
726
727 passdb {
728 driver = pam
729 args = dovecot2
730
731 return_success = continue-ok
732 }
733
734 userdb {
735 driver = passwd-file
736 args = /srv/mail/dovecot.passwd
737
738 skip = notfound
739
740 return_failure = continue
741 return_internalfail = continue
742 return_success = continue
743 }
744
723 mail_plugins = $mail_plugins quota 745 mail_plugins = $mail_plugins quota
724 mailbox_list_index = yes 746 mailbox_list_index = yes
725 postmaster_address = postmaster@yggdrasil.li 747 postmaster_address = postmaster@yggdrasil.li