LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-13-2004, 02:53 PM   #1
jeblond
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Spamassassin instalation


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



any ideeas ?
 
Old 03-13-2004, 07:59 PM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Check the permissions on your /var/spam directory.

It should be rwx for the (or any) user who runs spamassassin.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instalation narcarsiss Linux - Newbie 2 06-08-2005 09:08 AM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
XP Instalation over RH mithras Linux - Newbie 2 02-18-2004 06:57 PM
linux instalation help! Laurynas Linux - Software 3 12-26-2003 11:11 AM
Instalation help? galyun Linux - Newbie 3 11-04-2002 01:29 AM


All times are GMT -5. The time now is 12:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration