SpamAssassin data problem

IT_Architect

Verified User
Joined
Feb 27, 2006
Messages
1,080
The user's e-mail has been flakey for some time but today he could not receive inter-company e-mails from each other unless there was a CC on it to an address outside of the company. When I turned off SpamAssassin, the messages went through fine. I tell people to press the Delete Bayes Data button when they have a problem that is related to spamassassin. However, when I pressed the button, I received the following error:

"Unable to delete files
Details
Unable to get file stats on /.spamassassin/auto-whitelist
Unable to get file stats on /.spamassassin/bayes_journal
Unable to get file stats on /.spamassassin/bayes_seen
Unable to get file stats on /.spamassassin/bayes_toks"

When I do a list of that directory it shows:
auto-whitelist.mutex bayes_toks.expire47476 bayes_toks.expire74148
bayes.mutex bayes_toks.expire47506 bayes_toks.expire79003
bayes_toks.expire19361 bayes_toks.expire49054 bayes_toks.expire82763
bayes_toks.expire24522 bayes_toks.expire50187 bayes_toks.expire91395
bayes_toks.expire37812 bayes_toks.expire51730 bayes_toks.expire94144
bayes_toks.expire44124 bayes_toks.expire53214 bayes_toks.expire94990
bayes_toks.expire44269 bayes_toks.expire72132"

The file ownership and group are the user. I can see why it left behind the auto-whitelist.mutex because there is no asterisk behind the delete according to the error message but I would have expected the bayes_toks" to be gone at least, but they remained. The newest date on the files is May 13. When I look at the files for another user, it has an entirely different set of files that match the file names in the error message. I saved off the files that were in there and cleared the directory manually. Then I turned SpamAssassin back on for that user and sent some files back and forth between internal accounts and external accounts. It recreated these files:
bayes_seen
bayes_toks
user_prefs
Thus, there would still probably be an error message sometimes when people press the button because auto-whitelist and bayes_journal apparently do not necessarily get created.

Has anybody else witnessed this problem or know what causes it?

TIA
 
Unable to delete files from

Hi,
I have exactly the same problem here. Did you find out how to fix this IT_Architect?

If not, can you guys at DA help me with the problem?

Example:
In Direct Admin (logged in as a user), I click on the button that says:

"This button will remove data learned by spamassassin.
It will free up some space, but will reset any
learned progress SpamAssassin has previously made."

When I click that button it give this error:

Unable to delete files:
Unable to get file stats on /.spamassassin/auto-whitelist
Unable to get file stats on /.spamassassin/bayes_journal
Unable to get file stats on /.spamassassin/bayes_seen
Unable to get file stats on /.spamassassin/bayes_toks

Any help would be greatly appreciated.

Thanks
Rookie
 
/.spamassassin/auto-whitelist

I worked it out!
If you don't have any Data files to delete, it brings up the error because there are no files to delete :)

To make sure: I search for a user that "was using SpamAssassin" and sure enough, when I hit the delete button it cleared the files in the SpamAssassin directory as requested (then showed a list of files remaining in /home/userdirectory/.spamassassin.

Sorry, my mistake ;)
 
Back
Top