|
@@ -2001,7 +2001,9 @@ if [ "$dovecot" = 'yes' ]; then
|
|
|
cp -f $HESTIA_INSTALL_DIR/logrotate/dovecot /etc/logrotate.d/
|
|
cp -f $HESTIA_INSTALL_DIR/logrotate/dovecot /etc/logrotate.d/
|
|
|
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
|
|
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
|
|
|
chown -R root:root /etc/dovecot*
|
|
chown -R root:root /etc/dovecot*
|
|
|
-
|
|
|
|
|
|
|
+ touch /var/log/dovecot.log
|
|
|
|
|
+ chown -R dovecot:mail /var/log/dovecot.log
|
|
|
|
|
+ chmod 660 /var/log/dovecot.log
|
|
|
#Alter config for 2.2
|
|
#Alter config for 2.2
|
|
|
version=$(dovecot --version | cut -f -2 -d .)
|
|
version=$(dovecot --version | cut -f -2 -d .)
|
|
|
if [ "$version" = "2.2" ]; then
|
|
if [ "$version" = "2.2" ]; then
|
|
@@ -2179,6 +2181,7 @@ if [ "$sieve" = 'yes' ]; then
|
|
|
sed -i "s/address_pipe:/dovecot_virtual_delivery:\n driver = pipe\n command = \/usr\/lib\/dovecot\/dovecot-lda -e -d \${extract{1}{:}{\${lookup{\$local_part}lsearch{\/etc\/exim4\/domains\/\${lookup{\$domain}dsearch{\/etc\/exim4\/domains\/}}\/accounts}}}}@\${lookup{\$domain}dsearch{\/etc\/exim4\/domains\/}}\n delivery_date_add\n envelope_to_add\n return_path_add\n log_output = true\n log_defer_output = true\n user = \${extract{2}{:}{\${lookup{\$local_part}lsearch{\/etc\/exim4\/domains\/\${lookup{\$domain}dsearch{\/etc\/exim4\/domains\/}}\/passwd}}}}\n group = mail\n return_output\n\naddress_pipe:/g" /etc/exim4/exim4.conf.template
|
|
sed -i "s/address_pipe:/dovecot_virtual_delivery:\n driver = pipe\n command = \/usr\/lib\/dovecot\/dovecot-lda -e -d \${extract{1}{:}{\${lookup{\$local_part}lsearch{\/etc\/exim4\/domains\/\${lookup{\$domain}dsearch{\/etc\/exim4\/domains\/}}\/accounts}}}}@\${lookup{\$domain}dsearch{\/etc\/exim4\/domains\/}}\n delivery_date_add\n envelope_to_add\n return_path_add\n log_output = true\n log_defer_output = true\n user = \${extract{2}{:}{\${lookup{\$local_part}lsearch{\/etc\/exim4\/domains\/\${lookup{\$domain}dsearch{\/etc\/exim4\/domains\/}}\/passwd}}}}\n group = mail\n return_output\n\naddress_pipe:/g" /etc/exim4/exim4.conf.template
|
|
|
|
|
|
|
|
# Permission changes
|
|
# Permission changes
|
|
|
|
|
+ touch /var/log/dovecot.log
|
|
|
chown -R dovecot:mail /var/log/dovecot.log
|
|
chown -R dovecot:mail /var/log/dovecot.log
|
|
|
chmod 660 /var/log/dovecot.log
|
|
chmod 660 /var/log/dovecot.log
|
|
|
|
|
|