<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have written a milter that works when run from the command line
(directly). I was refactoring it to be a python-daemon compatible
daemon for this mail server, but I have hit a snag:<br>
<br>
When the daemon starts, the script loads into the daemon context and
runs; however, when it gets to
Milter.runmilter("pythonfilter",socketname,timeout), execution seems
to stop. The service is still running, and the process is alive, but
it doesn't process mail. Additionally, syslog and mail.log shows
this error, which tells me the socket is not listening /reading /
writing correctly:<br>
<br>
syslog:<br>
Jun 22 18:13:10 d8 mcdb_mailcache.py: pythonfilter: st_optionneg[0]:
xxfi_negotiate returned 1 (protocol options=0x1fffff, actions=0x1ff)<br>
<br>
mail.log:<br>
Jun 22 18:13:10 d8 postfix/smtpd[22936]: warning: milter
local:/var/run/mcdbcache/mcdb.sock: can't read SMFIC_OPTNEG reply
packet header: Success<br>
Jun 22 18:13:10 d8 postfix/smtpd[22936]: warning: milter
local:/var/run/mcdbcache/mcdb.sock: read error in initial handshake<br>
<br>
My suspicion is that it's because the socket is dead and the milter
code is not actually running.<br>
<br>
I cannot figure out where the next path in the code execution is. I
think we just hand it off to libmilter, but not sure. I am 99.9%
done with this little project, and if I can just get this thing to
run as a daemon, there will be much rejoicing.<br>
<br>
...as it is, there is only gnashing of teeth.<br>
<br>
Thanks in advance...<br>
<br>
<div class="moz-signature">-- <br>
<div>
Michael Munger, dCAP, MCPS, MCNPS, MBSS<br>
High Powered Help, Inc.<br>
Microsoft Certified Professional<br>
Microsoft Certified Small Business Specialist<br>
Digium Certified Asterisk Professional<br>
<a href="mailto:michael@highpoweredhelp.com">michael@highpoweredhelp.com</a>
</div>
</div>
</body>
</html>