americanintel
Verified User
Just thought I'd post this since it worked for me. Upgraded spamassassin from 2.55 to 2.63.
su to root
#cd /usr/local/directadmin/scripts/
#cp spam.sh spam.sh.bak
#rm spam.sh
#pico spam.sh
paste the following into your new spam.sh file (make sure you put the whole url for the 2.63 file in the spam.sh file as it gets truncated here in the forum)
then...
#chmod 700 spam.sh
#chown diradmin:diradmin spam.sh
#./spam.sh
Spamassassin didn't seem to restart for me with the command in the spam.sh file.... I didn't check real hard but my first test email still showed it being filtered by 2.55 so I gave it a:
# /etc/rc.d/init.d/spamassassin restart
which worked just fine.
Sent a test email and voila!
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on
server.mydomain.net
X-Spam-Level:
X-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,HTML_60_70,HTML_MESSAGE
autolearn=no version=2.63
If you see anything wrong with this let me know and I will update but it worked fine for me.
su to root
#cd /usr/local/directadmin/scripts/
#cp spam.sh spam.sh.bak
#rm spam.sh
#pico spam.sh
paste the following into your new spam.sh file (make sure you put the whole url for the 2.63 file in the spam.sh file as it gets truncated here in the forum)
#############
#!/bin/sh
#Installs Spam Assassin 2.63
FILE="/usr/local/directadmin/scripts/Mail-SpamAssassin-2.63.tar.gz";
wget http://www.spamassassin.org/released/Mail-SpamAssassin-2.63.tar.gz
if [ ! -e ${FILE} ]
then
echo "Cannot find ${FILE} !! Make sure it exists.";
exit -1;
fi
tar xzf ${FILE} -C /usr/local/directadmin/scripts/packages
chown -R root:root /usr/local/directadmin/scripts/packages/Mail-SpamAssassin-2.63
cd /usr/local/directadmin/scripts/packages/Mail-SpamAssassin-2.63
export LANG=C
/usr/bin/perl Makefile.PL
make
make install
exit 0;
##################
service spamassassin restart
then...
#chmod 700 spam.sh
#chown diradmin:diradmin spam.sh
#./spam.sh
Spamassassin didn't seem to restart for me with the command in the spam.sh file.... I didn't check real hard but my first test email still showed it being filtered by 2.55 so I gave it a:
# /etc/rc.d/init.d/spamassassin restart
which worked just fine.
Sent a test email and voila!
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on
server.mydomain.net
X-Spam-Level:
X-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,HTML_60_70,HTML_MESSAGE
autolearn=no version=2.63
If you see anything wrong with this let me know and I will update but it worked fine for me.
Last edited: