[Pymilter] custom reply text after quarantine?
Tom Hendrikx
tom at whyscream.net
Sun Dec 23 13:11:50 EST 2012
Hi,
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?
[1] http://www.dmarc.org/pipermail/dmarc-discuss/2012-December/001552.html
--
Kind regards and happy holidays,
Tom
More information about the Pymilter
mailing list