Fix missing HELO log.

This commit is contained in:
Stuart Gathman
2007-03-13 21:18:28 +00:00
parent f65294b470
commit e571ccc5a5
+1 -1
View File
@@ -111,7 +111,7 @@ class spfMilter(Milter.Milter):
def envfrom(self,f,*str):
self.log("mail from",f,str)
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.")
return Milter.REJECT
self.mailfrom = f