message marked as spam gives a razor error

General eFa discussion
doggy101
Posts: 67
Joined: 21 May 2013 20:07
Location: Netherlands

message marked as spam gives a razor error

Post by doggy101 »

When I want to mark a message as spam i get:

SpamAssassin: Mar 15 16:18:59.561 [26903] warn: reporter: razor2 report failed: No such file or directory report requires authentication at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 180. at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 330., 1 message(s) examined.
Error: N
anyone any clue?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

Hmm....this may be related to a postfix update that occurred.

Try this and report the results please

Code: Select all

mkdir /var/spool/postfix/.razor
chown postfix:postfix /var/spool/postfix/.razor
doggy101
Posts: 67
Joined: 21 May 2013 20:07
Location: Netherlands

Re: message marked as spam gives a razor error

Post by doggy101 »

when creating the dir it say's it's allready there, with the chown no error

I will test further... and post results here
doggy101
Posts: 67
Joined: 21 May 2013 20:07
Location: Netherlands

Re: message marked as spam gives a razor error

Post by doggy101 »

No Problem still there

SpamAssassin: Mar 21 11:27:29.430 [5727] warn: reporter: razor2 report failed: No such file or directory report requires authentication at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 180. at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 330., 1 message(s) examined.
Error: N
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

Let's reregister razor...

Code: Select all

sudo su postfix -s /bin/bash -c 'razor-admin -register'
doggy101
Posts: 67
Joined: 21 May 2013 20:07
Location: Netherlands

Re: message marked as spam gives a razor error

Post by doggy101 »

Nope still no luck....

bash: razor-admin: command not found
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

doggy101,

Is this a stock build of EFA or a build from scratch?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

Try both of these:

Code: Select all

su postfix -s /bin/bash -c 'razor-admin -create'
  su postfix -s /bin/bash -c 'razor-admin -register'
Antiloop
Posts: 11
Joined: 20 Mar 2014 13:03

Re: message marked as spam gives a razor error

Post by Antiloop »

I have the same error:
SpamAssassin: Mar 27 23:22:33.586 [25024] warn: reporter: razor2 report failed: No such file or directory report requires authentication at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 180. at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 330., 1 message(s) examined.
I have tried the suggestions of shawn but these do not solve the problem

btw, I'm using EFA from the ISO (the kickstart file has some errors regarding to https download and a wrong ssl cert.)
doggy101
Posts: 67
Joined: 21 May 2013 20:07
Location: Netherlands

Re: message marked as spam gives a razor error

Post by doggy101 »

shawniverson wrote:doggy101,

Is this a stock build of EFA or a build from scratch?
what do you mean by that, it's a VM which i'm using...
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

Ok. Now, out of curiosity, what is the name of the user you set up when you first powered on the VM?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

If anyone with this problem is interested, PM me. I would like to connect to your system remotely and see if I can help.
Michaelv
Posts: 16
Joined: 29 Apr 2014 14:01

Re: message marked as spam gives a razor error

Post by Michaelv »

Hi,

Also have the same problem.

Did you find out what happened to the other guy's vm?

Regards,

Michael
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

Negative. I am soliciting for remote access to a system to try to identify the problem.
knutz
Posts: 2
Joined: 06 May 2014 07:49

Re: message marked as spam gives a razor error

Post by knutz »

Hi,
I could provide access to a system that has this problem. But having just joined the forum I cannot PM you. I did send you an email.
Maybe if you PM me I will be able to respond.
Regards
Michaelv
Posts: 16
Joined: 29 Apr 2014 14:01

Re: message marked as spam gives a razor error

Post by Michaelv »

Hi,

Sent a PM to shawn for my test relay ip and credentials.

Regards,

Michael
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

Bug identified and resolved.

This fix will give Apache access to Razor credentials so that Spamassassin can submit reports....

Code: Select all

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/*
knutz
Posts: 2
Joined: 06 May 2014 07:49

Re: message marked as spam gives a razor error

Post by knutz »

The errors have gone.
Thanks!
Michaelv
Posts: 16
Joined: 29 Apr 2014 14:01

Re: message marked as spam gives a razor error

Post by Michaelv »

Yes I too concur the bug is gone.
doggy101
Posts: 67
Joined: 21 May 2013 20:07
Location: Netherlands

Re: message marked as spam gives a razor error

Post by doggy101 »

unfortunality the error is still there...

SpamAssassin: May 23 10:51:22.249 [3965] warn: reporter: razor2 report failed: No such file or directory report requires authentication at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 180. at /usr/local/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 330., 1 message(s) examined.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: message marked as spam gives a razor error

Post by shawniverson »

Was it gone for a while and then reappeared?
doggy101
Posts: 67
Joined: 21 May 2013 20:07
Location: Netherlands

Re: message marked as spam gives a razor error

Post by doggy101 »

as far as i know it has been there the whole time, today i changed the setup as described above.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: message marked as spam gives a razor error

Post by darky83 »

Added the fix to the 3.0.0.5 release
Version eFa 4.x now available!
axered
Posts: 1
Joined: 15 Sep 2014 16:03

Re: message marked as spam gives a razor error

Post by axered »

FYI, I installed the latest version 3.0.0.5 from scratch on hypervisor, XenServer 6.2, and when reported emails a Spam+Report, I got the errors from this post.

But running these commands below, that was provided on this post, did solve the problem.

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/*
Post Reply