Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-2011, 07:08 PM
Intermediate Member
 
Posts: 23
Default how can i tell if razor/pyrzor are functioning?

So I installed razor/pyzor working off various threads I read on here and I didn't see any errors during that process.

How can I tell if it is working though?

Code:
X-Virus-Scanned: amavisd-new at zimfe6.technitos.com
X-Spam-Flag: NO
X-Spam-Score: 0.702
X-Spam-Level: 
X-Spam-Status: No, score=0.702 tagged_above=-10 required=6.6
	tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
	RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01,
	T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
Aren't I supposed to see a razor/pyzor result in there? Any ideas why I don't? the lines are uncommented in the 310.pre file etc.
Reply With Quote
  #2 (permalink)  
Old 02-02-2011, 01:30 PM
Intermediate Member
 
Posts: 23
Default

anyone have any advice?
Reply With Quote
  #3 (permalink)  
Old 02-02-2011, 05:31 PM
Moderator
 
Posts: 1,209
Default

When Amavis starts, it populates /var/log/zimbra.log with all of the tools it uses to check emails. If Razor, Pyzor etc. are configured correctly, they will show up here.

You can safely restart Amavis without restarting all of Zimbra by running as the zimbra user:

Code:
zmamavisdctl restart
If you first open up a second terminal window and run as root:

Code:
tail -f /var/log/zimbra.log
you will be able to see Amavis starting in real time.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #4 (permalink)  
Old 02-03-2011, 12:10 AM
Intermediate Member
 
Posts: 23
Default

well, it is loading razor but not pyzor. razor is still absent from the headers too.

i'll have to do some more digging.
Reply With Quote
  #5 (permalink)  
Old 02-03-2011, 07:59 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by rabettle View Post
well, it is loading razor but not pyzor. razor is still absent from the headers too.

i'll have to do some more digging.
It may also help to increase the logging level in Amavis from the Zimbra-set "1" to "2". You can do this by editing as root the following line in /opt/zimbra/conf/amavisd.conf.in and then restarting Amavis.

Code:
mail2:~ # cat /opt/zimbra/conf/amavisd.conf.in | grep "log_level ="
$log_level = 2;              # verbosity 0..5 - 1 is the minimum for msg tracing
mail2:~ #
Note that this file is set to be read-only, so to edit the file you'll need to change the file's permissions first (via the "chmod" command), edit the file, and then (ideally) set the permissions back the way they were before you started.

Increasing the logging level to 2 we have found helps answer the question "Why was that email marked as spam?" In /var/log/zimbra.log, Amavis will no report every specific test that added to the score of an email, as well as by how much, like so:

Code:
Feb  3 10:55:27 mail2 amavis[25278]: (25278-06) SPAM-TAG, <spammer@example.net> -> <legitimate_user@legitimate_domain.com>, Yes, score=6.862 tagged_above=-10 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, HTML_IMAGE_RATIO_02=0.437, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RCVD_IN_BRBL_LASTEXT=1.449, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, T_REMOTE_IMAGE=0.01, T_RP_MATCHES_RCVD=-0.01, T_URIBL_BLACK_OVERLAP=0.01, URIBL_BLACK=1.725, URIBL_WS_SURBL=1.608] autolearn=no
Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.