summaryrefslogtreecommitdiff
path: root/user/dovecot/dovecot.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'user/dovecot/dovecot.logrotate')
-rw-r--r--user/dovecot/dovecot.logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/dovecot/dovecot.logrotate b/user/dovecot/dovecot.logrotate
new file mode 100644
index 000000000..b1a4087b4
--- /dev/null
+++ b/user/dovecot/dovecot.logrotate
@@ -0,0 +1,12 @@
+/var/log/dovecot*.log {
+ daily
+ missingok
+ copytruncate
+ rotate 7
+ compress
+ notifempty
+ sharedscripts
+ postrotate
+ /etc/init.d/dovecot --quiet --ifstarted reopen
+ endscript
+}