From 303c783384b4214b614a7aa65f22c781237220a6 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 18 May 2022 13:53:19 +0200 Subject: [PATCH] Fixing class MailConfiguration in module pp_admintools.mail_config --- lib/pp_admintools/mail_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pp_admintools/mail_config.py b/lib/pp_admintools/mail_config.py index c006ae8..f55d17b 100644 --- a/lib/pp_admintools/mail_config.py +++ b/lib/pp_admintools/mail_config.py @@ -75,7 +75,7 @@ class MailConfiguration(BaseMultiConfig): default_domain = DEFAULT_DOMAIN else: default_domain = default_domain.strip() - if default_domain == '': + if not MailAddress.re_valid_domain.match(default_domain): default_domain = DEFAULT_DOMAIN current_user_name = pwd.getpwuid(os.getuid()).pw_name -- 2.39.5