At 08:39 PM 5/28/2002 -0400, Michael Stenner said:
  
>Well, if you're running Red Hat Linux, I recommend downloading and
>installing the rpm from the spamassassin page. ...
>You might want to spend some time reading about the wonders of package
>management

OK, I did.  I got the RPM and installed it on my RH (7.1) server.  And it 
failed.  The error message:

Can't locate Mail/SpamAssassin/NoMailAudit.pm in @INC (@INC contains: 
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 
/usr/lib/perl5/site_perl .) at /usr/bin/spamassassin line 89.
BEGIN failed--compilation aborted at /usr/bin/spamassassin line 89.

There is, in fact, a /usr/lib/perl5/site_perl/5.6.0 directory.  But the SA
.pm file is in /usr/lib/perl5/site_perl/5.6.1/Mail

I fixed things by going into /usr/bin/spamassassin and adding

eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
    if 0; # not running under some shell

use lib qw(/usr/lib/perl5/site_perl/5.6.1);     <---this line

use Getopt::Std;

For testing on this not-yet-in-production server, I put the following
in /etc/procmailrc:

LOGFILE=/var/log/proclog
SHELL=/bin/sh
LINEBUF=4096
VERBOSE=off
COMSAT=no
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin
FORMAIL=/usr/bin/formail

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


(I know it's better to use the spamd daemon, but this is testing, dammit! 
Besides: the docs for spamd are completely unclear on HOW to run it in the
background, and to run it automatically when the server reboots.  One thing
at a time, I guess....)

I sent a test message to a mailbox on the server; it got through, but there's
no SA header, and no procmail entries in proclog.

The server, btw, has an ensim webbapliance front end, so I copied the procmailrc
to the /etc directory of the test site and sent another test message, figuring
the virtual site doesn't read the system-wide /etc/procmailrc (though WHY that
would be, I dunno).  Result: the test message DID go through procmail -- I know
this because the mailbox ended up hosed because of the "From" reads as "rom"
procmail bug (*sigh*; is there a workaround for this, such as running the mail
through formail?).  So I went into the mailbox and looked at the message, but 
there are no SA headers on the message.  The procmail log entry is:

/home/user/bin/SpamAssassin/spamassassin: /home/user/bin/SpamAssassin/spamassassin: No 
such file or directory
procmail: Program failure (127) of "/home/user/bin/SpamAssassin/spamassassin"
procmail: Rescue of unfiltered data succeeded
 Subject: Test SA 2
  Folder: /var/spool/mail/admin                                         1144

(the spamassassin script is in /usr/bin, so I edited the procmail line to
reflect that; a similar error generated.)

I dunno what to do next.  I'd REALLY like to have SA running server-wide; I do
not want to have to install it again and again and again, once for each virtual
site on the machine.  Anyone available to hit me with a clue stick?


 + Randy Cassingham, author of THIS is TRUE * http://www.thisistrue.com +
 |     and Publisher of HeroicStories * http://www.HeroicStories.com    |
 +    FIGHT SPAM! Send blank email to [EMAIL PROTECTED] for details   +


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to