Hi everybody,

today some customers complained that they couldn't send mails.
Apparently pythonfilter crashed and after that no mails were send
anymore.
This is what the log says:
---
Jan 11 10:35:48 linde courierfilter: Stopping pythonfilter
Jan 11 10:35:51 linde courierfilter: Uncaught exception in
"auto_whitelist" doFilter function: exceptions.IOError:[Errno 2] No
such file or directory:
'/var/lib/courier/tmp/120001/1200015345.25260.linde.xxt.ne.jp' Jan 11
10:35:51 linde courierfilter: File
"/etc/courier/filters/active/pythonfilter", line 194, in processMessage
Jan 11 10:35:51 linde courierfilter: replyCode = i_filter[1](bodyFile,
controlFileList) Jan 11 10:35:51 linde courierfilter: File
"/usr/lib/python2.4/site-packages/pythonfilter/auto_whitelist.py", line
94, in doFilter Jan 11 10:35:51 linde courierfilter: if
_checkWhitelist(controlFileList): Jan 11 10:35:51 linde courierfilter:
File "/usr/lib/python2.4/site-packages/pythonfilter/auto_whitelist.py",
line 63, in _checkWhitelist Jan 11 10:35:51 linde courierfilter: sender
= courier.control.getSender(controlFileList).lower() Jan 11 10:35:51
linde courierfilter: File
"/usr/lib/python2.4/site-packages/courier/control.py", line 83, in
getSender Jan 11 10:35:51 linde courierfilter: senderLines =
getLines(controlFileList, 's', 1) Jan 11 10:35:51 linde courierfilter:
File "/usr/lib/python2.4/site-packages/courier/control.py", line 39, in
getLines Jan 11 10:35:51 linde courierfilter: cfo = open(cf) Jan 11
10:35:51 linde courierfilter: Uncaught exception in "greylist" doFilter
function: exceptions.IOError:[Errno 2] No such file or directory:
'/var/lib/courier/tmp/120001/1200015345.25260.linde.xxx.ne.jp' Jan 11
10:35:51 linde courierfilter: File
"/etc/courier/filters/active/pythonfilter", line 194, in processMessage
Jan 11 10:35:51 linde courierfilter: replyCode = i_filter[1](bodyFile,
controlFileList) Jan 11 10:35:51 linde courierfilter: File
"/usr/lib/python2.4/site-packages/pythonfilter/greylist.py", line 104,
in doFilter Jan 11 10:35:51 linde courierfilter: sendersIP =
courier.control.getSendersIP(controlFileList) Jan 11 10:35:51 linde
courierfilter: File
"/usr/lib/python2.4/site-packages/courier/control.py", line 70, in
getSendersIP Jan 11 10:35:51 linde courierfilter: sender =
getSendersMta(controlFileList) Jan 11 10:35:51 linde courierfilter:
File "/usr/lib/python2.4/site-packages/courier/control.py", line 59, in
getSendersMta Jan 11 10:35:51 linde courierfilter: senderLines =
getLines(controlFileList, 'f', 1) Jan 11 10:35:51 linde courierfilter:
File "/usr/lib/python2.4/site-packages/courier/control.py", line 39, in
getLines Jan 11 10:35:51 linde courierfilter: cfo = open(cf) Jan 11
10:35:51 linde courierfilter: Unhandled exception in thread started by
<function processMessage at 0xb7852294> Jan 11 10:35:51 linde
courierfilter: Traceback (most recent call last): Jan 11 10:35:51 linde
courierfilter: File "/etc/courier/filters/active/pythonfilter", line
211, in processMessage Jan 11 10:35:51 linde courierfilter:
activeSocket.send(replyCode) Jan 11 10:35:51 linde courierfilter:
socket.error: (32, 'Broken pipe')

----
Apparently one tmp file was not found...

man courierfilter says that "crashed filters won't be restarted".

If that's the case how do I get a filter restarted - I tried "filterctl
stop pythonfilter" and then start again. "courierfilter stop" and start.

As the initialization period of the pythonfilter (with clamav and
spamassassin module) is 2-3 seconds I noticed straight away that the
pythonfilter was not being initialized anymore.

Is there a single condition which ensures that courierfilter is at
least trying to run a particular filter? 
(I noticed that file /var/lib/courier/allfilters/pythonfilter must
exist).

Besides that I'm worried that esmtp sending stopped (mail was till
received). Is that a known "feature"? And if so is there a way to check
automatically that the server is still working?

Any help is appreciated.
Thanks!

Bernd

-- 
プラゲ ベェアント - Bernd Plagge
ファースト・チョイス・インターネット(有)
First Choice Internet Ltd., Tokyo
Tel. 03-4500-7799
Fax. 03-4400-3723
mail: [EMAIL PROTECTED]
url: http://www.choicenet.ne.jp

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to