sa-learn problem

Report bugs and workarounds
Post Reply
kaliha
Posts: 4
Joined: 26 Feb 2016 09:38

sa-learn problem

Post by kaliha »

Hello. I've install efa from ISO and KS script, and try to train SA i have error:
SA Learn: config: path "/root/.spamassassin" is inaccessible: Permission denied, Learned tokens from 1 message(s) (1 message(s) examined)
There is no error in error_log httpd. Here is root folder list:
dr-xr-x---. 8 root root 4096 лют 26 08:48 .
dr-xr-xr-x. 23 root root 4096 лют 26 04:12 ..
-rw------- 1 root root 1125 лют 26 10:03 .bash_history
-rw-r--r--. 1 root root 18 тра 20 2009 .bash_logout
-rw-r--r--. 1 root root 176 тра 20 2009 .bash_profile
-rw-r--r-- 1 root root 176 лют 25 15:52 .bashrc
drwx------ 3 root root 4096 лют 26 08:48 .cache
drwx------ 3 root root 4096 лют 25 15:55 .config
-rw-r--r--. 1 root root 100 вер 23 2004 .cshrc
drwx------ 3 root root 4096 лют 26 10:21 .mc
drwxr----- 3 root root 4096 лют 25 15:54 .pki
-rw------- 1 root root 1024 лют 25 15:52 .rnd
drwx------ 2 root root 4096 лют 25 17:04 .spamassassin
drwx------ 2 root root 4096 лют 25 16:41 .ssh
-rw-r--r--. 1 root root 129 гру 3 2004 .tcshrc

I've try to search right config options to move this folder to /var/spool/MailScanner, but nothing found.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: sa-learn problem

Post by shawniverson »

Are you running sa-learn as postfix?
kaliha
Posts: 4
Joined: 26 Feb 2016 09:38

Re: sa-learn problem

Post by kaliha »

Yes, I'm use default settings from installation. Can you please specify where is this folder might be and which permission needed?
kaliha
Posts: 4
Joined: 26 Feb 2016 09:38

Re: sa-learn problem

Post by kaliha »

When i use cli tool sa-learn all ok, but when i use web interface message was learned again, maybe there is different database for EFA and cli tool?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: sa-learn problem

Post by shawniverson »

Not sure why it is looking in /root...

You can simply change the owner/group of /root/.spamassassin to postfix:apache and try again.
kaliha
Posts: 4
Joined: 26 Feb 2016 09:38

Re: sa-learn problem

Post by kaliha »

Hello. I've created folder, set owner to postfix:apache and it's not help for me. I've still got an error SA Learn: config: path "/root/.spamassassin" is inaccessible: Permission denied

UPD:
SpamAssassin: бер 18 09:27:20.606 [32623] warn: config: path "/root/.spamassassin" is inaccessible: Permission denied, бер 18 09:27:23.496 [32623] warn: reporter: razor2 report failed: No such file or directory report requires authentication at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 177. at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 330., 1 message(s) examined. Receive this when try to learn as Spam + report.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: sa-learn problem

Post by shawniverson »

Try updating to 3.0.0.9 and see if this is resolved in the new SA.
Post Reply