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 08-03-2009, 02:57 PM
Junior Member
 
Posts: 5
Question [SOLVED] Get amavis_msg_count/amavis_spam_count

Hi, we are looking to customize our spam filters(adding SPF, tuning spamassassin configuration files, etc.), but we need to see if what we're doing is actually working, we need to see the numbers, not just the graphics, is there any way to get the amavis_msg_count and amavis_spam_count from the CLI(or any other way but to get the real number)?.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 08-04-2009, 03:37 AM
Moderator
 
Posts: 7,928
Default

Postfix and Amavis Log Reporters

You will need to increase log_level to 2 in /opt/zimbra/conf/amavisd.conf.in and then run
Code:
su - zimbra
zmamavisdctl stop ; zmamavisdctl start
__________________
Reply With Quote
  #3 (permalink)  
Old 08-04-2009, 07:48 AM
Junior Member
 
Posts: 5
Default

Hello uxbod, that is just the tool i needed, even whit the log level set to 1 it parses the info I needed, of course there's no detailed information, so it's not that usefull for identifing patterns or anything, but to get a summary from the data that we already have still works, I already increased the log level to make amavis-logwatch reports more rich.

Thank you very much!

Best Regards
Reply With Quote
  #4 (permalink)  
Old 08-04-2009, 09:11 AM
Junior Member
 
Posts: 5
Default

Just in case anyone reads this in the future(this can be helpfull), there is also a way to see simple information in the mysql database:

as zimbra user(su - zimbra) run logmysl - D zimbra_logger (the -D parameter is optional just to avoid having to change databases inside the DBMS).

Under the table amavis_aggregate you have the sumary of the message count, the spam count, and the virus count, by hour, or by day.

If you are interested in more detailed information you can query the amavis table. There are other tables such as config, mta or mta_aggregate that may interest you, but, be carefull whit this.

Regards,
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.