@@ -1020,6 +1020,7 @@ fi
if [ "$dovecot" = 'yes' ]; then
gpasswd -a dovecot mail
wget $vestacp/dovecot.tar.gz -O /etc/dovecot.tar.gz
+ wget $vestacp/logrotate/dovecot -O /etc/logrotate.d/dovecot
cd /etc
rm -rf dovecot dovecot.conf
tar -xzf dovecot.tar.gz
@@ -1087,6 +1087,7 @@ fi
@@ -1009,6 +1009,7 @@ fi
@@ -94,3 +94,6 @@ if [ -f "$file" ] && [ $( grep -ic "NAT=''" $file ) -eq 1 ]; then
v-change-sys-ip-nat $ip $pub_ip
fi
+
+# Dovecot logrorate script
+wget $vestacp/logrotate/dovecot -O /etc/logrotate.d/dovecot
@@ -132,3 +132,6 @@ if [ -f "/lib/systemd/system/clamav-daemon.service" ]; then
service clamav-daemon restart > /dev/null 2>&1