View Single Post
  #58  
Old 11th October 2010, 17:22
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Yeah, start with the RSYSLOG. I had that problem as well. What was wrong was that when i added /var/mail.log, it was with other items. So, it would run the mail script for each log file on rotation even though it just provided details for the mail.log.

Make sure mail.log is alone, with it's own set of details in the brackets.

My RSYSLOG for the mail.log addition is:
Code:
/var/log/mail.log
{
        rotate 7
        daily
        missingok
        notifempty
        delaycompress
        compress
        prerotate
              /usr/local/sbin/postfix_report.sh > /dev/null
        endscript
        postrotate
                invoke-rc.d rsyslog reload > /dev/null
        endscript
}
Was mail.log originally in the RSYSLOG file? If not, you might have a duplicate that needs deleted as well. I think that'd be the logrotate.conf but not 100% sure. Can figure it out if necessary.
__________________
ISPC3 on Debian! It's great!
Reply With Quote