Re: Re: sendmail and procmail , spamassaign

2004-07-05 Thread Bob Proulx
Amrita Priyadarsini wrote:
 I have installed spamassassin  procmail in my system.
 However when I try to start the spamd daemon,it gives the following error..
 Insecure directory in $ENV{PATH} while running with -T switch at
 /opt/perl5/lib/5.6.1/Cwd.pm line 92.

The problem is that the PATH contains writable path elements.  That
poses a problem and the taint checking finds that and rightly refuses
to run.

 Any help in this matter is welcome..

You are almost certainly trying to start it by hand.  Instead use the
startup script provided for it.

  /etc/init.d/spamassassin start

That sets the PATH to a safe setting and does other setup.

Bob


pgpVRQROlzTUu.pgp
Description: PGP signature


Re: Re: sendmail and procmail , spamassaign

2004-07-04 Thread Amrita Priyadarsini
Hi,
I have installed spamassassin  procmail in my system.
However when I try to start the spamd daemon,it gives the following error..
Insecure directory in $ENV{PATH} while running with -T switch at
/opt/perl5/lib/5.6.1/Cwd.pm line 92.

Any help in this matter is welcome..


Warm Regards,
Amrita Priyadarsini


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: sendmail and procmail , spamassaign

2003-09-30 Thread Oliver Fuchs
On Mon, 29 Sep 2003, Vivek Kumar wrote:

 Hi ,
 
 I am using sendmail for my mails. I was told that if i want to use
 spamassassin and redirect the rejected mail to some user account (like
 spam user) I need to use procmail.
 I installed procmail but I don't understand that can i use this for
 entire domain or procmail is only good for one user as when i was trying
 to configure it, it talked about .forward file and .procmailrc file in
 the user home directory.
 What i want it to do is install spamassassin and send all the rejected
 mail to [EMAIL PROTECTED] account. (.xxx could be a noewly created
 email address).

 From /usr/share/doc/spamassassin/README you get:

[...]

4. If you already use procmail, skip to step 6.  If not, ensure procmail
is installed using which procmail or install it from www.procmail.org.

5. Create a .forward file in your HOME DIRECTORY containing the below
lines:

|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #user

6. Edit or create a .procmailrc file in your HOME DIRECTORY containing
the below lines.  If you already have a .procmailrc file, add the lines
to the top of your .procmailrc file:

:0fw
| /home/user/bin/SpamAssassin/spamassassin -P -c /home/user/bin/SpamAssassin/rules

  The above line filters all incoming mail through SpamAssassin and tags
probable spam with a unique header.  If you would prefer to have spam
blocked and saved to a file called caughtspam in your home directory
instead of passed through and tagged, append this directly below the
above lines:

:0:
* ^X-Spam-Status: Yes
caughtspam

7. Now, you should be ready to send some test emails and ensure everything
works as expected.  First, send yourself a test email that doesn't contain 
anything suspicious.  You should receive it normally, but there will be a
header containing X-Spam-Status: No.  If you are only tagging your spam,
send yourself an obvious spam mail and check to be sure it is marked as
spam.  If your test emails don't get through to you, immediately rename
your .forward file until you figure out cause of the the problem, so you
don't lose incoming email.

[...]


Oliver
-- 
... don't touch the bang bang fruit


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]