Link to home
Start Free TrialLog in
Avatar of Chanveasna Tep
Chanveasna Tep

asked on

Integrating SPF, Razor & Pyzor to Zimbra SpamAssassin In Ubuntu 16.04

Dear All Expert,

I have install and configure Zimbra Mail Server already. Now I want to improve security on my Zimbra mail server. I want to make sure my Mail server was protected with spam, so I decide to integrate SPF, Razor and Pyzor but I meet an error after I installed those. After I installed SPF, Razor and Pyzor, the service spamAssassin in zimbra cannot start. It seems the instruction I followed was wrong.

So, Can any one tell me how to integrating SPF, Razor & Pyzor to Zimbra SpamAssassin In Ubuntu 16.04?
I really need your help very urgent.

Regards and Thanks,
Chanveasna Tep.
Avatar of Sanga Collins
Sanga Collins
Flag of United States of America image

What is the error you are getting?
Also, which version of Zimbra do you have?
Avatar of Chanveasna Tep
Chanveasna Tep

ASKER

Hi Serialband,

my Zimbra version is Zimbra Free Version Edition 8.7.0

I hope you have an instruction to do it well.
Here is my Error log below

២  9 13:32:47.873 [27587] warn: config: can not determine default prefs path
២  9 13:32:47.873 [27587] warn: config: failed to create default user preference
 file /opt/zimbra/.spamassassin/user_prefs
២  9 13:32:47.944 [27587] dbg: pyzor: network tests on, attempting Pyzor
២  9 13:32:47.950 [27587] warn: plugin: failed to parse plugin (from @INC): Can'
t locate Mail/SpamAssassin/Plugin/SpamCop.pm: lib/Mail/SpamAssassin/Plugin/SpamC
op.pm: Permission denied at (eval 35) line 1.
២  9 13:32:47.953 [27587] warn: plugin: failed to parse plugin (from @INC): Can'
t locate Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm: lib/Mail/SpamAssassin/P
lugin/AutoLearnThreshold.pm: Permission denied at (eval 36) line 1.
២  9 13:32:47.953 [27587] warn: plugin: failed to parse plugin (from @INC): Can'
t locate Mail/SpamAssassin/Plugin/WhiteListSubject.pm: lib/Mail/SpamAssassin/Plu
gin/WhiteListSubject.pm: Permission denied at (eval 37) line 1.
២  9 13:32:47.953 [27587] warn: plugin: failed to parse plugin (from @INC): Can'
t locate Mail/SpamAssassin/Plugin/MIMEHeader.pm: lib/Mail/SpamAssassin/Plugin/MI
MEHeader.pm: Permission denied at (eval 38) line 1.
២  9 13:32:47.955 [27587] warn: plugin: failed to parse plugin (from @INC): Can'
t locate Mail/SpamAssassin/Plugin/ReplaceTags.pm: lib/Mail/SpamAssassin/Plugin/R
eplaceTags.pm: Permission denied at (eval 39) line 1.
២  9 13:32:47.955 [27587] warn: plugin: failed to parse plugin (from @INC): Can'
t locate Mail/SpamAssassin/Plugin/DKIM.pm: lib/Mail/SpamAssassin/Plugin/DKIM.pm:
 Permission denied at (eval 40) line 1.
២  9 13:32:47.957 [27587] warn: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/Rule2XSBody.pm: lib/Mail/SpamAssassin/Plugin/Rule2XSBody.pm: Permission denied at (eval 54) line 1.
២  9 13:32:47.957 [27587] warn: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/ImageInfo.pm: lib/Mail/SpamAssassin/Plugin/ImageInfo.pm: Permission denied at (eval 55) line 1.
២  9 13:32:47.957 [27587] warn: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/FreeMail.pm: lib/Mail/SpamAssassin/Plugin/FreeMail.pm: Permission denied at (eval 56) line 1.
២  9 13:32:47.957 [27587] warn: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/AskDNS.pm: lib/Mail/SpamAssassin/Plugin/AskDNS.pm: Permission denied at (eval 57) line 1.
២  9 13:32:48.256 [27587] info: config: failed to parse, now a plugin, skipping, in "/opt/zimbra/data/spamassassin/localrules/local.cf": ok_languages en es
២  9 13:32:48.257 [27587] warn: netset: cannot include 127.0.0.0/8 as it has already been included
២  9 13:32:48.257 [27587] warn: netset: cannot include 0:0:0:0:0:0:0:1/128 as it has already been included
Mail::SpamAssassin::Locker::Flock error: Can't locate Mail/SpamAssassin/Locker/Flock.pm:   lib/Mail/SpamAssassin/Locker/Flock.pm: Permission denied at (eval 1026) line 2.
BEGIN failed--compilation aborted at (eval 1026) line 2. at /opt/zimbra/common/bin/spamassassin line 410.
The error logs show that you can't access the files because of permission errors.  Did you create an account named zimbra to run zimbra?  Are you the files set to be owned by the zimbra account?
Of course, I have account name zimbra. What file that you mean?
I mean the files listed in the spamassassin folders.  You have several errors with Permission denied.  This tells you that Zimbra is not able to access your spamassassin files.

You also have errors locating files, such as Can't locate Mail/SpamAssassin/Locker/Flock.pm
Hi serialband,

I cannot find theis location file Can't locate Mail/SpamAssassin/Locker/Flock.pm
This means that it's not there.  Have you installed SpamAssassin or Amavis?  I believe that the very newest Zimbra separated it out.  You have to install one of these separately and copy it into the correct place or change the configuration to point to the correct place.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.