On Sat, 13 Mar 2004 22:46:03 +0200 (E. Europe Standard Time) "Sandulache 
Bogdan" <[EMAIL PROTECTED]> wrote:

> I'm using postfix and i want to use spamassassin ...i folowed all the steps
> but i still get an error and spamassassin it's not working....
> 
> 
> 
> Mar 13 22:25:31 ns postfix/pipe[30912]: 13FD025DC1B: to=<[EMAIL PROTECTED]>,
> relay=spamfilter, delay=0, status=bounced (Command died with status 1: 
> /usr/local/bin/spamfilter.sh". Command output: /usr/local/bin/spamfilter.sh:
> out.31052: Permission denied cat: write error: Broken pipe
> /usr/local/bin/spamfilter.sh: out.31052: No such file or directory )
> 
> 
> so it's about a permision ....but witch one ???

Where is out.$$ being written to (INSPECT_DIR = /var/spam)? What
permissions does INSPECT_DIR have? Does the owner of the spamfilter.sh
process have permissions to create a file in /var/spam?

> /usr/local/bin/spamfilter.sh looks like this: 
> 
> #!/bin/sh
> # spamfilter.sh by SecuritySage (http://www.securitysage.com)
> INSPECT_DIR=/var/spam
> SENDMAIL=/usr/sbin/sendmail
> SPAMASSASSIN=/usr/bin/spamc
> EX_TEMPFAIL=75
> EX_UNAVAILABLE=69
> cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }
> trap "rm -f in.$$; rm -f out.$$" 0 1 2 3 15
> cat | $SPAMASSASSIN -f > out.$$ #|| # { echo Message content rejected; exit
> $EX_UNAVAILABLE; }
> $SENDMAIL "$@" < out.$$
> exit $?

hth,

-- Bob

Reply via email to