diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py index 980e5f2..dfde630 100644 --- a/Mailman/Gui/General.py +++ b/Mailman/Gui/General.py @@ -559,6 +559,14 @@ mlist.info. or not isinstance(val, IntType)): doc.addError(_("""admin_member_chunksize attribute not changed! It must be an integer > 0.""")) + elif property == 'host_name': + try: + Utils.ValidateEmail('user@' + val) + except Errors.EmailAddressError: + doc.addError(_("""host_name attribute not changed! + It must be a valid domain name.""")) + else: + GUIBase._setValue(self, mlist, property, val, doc) else: GUIBase._setValue(self, mlist, property, val, doc) diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 9dbd0b5..fd6ac79 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -1019,6 +1019,7 @@ _badwords = [ '