#!/bin/bash
cd /etc/mail/spamassassin
cp -f KAM.cf /tmp/
# only download if it has changed
wget -N http://www.peregrinehw.com/downloads/SpamAssassin/contrib/KAM.cf
# display whats changed
diff /tmp/KAM.cf KAM.cf
echo
# make sure there are no errors
spamassassin --lint
# restart spamassassin - you may need to change this command 
#/etc/init.d/spamassassin restart