Page 1 of 1

Learn+Report - Razor2 Error (Resolved?)

Posted: 15 Mar 2016 19:42
by skoppes
Running EFA 3.0.0.8 - downloaded as a pre-compiled Hyper-V VM

We were having an issue, and it looked like a repeat of the following:

viewtopic.php?t=531

When attempting to 'Learn + Report' on a message, it was throwing the following error:

Code: Select all

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.
I tried the fixes listed in the previous thread, but had no luck. I also couldn't get some of the commands to run. After much tinkering (*nix / BSD don't always win against me!) I modified the commands to the following, which were able to run successfully:

Code: Select all

sudo su postfix -s /bin/bash -c '/usr/local/bin/razor-admin -create'
sudo su postfix -s /bin/bash -c '/usr/local/bin/razor-admin -register'

sudo ln -s /var/spool/postfix/.razor /var/www/.razor
sudo chown -R postfix:apache /var/spool/postfix/.razor
sudo chmod ug+rwx /var/spool/postfix/.razor
sudo chmod ug+rw /var/spool/postfix/.razor/*
It kept throwing errors after this, even after restarting postfix, so I thought it was a bust. I just tested again when I started typing this and it seems to be working finally. I don't know what the actual problem was, but it appears to be working now.

I think the first two were the trick, because I had tried the link-fix and permissions before, with no success.

Technology - it's wonderful stuff when it works right!

Re: Learn+Report - Razor2 Error (Resolved?)

Posted: 17 Mar 2016 22:50
by shawniverson

Re: Learn+Report - Razor2 Error (Resolved?)

Posted: 05 Oct 2017 20:30
by Pukkeltje
Yes, yes, after trying a lot of other things, this finally did help!
I also have a hyper-v iso.