[Pymilter] custom reply text after quarantine?

Tom Hendrikx tom at whyscream.net
Sat Jan 12 16:38:19 EST 2013


On 11-01-13 21:06, Stuart D Gathman wrote:
> 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?

I want to do this during eom()
Changing the esmtp code from 5.7.1. to 2.5.0 gives me the same error.

--
Tom



More information about the Pymilter mailing list