[Pymilter] custom reply text after quarantine?
Stuart D Gathman
stuart at bmsi.com
Fri Jan 11 15:06:41 EST 2013
On 12/23/2012 01:11 PM, Tom Hendrikx expounded in part:
> based on this [1] message, I wanted to try reporting something like this
> too:
>
> self.quarantine('Message is {} according to milter'.format(result))
> self.setreply('250', '5.7.1', 'Message is quarantined')
> return Milter.ACCEPT
>
> This triggers a traceback ending in:
> File "/usr/lib/python2.7/dist-packages/Milter/__init__.py", line 374,
> in setreply
> return self._ctx.setreply(rcode,xcode,msg,*ml)
> milter.error: cannot set reply
>
> Is there any way to accomplished the above?
You cannot set a 5.7.1 extended status with a 250 status.
If you still have problems, what callback are you doing the above in?
More information about the Pymilter
mailing list