[Pymilter] milter.error: cannot set reply

Jay Deiman jay at splitstreams.com
Thu Jun 11 12:28:27 EDT 2009


First, let me say.  This is a great piece of work that has been done. 
Thank you.

Now, on to the nasty stuff.  I'm testing pymilter 0.9.2 out with the 
following install:

FreeBSD 7.1-RELEASE-p2
postfix 2.6.0 (installed from ports)
pymilter 0.9.2 (installed from .tar.gz on sourceforge)

I'm working here with a slightly modified sample.py and have found that 
it fails when trying to use the "setreply() method.  With postfix 2.6, 
you can set the "milter_protocol" version in the config.  I've tried 
with 2, 3, 4, and the default, 6.  All fail with the same error:

=========================================
2009Jun05 14:59:46 [1] connect from localhost at ('127.0.0.1', 64265)
2009Jun05 14:59:46 [1] hello from localhost
2009Jun05 14:59:46 [1] mail from jdeiman at qwest.net ()
2009Jun05 14:59:46 [1] rcpt to jdeiman at test.com ()
2009Jun05 14:59:46 [1] REJECT: Subject: I love viagra
2009Jun05 14:59:46 [1] Subject: I love viagra
2009Jun05 14:59:46 [1] trying set reply
Traceback (most recent call last):
   File "/usr/local/lib/python2.5/site-packages/Milter/__init__.py", 
line 327, in <lambda>
     milter.set_eom_callback(lambda ctx: ctx.getpriv().eom())
   File "./sample.py", line 133, in eom
     self.setreply(self.reply[0] , self.reply[1] , self.reply[2])
   File "/usr/local/lib/python2.5/site-packages/Milter/__init__.py", 
line 135, in setreply
     return self._ctx.setreply(rcode,xcode,msg,*ml)
milter.error: cannot set reply
=========================================

self.reply is a tuple containing:
0: '550'
1: ''
2: 'Die spammer die'

I know postfix is not the first platform this was designed for, but any 
help you can provide in terms of tracking this down would be great. 
Even if you can post some things to test regarding this would be helpful.

Jay Deiman

-- 
Jay Deiman

\033:wq!



More information about the Pymilter mailing list