|
chown spam /usr/local/bin/spamfilter.sh sloved the problem....
but no my mail is looping postfix - spamassaasin then postfix again and so on....
i do not hove an antivirus or any injection script
i just want to integrate spamassassin in postfix ....
-------Original Message-------
Date: 3/13/2004 11:02:58 PM
Subject: Re: instalation problems..
There are two underlines below that indicate a cognitive dissonance
on my part. Are you really using postfix or are you really using
sendmail. Your words tell a different story than your script.
{^_^}
----- Original Message -----
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....
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 ???
/usr/local/bin/spamfilter.sh looks like this:
#!/bin/sh
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 $?
|