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
218f5168
Commit
218f5168
authored
18 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Do not process valid SRS recipients as delayed_failure.
parent
ddbb8ac3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bms.py
+4
-0
4 additions, 0 deletions
bms.py
with
4 additions
and
0 deletions
bms.py
+
4
−
0
View file @
218f5168
#!/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.107 2007/04/15 01:01:13 customdesigned
# Ban ips with too many bad rcpts on a connection.
#
# Revision 1.105 2007/04/13 17:20:09 customdesigned
# Revision 1.105 2007/04/13 17:20:09 customdesigned
# Check access_file at startup. Compress rcpt to log.
# Check access_file at startup. Compress rcpt to log.
#
#
...
@@ -998,6 +1001,7 @@ class bmsMilter(Milter.Milter):
...
@@ -998,6 +1001,7 @@ class bmsMilter(Milter.Milter):
self
.
log
(
"
srs rcpt:
"
,
newaddr
)
self
.
log
(
"
srs rcpt:
"
,
newaddr
)
self
.
dspam
=
False
# verified as reply to mail we sent
self
.
dspam
=
False
# verified as reply to mail we sent
self
.
blacklist
=
False
self
.
blacklist
=
False
self
.
delayed_failure
=
False
except
:
except
:
if
not
(
self
.
internal_connection
or
self
.
trusted_relay
):
if
not
(
self
.
internal_connection
or
self
.
trusted_relay
):
if
srsre
.
match
(
oldaddr
):
if
srsre
.
match
(
oldaddr
):
...
...
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