Fix missing HELO log.
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ class spfMilter(Milter.Milter):
|
|||||||
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:
|
if not self.hello_name:
|
||||||
self.log('REJECT: SPF %s %i %s' % (res,code,txt))
|
self.log('REJECT: missing HELO')
|
||||||
self.setreply('550','5.7.1',"It's polite to say helo first.")
|
self.setreply('550','5.7.1',"It's polite to say helo first.")
|
||||||
return Milter.REJECT
|
return Milter.REJECT
|
||||||
self.mailfrom = f
|
self.mailfrom = f
|
||||||
|
|||||||
Reference in New Issue
Block a user