Logrotate Beispiel mail
Zur Navigation springen
Zur Suche springen
Die Konfiguration für postfix könnte wie folgt aussehen
- cat /etc/logrotate.d/mail
/var/log/mail.log {
weekly
missingok
rotate 4
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
/usr/libexec/postfix/master -w >/dev/null 2>&1 || true
endscript
}