SpamAssassin Repair Script

hostpc.com

Verified User
Joined
Aug 2, 2003
Messages
1,055
Location
Schenectady, NY
If you don't have all the dependencies met for the new DirectAdmin implementation of SpamAssassin, here's a quick script that'll get you going. This must be run as root. Instructions are for RH9/Fedora.

login as root
cd /root

Using nano, or your favorite line editor:

nano -w htmlparser.sh

cd /usr/local/directadmin/scripts
./spam.sh
wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-3.35.tar.gz
tar xvzf HTML-Parser-3.35.tar.gz
cd HTML-Parser-3.35
perl Makefile.PL
make
make install
/usr/bin/spamd -d -a -c -m 5
/sbin/service exim restart

chmod 755 htmlparser.sh
./htmlparser.sh


That should answer any dependency issues spamassassin requires, and get you running quickly.

Scripting it made it very easy for us to update 18 boxes - hope it's helpful for you.
 
Last edited:
Hi, I'm trying to repair spamassassin but I'm confused about this:

Using nano, or your favorite line editor:

nano -w htmlparser.sh

Am I supposed to copy the script into the file htmlparser.sh?

It looks like I should type the script lines at the command prompt? But if so, what is that line above all about?

Sorry for my ignorance!

Regards,

pete
 
Perhaps Joe isn't clear enough for a beginner.

What he's writing is that you should (using your favorite editor) create a file with the contents of what he put into the quote included in his post, and then mark that file as executable, and execute it.

Joe says that will repair SpamAssassin for you.

Note that Joe's post is over four years old; you may need to install a later version.

I'd think that all these years later all the prerequesites are already in place, since no one has added to this thread in all this time; I'd suggest you open a new thread and ask any specific question you have about any specific problem you're having.

Jeff
 
Back
Top