X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-mailgate;fp=ud-mailgate;h=30af5831aed09c0b05ca80d9630449faf1a6407e;hp=baaf08ae8dc7906fd28aef0495f5e97a34613a40;hb=3bc2a035df1f49ad33fb46a0990292fdcf300139;hpb=8c7672a550946d7e2554381a195048ab8c8e20bc diff --git a/ud-mailgate b/ud-mailgate index baaf08a..30af583 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -372,7 +372,7 @@ def DoDNS(Str, Attrs, DnRecord): return None # Check for punycode. We ought to validate it before we allow it in our zone. - if Str.lower().startswith('xn--') and Str.lower() != 'xn--mnchen-3ya': + if Str.lower().startswith('xn--'): return "Punycode not allowed: " + Str # Check if the name is already taken