summaryrefslogtreecommitdiff
path: root/debian/sendmail.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sendmail.logrotate')
-rw-r--r--debian/sendmail.logrotate86
1 files changed, 86 insertions, 0 deletions
diff --git a/debian/sendmail.logrotate b/debian/sendmail.logrotate
new file mode 100644
index 0000000..37f2537
--- /dev/null
+++ b/debian/sendmail.logrotate
@@ -0,0 +1,86 @@
+# Logrotate file for sendmail
+
+/var/log/mail/mail.alert {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}
+
+/var/log/mail/mail.crit {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}
+
+/var/log/mail/mail.debug {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}
+
+/var/log/mail/mail.emerg {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}
+
+/var/log/mail/mail.err {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}
+
+/var/log/mail/mail.info {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}
+
+/var/log/mail/mail.log {
+ create 0660 root mail
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+ postrotate
+ /etc/init.d/sysklogd reload
+ endscript
+}
+
+/var/log/mail/mail.notice {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}
+
+/var/log/mail/mail.warn {
+ notifempty
+ rotate 4
+ size 100k
+ weekly
+ compress
+ missingok
+}