Skip to content
Snippets Groups Projects
Commit ace3e136 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Always check HELO except for SPF pass, temperror.

parent 78ea2e22
No related branches found
No related tags found
No related merge requests found
#!/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.28 2005/10/10 23:50:20 customdesigned
# Use logging module to make logging threadsafe (avoid splitting log lines)
#
# Revision 1.27 2005/10/10 20:15:33 customdesigned # Revision 1.27 2005/10/10 20:15:33 customdesigned
# Configure SPF policy via sendmail access file. # Configure SPF policy via sendmail access file.
# #
...@@ -870,7 +873,7 @@ class bmsMilter(Milter.Milter): ...@@ -870,7 +873,7 @@ class bmsMilter(Milter.Milter):
res,code,txt = q.perm_error.ext # extended (lax processing) result res,code,txt = q.perm_error.ext # extended (lax processing) result
txt = 'EXT: ' + txt txt = 'EXT: ' + txt
p = SPFPolicy(q.o) p = SPFPolicy(q.o)
if res in ('none','softfail','deny','fail','neutral'): if res not in ('pass','error','temperror'):
if self.mailfrom != '<>': if self.mailfrom != '<>':
# check hello name via spf unless spf pass # check hello name via spf unless spf pass
h = spf.query(self.connectip,'',self.hello_name,receiver=receiver) h = spf.query(self.connectip,'',self.hello_name,receiver=receiver)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment