Also set email on dovecot DB

This commit is contained in:
Josué Tille 2023-11-29 14:47:55 +01:00
parent 6cb18329a9
commit 75ef6a5872
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -3267,7 +3267,7 @@ def regen_mail_app_user_config_for_dovecot_and_postfix(only=None):
if dovecot:
hashed_password = _hash_user_password(settings["mail_pwd"])
dovecot_passwd.append(
f"{app}:{hashed_password}::::::allow_nets=::1,127.0.0.1/24,local"
f"{app}:{hashed_password}::::::allow_nets=::1,127.0.0.1/24,local,mail={mail_user}@{mail_domain}"
)
if postfix:
mail_user = settings.get("mail_user", app)