Mailing List Archive

instalation problems..
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=<jeblond@mmc.ro>,
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
# 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 $?
Re: instalation problems.. [ In reply to ]
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 -----
From: "Sandulache Bogdan" <je@mmc.ro>
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=<jeblond@mmc.ro>,
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
# 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 $?
Re: instalation problems.. [ In reply to ]
i am using postfix....

the problem is with this command from spamfilter.sh:

cat | $SPAMASSASSIN -f > out.$$ #|| # { echo Message content rejected; exit
$EX_UNAVAILABLE; }

when i try to run it as user postfix it give's me permision dennied



From: jdow
Date: 3/13/2004 11:02:58 PM
To: spamassassin-users@incubator.apache.org
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 -----
From: "Sandulache Bogdan" <je@mmc.ro>
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=<jeblond@mmc.ro>,
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
# 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 $?
Re: instalation problems.. [ In reply to ]
On Sat, Mar 13, 2004 at 12:56:35PM -0800, jdow wrote:
> 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.

Well, postfix has a sendmail command, as it attempts to give an easy
migration from sendmail. So ... :)

--
Randomly Generated Tagline:
quit When the quit statement is read, the bc processor
is terminated, regardless of where the quit state-
ment is found. For example, "if (0 == 1) quit"
will cause bc to terminate.
(Seen in the manpage for "bc". Note the "if" statement's logic)
Re: instalation problems.. [ In reply to ]
On Sat, 13 Mar 2004 22:46:03 +0200 (E. Europe Standard Time) "Sandulache Bogdan" <je@mmc.ro> 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=<jeblond@mmc.ro>,
> 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
Re: instalation problems.. [ In reply to ]
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-------

From: jdow
Date: 3/13/2004 11:02:58 PM
To: spamassassin-users@incubator.apache.org
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 -----
From: "Sandulache Bogdan" <je@mmc.ro>
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=<jeblond@mmc.ro>,
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
# 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 $?
RE: instalation problems.. [ In reply to ]
try using postfix's content_filter option
perhaps that works better :-)

--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the
hackerscene
-----Oorspronkelijk bericht-----
Van: Sandulache Bogdan [mailto:je@mmc.ro]
Verzonden: zondag 14 maart 2004 13:31
Aan: spamassassin-users@incubator.apache.org
Onderwerp: Re: instalation problems..



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-------

From: jdow
Date: 3/13/2004 11:02:58 PM
To: spamassassin-users@incubator.apache.org
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 -----
From: "Sandulache Bogdan" <je@mmc.ro>
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=<jeblond@mmc.ro>,
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
# 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 $?