Package: syslog-ng
Version: 3.3.6-1

The destinations for mail.err, mail.info, and mail.warn differ from
the logrotate configuration also provided by syslog-ng. This means
these logs will never be rotated.

/etc/syslog-ng/syslog-ng.conf excerpt:
--
# This files are the log come from the mail subsystem.
#
destination d_mailinfo { file("/var/log/mail/mail.info"); };
destination d_mailwarn { file("/var/log/mail/mail.warn"); };
destination d_mailerr { file("/var/log/mail/mail.err"); };
--

/etc/logrotate.d/syslog-ng excerpt:
--
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
[...]
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
invoke-rc.d syslog-ng reload > /dev/null
endscript
}
--


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to