Don't match hostnames for internal connects.

This commit is contained in:
Stuart Gathman
2005-07-02 23:27:31 +00:00
parent febf56b031
commit e2f1587832
+3 -4
View File
@@ -1,6 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env python
# A simple milter that has grown quite a bit. # A simple milter that has grown quite a bit.
# $Log$ # $Log$
# Revision 1.13 2005/07/01 16:30:24 customdesigned
# Always log trusted Received and Received-SPF headers.
#
# Revision 1.12 2005/06/20 22:35:35 customdesigned # Revision 1.12 2005/06/20 22:35:35 customdesigned
# Setreply for rejectvirus. # Setreply for rejectvirus.
# #
@@ -549,10 +552,6 @@ class bmsMilter(Milter.Milter):
else: ipaddr = '' else: ipaddr = ''
self.connectip = ipaddr self.connectip = ipaddr
self.missing_ptr = dynip(hostname,self.connectip) self.missing_ptr = dynip(hostname,self.connectip)
for pat in internal_connect:
if fnmatchcase(hostname,pat):
self.internal_connection = True
break
if self.internal_connection: if self.internal_connection:
connecttype = 'INTERNAL' connecttype = 'INTERNAL'
else: else: