sa-learn wrong path

Report bugs and workarounds
Post Reply
ThierryIT
Posts: 6
Joined: 14 Mar 2016 06:19

sa-learn wrong path

Post by ThierryIT »

Hi,

It might be a bug.
When clicking on the link to declare a spam from the bottom email's signature, I add an error message:

Couldn't find sa-learn blabla ....

You can check on line 99 of "/var/www/cgi-bin/learn-msg.cgi" the "sa-learn" path is wrong, it should be /usr/bin/sa-learn instead of /usr/local/bin ....

Thx

using v3.0.9
User avatar
crazy4leet
Posts: 9
Joined: 23 Oct 2015 10:20

Re: sa-learn wrong path

Post by crazy4leet »

I also have this issue since upgrading to 3.0.0.9 from 3.0.0.8

I modified the cgi script but it doesn't seem to process or atleast forward to the successful submission page.

I just get a page with /var/spool/MailScanner/quarantine/date/nonspam/MAILID

If I perform a manual refresh then i get redirected to /learned.html
kastenkopf
Posts: 4
Joined: 07 Apr 2016 07:26

Re: sa-learn wrong path

Post by kastenkopf »

Hi Team,
I also have this issue since upgrading to 3.0.0.9 from 3.0.0.8
This Bug is a great problem. It is very importent to manage spam by the users himself.


this is the error-notice:

/var/spool/MailScanner/quarantine/20160406/nonspam/62ED1120D52.AFBF6
Software error:

Cannot open /usr/local/bin/sa-learn --spam: No such file or directory at /var/www/cgi-bin/learn-msg.cgi line 99.
For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.
User avatar
pdwalker
Posts: 1583
Joined: 18 Mar 2015 09:16

Re: sa-learn wrong path

Post by pdwalker »

Strange

learn-msg.cgi looks for sa-learn in /usr/local/bin.

My sa-learn is in /usr/bin and not in /usr/local/bin but I do not get his error message.
pcook
Posts: 3
Joined: 27 Apr 2016 08:33

Re: sa-learn wrong path

Post by pcook »

Morning all.

Have installed the VM and configured it this week and I too see this error message whenever anyone clicks on the links in the email.

Any thoughts on how to correct it?
pcook
Posts: 3
Joined: 27 Apr 2016 08:33

Re: sa-learn wrong path

Post by pcook »

I've modified my learn-msg.cgi to point at /usr/bin/sa-learn and that seems to work fine.
Stuart
Posts: 12
Joined: 28 Apr 2016 00:56

Re: sa-learn wrong path

Post by Stuart »

Confirmed the bug. Confirmed working after making the change.
Post Reply