X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=99072228d69f6dcebb3594cc09b16b5525d6d082;hb=5288a721e3a838f78746bd63c4416636fdd44825;hp=eb48d6016859c3856f66301e3970a8f43c7470d0;hpb=01c484437e1c41b686f9f22f55c2f8406efdc5c3;p=mirror%2Fuserdir-ldap.git diff --git a/ud-mailgate b/ud-mailgate index eb48d60..9907222 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -251,7 +251,7 @@ def DoDNS(Str,Attrs,DnRecord): # Handle an RBL list (mailRBL, mailRHSBL, mailWhitelist) def DoRBL(Str,Attrs): - Match = re.compile('^mail(rbl|rhsbl|whitelist) ([\w.]+)$').match(string.lower(Str)) + Match = re.compile('^mail(rbl|rhsbl|whitelist) ([-a-z0-9.]+)$').match(string.lower(Str)) if Match == None: return None