[EMAIL PROTECTED]:/var/log$ cat /etc/logrotate.conf # see "man logrotate" for details # rotate log files weekly weekly
# keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # packages drop log rotation information into this directory include /etc/logrotate.d # no packages own wtmp, or btmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } /var/log/btmp { missingok monthly create 0664 root utmp rotate 1 } # system-specific logs may be configured here /var/log/syslog { weekly rotate 52 compress delaycompress notifempty mail <some valid e-mail> create 640 root sysadmin } /var/log/auth.log { weekly rotate 52 compress delaycompress notifempty mail <some valid e-mail> create 640 root sysadmin } [EMAIL PROTECTED]:/etc/logrotate.d$ cat apache /var/log/apache/*.log { weekly missingok rotate 52 mail <some valid e-mail> compress delaycompress notifempty create 640 root sysadmin sharedscripts postrotate /etc/init.d/apache reload > /dev/null endscript } I substituted that silly tag after the mail line so I won't get spammed, but it is a valid e-mail address; I'm sure of it. Basically, syslog and apache's logs are created with group sysadmin, with the proper priveledges, and compressed. However, they are not being mailed to that e-mail address. The computer is running qmail, set up on SMTP and on POP3, and is working perfectly for both. In /var/log/qmail/current, I see no record of any messages sent by logrotate. [EMAIL PROTECTED]:/var/log$ ls -l auth.log* -rw-r----- 1 root adm 8688 May 26 16:08 auth.log -rw-r----- 1 root adm 477 May 26 06:47 auth.log.0 -rw-r----- 1 root adm 164 May 19 06:47 auth.log.1.gz -rw-r----- 1 root adm 197803 May 26 06:25 auth.log.2 -rw-r----- 1 root adm 121176 May 19 06:25 auth.log.3 -rw-r----- 1 root adm 161 May 12 06:47 auth.log.3.gz -rw-r----- 1 root adm 161 May 5 06:47 auth.log.4.gz -rw-r----- 1 root adm 11787 Apr 28 06:47 auth.log.5.gz -rw-r----- 1 root adm 27480 Apr 21 06:47 auth.log.6.gz Furthermore, why is auth.log not being created for the group sysadmin? Adar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]