Trying to get Spam Assassin to work. I have a fedora 5 with Virtualmin pro. Running everything as default setup. I can get email from postfix, but the headers have not been written to from Spam Assassin (with x-spam and the score).
I have restarted spamd and get the "ok" prompt. Any advise on how to troubleshoot this ?
Check the /var/log/maillog when sending an email to a mailbox on the system. See if it is being delivered to the procmail-wrapper. It’ll look something like:
Jul 25 00:21:20 www postfix/local[[19726]]: 00A31290DBD: to=<joe@ee.4.5646.static.theplanet.com>, orig_to=<joe@virtualmin.com>, relay=local, delay=22, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
The "delivered to command:" bit is the important thing to look for. Next up, on the "Edit virtual server" page for the domain in question, be sure the options labeled "Spam filtering enabled?" and "Virus filtering enabled?" are checked.
Beyond that, we’ll end up looking at the procmail log, most likely…
Oh, yeah, note also that if your users disk quota has less than 5MB free no scanning will occur–this is to protect against clam AV throwing away messages (there appears to be no failure mode in clam AV that allows detection of a disk overage condition, so it looks like a failed test).