return proper home dir from userdb

This commit is contained in:
Sebastian Hugentobler 2024-02-18 11:57:05 +01:00
parent 09cf75eccb
commit 659e14a87d
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
4 changed files with 15 additions and 14 deletions

View file

@ -36,7 +36,7 @@ function auth_userdb_lookup(req)
end
if userJson[1].username == req.username then
return dovecot.auth.USERDB_RESULT_OK, "uid=vmail gid=vmail home=/var/lib/vmail/mail/%n"
return dovecot.auth.USERDB_RESULT_OK, "uid=vmail gid=vmail home=/var/lib/vmail/mail/" .. req.username
end
return dovecot.auth.USERDB_RESULT_USER_UNKNOWN, "no such user"