wk2 spam Flashcards

1
Q

How might one determine if a spamassassin database is corrupted?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What happens if your database is currupted?

A

It must be moved aside and start the learning process over

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How could you force old tokens (what is a token?) to expire/

A

/usr/local/cpanel/3rdparty/bin/sa-learn –force-expire –dbpath /home$user/.spamassassin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give spam assassin examples of spam

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give spamassassin examples of ham

A

/usr/local/cpanel/3rdparty/bin/sa-learn –ham /path/to/maildir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to reinstall spam assassin?

A
  1. remove the rpm
  2. remove the files
  3. run /scripts/check_cpanel_rpms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If spamassasin scores spam as ham then ..

A

It’s a “poisoned” database, remove it (it will be regenerated)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If spamasassin stuff has incorrect structure so can not be read to apply scoring

A

It’s “corrupted” database, remove it (it will be regenerated)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What if spamassasin times out when attempting to score?

A

It’s too large. You could force tokens to expire like dis

run sa-learn –force-expire /path/to/database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What about spamassassin can you manage within an individual cpanel?

A

black/whitelists and scoring

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What about spamassassin can you manage within WHM

A

resource usage, miscellaneous configuration, and spamd startup configurations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

spamd can be very resource-intensive. You can use the following settings to help control resource usage:

A

spamd Config: Max Number of Children

exim Config: Max message size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly