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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
e84a803c
Commit
e84a803c
authored
18 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Handle missing HELO.
parent
20612240
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
spfmilter.py
+4
-0
4 additions, 0 deletions
spfmilter.py
with
4 additions
and
0 deletions
spfmilter.py
+
4
−
0
View file @
e84a803c
...
@@ -110,6 +110,10 @@ class spfMilter(Milter.Milter):
...
@@ -110,6 +110,10 @@ class spfMilter(Milter.Milter):
# of each message.
# of each message.
def
envfrom
(
self
,
f
,
*
str
):
def
envfrom
(
self
,
f
,
*
str
):
self
.
log
(
"
mail from
"
,
f
,
str
)
self
.
log
(
"
mail from
"
,
f
,
str
)
if
not
self
.
hello_name
:
self
.
log
(
'
REJECT: SPF %s %i %s
'
%
(
res
,
code
,
txt
))
self
.
setreply
(
'
550
'
,
'
5.7.1
'
,
"
It
'
s polite to say helo first.
"
)
return
Milter
.
REJECT
self
.
mailfrom
=
f
self
.
mailfrom
=
f
self
.
new_headers
=
[]
self
.
new_headers
=
[]
t
=
parse_addr
(
f
)
t
=
parse_addr
(
f
)
...
...
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