move from real users to passwd file

This commit is contained in:
Robin Raymond 2017-12-22 16:08:42 +01:00
parent 4fc8a1ed05
commit 2d0648e0f4
4 changed files with 16 additions and 14 deletions

View file

@ -16,7 +16,7 @@
{ config, pkgs, lib, ... }:
with (import ./common.nix { inherit config; });
with (import ./common.nix { inherit config lib; });
let
cfg = config.mailserver;
@ -31,6 +31,7 @@ in
enable = true;
enableImap = enableImap;
enablePop3 = enablePop3;
enablePAM = false;
mailGroup = vmailGroupName;
mailUser = vmailUserName;
mailLocation = dovecot_maildir;
@ -74,6 +75,11 @@ in
mail_plugins = $mail_plugins sieve
}
passdb {
driver = passwd-file
args = ${passwdFile}
}
service auth {
unix_listener /var/lib/postfix/queue/private/auth {
mode = 0660