|We often get this question, and the number of causes can be many, so there are several things to check.|
1) The first thing to check is to see if the messages are being scanned at all. The way to do that is to check your message headers. In the headers will be spam scoring which will let you know if it's being scanned or not. This is a sample set of spamassassin headers in a sample spam email. Note that even non-spam will have the same header names, they'll just have different values.
2) If you are seeing those headers then SpamAssassin is in fact working, but perhaps just not catching everything you'd like. There are ways to make it catch more. One is to lower your scoring threshold. In the above example, a limit of 5.0 is used, but you can lower it if you're finding spam is being scored lower. Another way is to run the command:
sa-update --nogpgevery week or so, to update the SA rules. Another method is to customize the rules in your user_prefs files in order to give some common aspects a higher scoring (see the SpamAssassin docs for this). Lastly, you can create an teaching folder to help SA learn what is and is not spam.
3) If your emails are not being scanned at all, the first things to check:
- Ensure you have /home/username/.spamassassin/user_prefs present or your emails will not be scanned.
- Check your /etc/exim.conf. Ensure your spamcheck_director section is uncommented as per step 3 of this guide.
- Note that emails larger than 100k (by default) will not be scanned, pending on what your spamcheck_director settings are. You can increase this size if needed.
- Ensure that spamd is running:
ps ax | grep spamd
- Check your /var/log/exim/mainlog, /var/log/exim/paniclog and /var/log/maillog for any spamd related errors.
|Spamassassin : Can't locate HTML/Parser.pm in @INC|
|Can't locate ExtUtils/MakeMaker.pm in @INC|
|SpamAssassin: spamd: Can't locate version.pm in @INC|
|Email to my server is bouncing: An error was detected while processing a file of BSMTP input, 421 Lost incoming connection|
|Can't locate LWP/UserAgent.pm in @INC|
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST