Use CIDR notation for internal connect list.

This commit is contained in:
Stuart Gathman
2006-02-12 02:12:08 +00:00
parent 04c8b2e1fc
commit 2f533c4591
+4 -3
View File
@@ -1,6 +1,9 @@
#!/usr/bin/env python
# A simple milter that has grown quite a bit.
# $Log$
# Revision 1.51 2006/02/12 01:13:58 customdesigned
# Don't check rcpt user list when signed MFROM.
#
# Revision 1.50 2006/02/09 20:39:43 customdesigned
# Use CIDR notation for trusted_relay iplist
#
@@ -677,10 +680,8 @@ class bmsMilter(Milter.Milter):
self.receiver = self.getsymval('j').strip()
if hostaddr and len(hostaddr) > 0:
ipaddr = hostaddr[0]
for pat in internal_connect:
if fnmatchcase(ipaddr,pat):
if iniplist(ipaddr,internal_connect):
self.internal_connection = True
break
if iniplist(ipaddr,trusted_relay):
self.trusted_relay = True
else: ipaddr = ''