Spamassassin not processing mail

sitestreet

Verified User
Joined
Jan 19, 2005
Messages
40
I've installed SA using the instructions given by DA and each user can edit their preferences and everything appears to be working. However, I've added an email address in the blacklist and sent an email from that address and the mail gets through fine and there are no modifications to the subject and no x-spam details or anything vaguely spam related in the mail headers so it looks like SA is not processing it at all.

I've made the changes to exim.conf and restarted is as instructed to.

Please can someone point me in the right direction as to why this could be. We're running the latest DA.

Many thanks,

Jon
 
Thanks for your reply.

I've already done that I'm afraid. I've changed settings, left them, all sorts, and still no processing....
 
Have you checked that SpamAssassin is running?

# ps -aux

You should see something running similar to: /usr/bin/spamd -d -c -m 5


If it is indeed running then start with the simple things like checking your exim.conf for any editing mistakes, restarting spamassassin or re-installing spamassassin.




Here's a string for testing SA. (paste into the body of a message)
Code:
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
 
GXX said:
Go into the users CP and click on Spamassassin Setup. Hit 'save' and it should start processing it.

Thanks this worked for me. Now to remind my clients to do this.
 
Thanks NVarra

spamd is indeed running:

/usr/bin/spamd -d -a -c -m 5

How do I restart spamassassin?

Also, can you give me the correct settings for the exim.conf file so I can confirm there's no typos in it?

Many thanks

Jon
 
As far as the exim.conf edits go, it can't be said any better than already explained in the DA knowledgebase: http://help.directadmin.com/item.php?id=36

---

To restart spamassassin you can use the quick and dirty:
# killall spamd
# /usr/bin/spamd -d -c -m 5

or
# killall spamd
# /etc/init.d/exim restart

or
# /etc/init.d/spamassassin restart

If you don't have an init script for SA you can use or modily this RedHat9 one, (Create /etc/init.d/spamassassin & chmod 755) assuming your using some version of RedHat.
Code:
#!/bin/sh
#
# spamassassin This script starts and stops the spamd daemon
#
# chkconfig: 2345 80 30
#
# description: spamd is a daemon process which uses SpamAssassin to check
#              email messages for SPAM.  It is normally called by spamc
#              from a MDA.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# Source spamd configuration.
if [ -f /etc/sysconfig/spamassassin ] ; then
        . /etc/sysconfig/spamassassin
else
        SPAMDOPTIONS="-d -a -c -m 5"
fi

[ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0
PATH=$PATH:/usr/bin:/usr/local/bin

# See how we were called.
case "$1" in
  start)
        # Start daemon.
        echo -n "Starting spamd: "
        daemon spamd $SPAMDOPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/spamassassin
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down spamd: "
        killproc spamd
        RETVAL=$?         
        echo                
        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/spamassassin
        ;;
  restart)              
        $0 stop
        $0 start              
        ;;
  condrestart)
       [ -e /var/lock/subsys/spamassassin ] && $0 restart
       ;;
  status)
        status spamd
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|status|condrestart}"
        exit 1
esac

exit 0
 
Wonderful, thanks everyone. All working. I can't believe it but my exim.conf file had gone back to #'ing out the SA details. Then, changing it back it lost the unix formatting and exim wouldn't restart! Anyway, downloaded a great text editor which preserves the unix formatting and that did it. SA now functioning perfectly.
 
Sitestreet,

If you're using Windows to edit linux text files you should be uploading and downloading through ftp as "ascii" and NOT use the filemanager.

jeff
 
Thanks for your tips. I'm now using Editpad Lite and use SSH File Transfer (in ASCII) to upload them to the server. Until now I've always found Notepad to be OK but obviously config files are much more sensitive. Editpad is an excellent utility.

Cheers again,

Jon
 
Back
Top