wk2 spam Flashcards
How might one determine if a spamassassin database is corrupted?
do a sa-learn –dump on it
/usr/local/cpanel/3rdparty/bin/sa-learn –dump
sa-learn –help to find out what other options there are
There’s also sa-compile and sa-update in there
What happens if your database is currupted?
It must be moved aside and start the learning process over
How could you force old tokens (what is a token?) to expire/
/usr/local/cpanel/3rdparty/bin/sa-learn –force-expire –dbpath /home$user/.spamassassin
Give spam assassin examples of spam
It needs 200 in order to start doing its job, point it to the mail directory like so
/usr/local/cpanel/3rdparty/bin/sa-learn –spam /path/to/maildir
Give spamassassin examples of ham
/usr/local/cpanel/3rdparty/bin/sa-learn –ham /path/to/maildir
How to reinstall spam assassin?
- remove the rpm
- remove the files
- run /scripts/check_cpanel_rpms
If spamassasin scores spam as ham then ..
It’s a “poisoned” database, remove it (it will be regenerated)
If spamasassin stuff has incorrect structure so can not be read to apply scoring
It’s “corrupted” database, remove it (it will be regenerated)
What if spamassasin times out when attempting to score?
It’s too large. You could force tokens to expire like dis
run sa-learn –force-expire /path/to/database
What about spamassassin can you manage within an individual cpanel?
black/whitelists and scoring
What about spamassassin can you manage within WHM
resource usage, miscellaneous configuration, and spamd startup configurations
spamd can be very resource-intensive. You can use the following settings to help control resource usage:
spamd Config: Max Number of Children
exim Config: Max message size