I've done something - dunno what - to break my Postfix setup. No mail is getting through (so I may have trouble reading any replies!) and the following messages are appearing in /var/log/mail:
Feb 23 20:39:02 server postfix/qmgr[1456]: warning: connect to transport filter;: No such file or directory Feb 23 20:39:11 server popper[5855]: Stats: graham 0 0 0 0 dsl-217-155-232-206.zen.co.uk 217.155.232.206 [pop_updt.c:296] Feb 23 20:40:02 server postfix/qmgr[1456]: warning: connect to transport filter;: No such file or directory Feb 23 20:40:16 server popper[5856]: Stats: graham 0 0 0 0 dsl-217-155-232-206.zen.co.uk 217.155.232.206 [pop_updt.c:296] <<<
It's something to do with setting up Bogofilter as a spam filter. The alterations to /etc/postfix/master.cf are as follows:
smtp inet n - n - - smtpd -o content_filter=filter: . . filter unix - n n - - pipe flags=R user=filter argv=/home/filter/postfix-filter.sh -f ${sender} -- ${recipient} <<<
and /home/filter/postfix-filter.sh is a script in accordance with instructions at
http://cvs.sourceforge.net/viewcvs.py/*checkout*/bogofilter/bogofilter/doc/ integrating-with-postfix?content-type=text%2Fplain&rev=1.3
Any clues would be most welcome.
-- GT
Graham Trott gt@pobox.com writes:
Any clues would be most welcome.
I know next to nothing about Postfix, but two suggestions:
* check that the #! line on /home/filter/postfix-filter.sh is right; getting this wrong can produce 'No such file or directory' for programs that do exist.
* strace it and see what it is trying to do leading up to that 'No such file or directory' message (look for an ENOENT).
Ok, so I've been dumped this Suse computer for my project testing, only I'm having a few minor problems with it - primarily that I cant seem to get Java working on it.
Following two sets of instructions, first by using the Sun binary and seocndly using the Sun .rpm... both installations would work fine, and javac does indeed seem to compile "good" java .class files (which run on my winXP and Debian boxes fine) but if I try to run them on that box, I get continually
Exception in thread "main" java.lang.NoClassDefFoundError: meep
meep being my test class which only contains a main method... in short, I cant run any java application on this box. I have tried exporting various different enviromental variables, all of which have no effect on the error.
Thanks J
J
Ignore that... I've been informed that the problem is actually Oracle that I didnt notice sitting the background doing sick things to both Java and apache and everything else on the system.
On Monday 23 February 2004 22:02, Richard Kettlewell wrote:
Graham Trott gt@pobox.com writes:
Any clues would be most welcome.
I know next to nothing about Postfix, but two suggestions:
check that the #! line on /home/filter/postfix-filter.sh is right; getting this wrong can produce 'No such file or directory' for programs that do exist.
strace it and see what it is trying to do leading up to that 'No such file or directory' message (look for an ENOENT).
Thanks for the help. It wasn't the above but seems to have been another of those get-it-exactly-right-or-else things. In this case it appears the colon at the end of
-o content_filter=filter:
shouldn't be there. I was copying from the notes on sourceforge/bogofilter and was taking everything as gospel. It looked suspicious, but hey, who am I to know - it's all Greek or worse.
Anyway, the system now appears to be doing a good job of recognizing and tagging spam.
-- GT