Can the .spamassassin/bayes_toks file be compressed/deleted?

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,354
79
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hello guys. Imunify+ is reporting one account with phishing code detected in .spamassassin/bayes_toks. By opening that fileI found parts of emails with the code that triggered the detection. Is there a way to tidy up those contents in .spamassassin/bayes_toks? Can it be deleted and will be recreated again? or if it's some kind of database can the "tables" be deleted?

Thanks in advance.
 

kdean

Well-Known Member
Oct 19, 2012
408
82
78
Orlando, FL
cPanel Access Level
Root Administrator
The bayes_ files can be deleted and they will regenerate. You will just lose any bayesian learning on what might or might not be spam based on your email history. It shows up in the spam scoring point values. Probably not a huge deal to refresh since sometime that learns the wrong things anyway.

i don't know anymore about if there's ways of viewing / editing it directly.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,597
2,617
363
cPanel Access Level
Root Administrator
Hey there! In general, those can be removed and they'll be recreated. I always prefer to temporarily rename things or move them instead of deleting, just in case it turns out you do need them, and then you can officially remove that copy after you're sure you no longer need it.
 
  • Like
Reactions: Kent Brockman