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 04-10-2009, 01:19 PM
Special Member
 
Posts: 117
Default dnsblcount script not being called?

So, I am running Zimbra on Ubuntu server.

So, it appears that the logs that contain the DNS checking are located in /var/log/mail.log

So, I added the following to my /etc/logrotate.d/zimbra file:

Code:
/var/log/mail.log {
    compress
    dateext
    maxage 365
    rotate 99
    missingok
    prerotate
      /local/dnsblcount.pl /var/log/mail.log | /opt/zimbra/postfix/sbin/sendmail <MYADDRESS>
    endscript
    notifempty
    size +4096k
    create 640 root root
    sharedscripts
    postrotate
        /etc/init.d/syslog reload
    endscript
}
But I don't believe it is really being called.

Any idea what I am doing wrong? I thought the wiki mentioned that the pre-rotate should be in the zimbra.log, but I noticed on my configuration the messages are actually going to mail.og.
Reply With Quote
  #2 (permalink)  
Old 06-01-2009, 11:55 AM
Senior Member
 
Posts: 60
Default

Hi,

Mine looks like;

/usr/local/sbin/dnsblcount.pl /var/log/zimbra.log | mail -s "$HOSTNAME DNSBL Count" zimbadmin@domain.com

First. just call it to ensure everything runs manually like;

/usr/local/sbin/dnsblcount.pl /var/log/zimbra.log

Then add in the logrotate file.
Reply With Quote
  #3 (permalink)  
Old 06-01-2009, 12:00 PM
Special Member
 
Posts: 117
Default

That's just it. The BL output is appering in my mail.log file not zimbra.log
Reply With Quote
  #4 (permalink)  
Old 06-01-2009, 12:04 PM
Senior Member
 
Posts: 60
Default

Does it matter?

I mean as long as the RBLs work, the reports are generated and you get them.
Reply With Quote
  #5 (permalink)  
Old 06-01-2009, 01:24 PM
Special Member
 
Posts: 117
Default

Well, I realize the command would need to read the results from my mail.log file, but should the rotation then be on the mail.log rather than the zimbra.log?

It seems wrong to me to add it to the rotation script for zimbra.log since it is reading the data in the mail.log file.

Which is why I was creating a mail.log rotation script. But it just seems like that is not getting used... And I don't understand why.
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.