reset spamassassin: delete some files & have them recreate?

jawz101

Member
May 16, 2007
5
0
151
I've read some places that a quick way to reset your spamassassin is go to the ./spamassassin folder & delete these files to have them recreate, disable & reenable spamassassin
Renamed the training files to have them recreate
Bayes_toks
Bayes_seen
Auto-whitelist
Bayes_journal

does that sound ok to do?

when doing so it doesn't seem to recreate the bayes_journal file
 
Last edited:

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
Houston, TX
cPanel Access Level
Root Administrator
This is safe

It is safe to remove the files you mentioned. If there is any doubt, you can move them to a different location instead of deleting them, so that you can move them back, but this should not cause any problem.

bayes_journal is a file that keeps track of additions to the bayes_token.db file, so it may not be created immediately.

Do you want to reset the SpamAssassin settings server-wide, or only for a specific account at a time?
 

jawz101

Member
May 16, 2007
5
0
151
I have just renamed them & they were recreated
We're on a hosted server so I'm just one of the clients- I only have access to our company's cpanel & ftp site.

Are you talking about resetting it for each email account for our site or our whole domain? Didn't know if it was possible per email account
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
Houston, TX
cPanel Access Level
Root Administrator
I was speaking from the perspective of the server administrator, resetting the settings for all cPanel accounts on the server, or for only specific cPanel accounts. Since you are only the cPanel account user, so you would not be able to reset the settings for the entire server. The SpamAssassin settings apply to the entire cPanel account, not to individual e-mail addresses. I apologize for any confusion I may have caused.