[Pymilter] milter.setreply exception

Tom Hendrikx tom at whyscream.net
Tue Mar 19 12:21:44 EDT 2013


On 03/19/2013 04:16 PM, Steve Foster wrote:
> Hi Folks,
> 
> I've hit the following error:
> 
> 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('200','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
> 
> I've followed the FAQ and increased the timeouts but that hasn't
> resolved the issue. Any Suggestions?
> 

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')

--
Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://gathman.org/pipermail/pymilter/attachments/20130319/9a990ebe/attachment.sig>


More information about the Pymilter mailing list