projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix domain name regex to allow - and not allow _
[mirror/userdir-ldap.git]
/
ud-mailgate
diff --git
a/ud-mailgate
b/ud-mailgate
index
eb48d60
..
9907222
100755
(executable)
--- 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):
# 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
if Match == None:
return None