Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
2f533c45
Commit
2f533c45
authored
19 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Use CIDR notation for internal connect list.
parent
04c8b2e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bms.py
+5
-4
5 additions, 4 deletions
bms.py
with
5 additions
and
4 deletions
bms.py
+
5
−
4
View file @
2f533c45
#!/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.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
# Revision 1.50 2006/02/09 20:39:43 customdesigned
# Use CIDR notation for trusted_relay iplist
# Use CIDR notation for trusted_relay iplist
#
#
...
@@ -677,10 +680,8 @@ class bmsMilter(Milter.Milter):
...
@@ -677,10 +680,8 @@ class bmsMilter(Milter.Milter):
self
.
receiver
=
self
.
getsymval
(
'
j
'
).
strip
()
self
.
receiver
=
self
.
getsymval
(
'
j
'
).
strip
()
if
hostaddr
and
len
(
hostaddr
)
>
0
:
if
hostaddr
and
len
(
hostaddr
)
>
0
:
ipaddr
=
hostaddr
[
0
]
ipaddr
=
hostaddr
[
0
]
for
pat
in
internal_connect
:
if
iniplist
(
ipaddr
,
internal_connect
):
if
fnmatchcase
(
ipaddr
,
pat
):
self
.
internal_connection
=
True
self
.
internal_connection
=
True
break
if
iniplist
(
ipaddr
,
trusted_relay
):
if
iniplist
(
ipaddr
,
trusted_relay
):
self
.
trusted_relay
=
True
self
.
trusted_relay
=
True
else
:
ipaddr
=
''
else
:
ipaddr
=
''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment