Learn+Report - Razor2 Error (Resolved?)

Report bugs and workarounds
Post Reply
Posts: 33
Joined: 26 Aug 2015 19:29

Learn+Report - Razor2 Error (Resolved?)

Post by skoppes » 15 Mar 2016 19:42

Running EFA - downloaded as a pre-compiled Hyper-V VM

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


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!

User avatar
Posts: 3104
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA

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

Post by shawniverson » 17 Mar 2016 22:50

Version eFa 4.0.2 now available!

Posts: 6
Joined: 08 Sep 2016 08:32

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

Post by Pukkeltje » 05 Oct 2017 20:30

Yes, yes, after trying a lot of other things, this finally did help!
I also have a hyper-v iso.

Post Reply