mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
doveauth: fix home directory returned from lookup_passdb
It is currently unused, but better have it correct in case of enabling debugging options such as rawlogs.
This commit is contained in:
@@ -91,7 +91,7 @@ def lookup_passdb(db, config: Config, user, cleartext_password):
|
||||
VALUES (?, ?, ?)"""
|
||||
conn.execute(q, (user, encrypted_password, int(time.time())))
|
||||
return dict(
|
||||
home=f"/home/vmail/{user}",
|
||||
home=f"/home/vmail/mail/{config.mail_domain}/{user}",
|
||||
uid="vmail",
|
||||
gid="vmail",
|
||||
password=encrypted_password,
|
||||
|
||||
Reference in New Issue
Block a user