config: validate domains when formatting them

This commit is contained in:
missytake
2026-04-16 14:31:52 +02:00
committed by holger krekel
parent 7d800140a6
commit 2bbe1641a8
4 changed files with 61 additions and 2 deletions

View File

@@ -297,7 +297,7 @@ def gencreds(chatmail_config):
password = "".join(
random.choices(alphanumeric, k=chatmail_config.password_min_length)
)
yield f"{user}@{addr_domain}", f"{password}"
yield f"{user}@{domain}", f"{password}"
return lambda domain=None: next(gen(domain))