Results 1 to 5 of 5

Thread: dnsblcount script not being called?

  1. #1
    Join Date
    May 2008
    Posts
    118
    Rep Power
    7

    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.

  2. #2
    Join Date
    Jan 2009
    Posts
    65
    Rep Power
    6

    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.

  3. #3
    Join Date
    May 2008
    Posts
    118
    Rep Power
    7

    Default

    That's just it. The BL output is appering in my mail.log file not zimbra.log

  4. #4
    Join Date
    Jan 2009
    Posts
    65
    Rep Power
    6

    Default

    Does it matter?

    I mean as long as the RBLs work, the reports are generated and you get them.

  5. #5
    Join Date
    May 2008
    Posts
    118
    Rep Power
    7

    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.

Similar Threads

  1. Replies: 658
    Last Post: 04-04-2014, 09:01 AM
  2. zimbra opesource Backup Script Problem!
    By tashi in forum Administrators
    Replies: 4
    Last Post: 03-30-2009, 11:49 PM
  3. Zimbra Open Source Backup Help
    By ayush1440 in forum Administrators
    Replies: 8
    Last Post: 11-13-2008, 03:56 AM
  4. Zimbra Backup Script ... Small Problem
    By frankb in forum Administrators
    Replies: 12
    Last Post: 07-14-2008, 08:40 AM
  5. Zimbra 5.0.X Auto Install Script on openSUSE 10.3
    By vavai in forum Installation
    Replies: 0
    Last Post: 05-19-2008, 01:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •