[Pymilter] milter.setreply exception

Steve Foster s.p.foster at leeds.ac.uk
Tue Mar 19 12:28:57 EDT 2013


On Tue, 19 Mar 2013, Tom Hendrikx wrote:

> 200 is no valid SMTP reply code. I serached for a rfc reference and
> found this: http://tools.ietf.org/html/rfc876
>
> To solve your problem, do:
>
> self.setreply('250','2.0.0','All OK')

Thanks for the suggestion... still doesn't work though.

Traceback (most recent call last):
   File 
"/Milter/__init__.py", 
line 759, in <lambda>
     milter.set_envrcpt_callback(lambda ctx,*str: 
ctx.getpriv().envrcpt(*str))
   File "pymilter.py", line 83, in envrcpt
     self.setreply('250','2.0.0','All OK')
   File 
"/Milter/__init__.py", 
line 438, in setreply
     return self._ctx.setreply(rcode,xcode,msg,*ml)
milter.error: cannot set reply

This feels like something more fundamental... For example I can add and 
remove headers.

Cheers

Steve

-- 
Steve Foster			Email: s.p.foster at leeds.ac.uk




More information about the Pymilter mailing list