From 5288a721e3a838f78746bd63c4416636fdd44825 Mon Sep 17 00:00:00 2001 From: rmurray <> Date: Thu, 28 Dec 2006 21:09:15 +0000 Subject: [PATCH] fix domain name regex to allow - and not allow _ --- ud-mailgate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1