Razor2 / Spamassassin

Hi! I'm having a small problem with Razor. This is showing up in my logs:

spamd[5569]: razor2: razor2 check failed: No such file or directory razor2: Can't read conf file: /etc/mail/spamassassin/.razor/razor-agent.conf at /usr/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 326.

The razor-agent.conf file exists here:
/etc/spamassassin/.razor/razor-agent.conf

I'm not sure why it's checking in /etc/mail/spamassassin instead of /etc/spamassassin. How do I fix this? Or should I simply copy the file?
LVL 21
Julian MatzTechnical SupportAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

VenabiliCommented:
Check /etc/mail/spamassassin/local.cf (or /etc/spamassassin/local.cf in case this is where it is) and see how this line looks like:
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf

If you have the mail there - remove it and try again (restarting spamd of course before this)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Julian MatzTechnical SupportAuthor Commented:
I'll give that a try, thanks. I'll let you know how I get on.
Julian MatzTechnical SupportAuthor Commented:
Yup, I had:

razor_config /etc/mail/spamassassin/.razor/razor-agent.conf

That was incorrect. But I also had to change the following in /etc/spamassassin/.razor/razor-agent.conf from:

razorhome              = /etc/mail/spamassassin/.razor/

to:

razorhome              = /etc/spamassassin/.razor/
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

VenabiliCommented:
So both were wrong? This installation had gone strange - if both were wrong, probably it was installed in the other folder and manually moved. Or something had gone wrong.  

Anyway - good to hear that you are back up and running. I would grep for
/etc/mail/spamassassin/.razor
in all folders under /etc/spamassassin and make sure you do not have other surprises.
Julian MatzTechnical SupportAuthor Commented:
Thanks, will check that. It might have happened when spamassassin was installed twice (once via apt-get and once through cpan - I got rid of the cpan version).
VenabiliCommented:
I would have removed both versions and installed it properly where I wanted it.

But yep - that would explain it (although it is still a bit weird as they are in the wrong forlders to be just that). Maybe something confused one of the two installations.

Oh well - if it works now, all is good.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AntiSpam

From novice to tech pro — start learning today.