Page 1 of 1

error learning ham and releasing mails

Posted: 15 Sep 2016 19:34
by SharazJek
actually, the mails released fine, but they all gave me this error:

753CD2E025E.AFF0D ham SA Learn: config: path "/root/.spamassassin" is inaccessible: Permission denied, Learned tokens from 1 message(s) (1 message(s) examined)

Re: error learning ham and releasing mails

Posted: 16 Sep 2016 18:11
by shawniverson
Looks like sa-learn is running as (correction) non-root and doesn't have a proper home path set. You can change the permission on this file to work around.

Re: error learning ham and releasing mails

Posted: 16 Sep 2016 20:19
by SharazJek
it was the latest .ovf install.

and speaking of, is there a command that we can use to display the platform (build, ovf, vhd, etc) to help identify for troubleshooting reasons? would that ever be relevant?

Re: error learning ham and releasing mails

Posted: 16 Sep 2016 20:34
by shawniverson

Re: error learning ham and releasing mails

Posted: 16 Sep 2016 20:35
by shawniverson

Re: error learning ham and releasing mails

Posted: 16 Sep 2016 20:40
by shawniverson
SharazJek wrote:actually, the mails released fine, but they all gave me this error:

753CD2E025E.AFF0D ham SA Learn: config: path "/root/.spamassassin" is inaccessible: Permission denied, Learned tokens from 1 message(s) (1 message(s) examined)
Change this line in /var/www/html/mailscanner/conf.php

Code: Select all

define('SA_PREFS', MS_CONFIG_DIR . 'spam.assassin.prefs.conf');

Code: Select all

define('SA_PREFS', MS_CONFIG_DIR . 'spamassassin.conf);

Re: error learning ham and releasing mails

Posted: 07 Feb 2017 20:52
by xai
Hi,

sorry for pushing that thread but I do have the same issue. "SA Learn config: path "/root/.spamassassin" is inaccessible: Permission denied"
The line in /var/www/html/mailscanner/conf.php is already like @shawniverson mentioned.
Is there any other advice on how to fix that error? Should I move the folder/file to another path?
I am running version 3.0.1.8

Thanks
Xai