File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2001,7 +2001,9 @@ if [ "$dovecot" = 'yes' ]; then
20012001 cp -f $HESTIA_INSTALL_DIR /logrotate/dovecot /etc/logrotate.d/
20022002 rm -f /etc/dovecot/conf.d/15-mailboxes.conf
20032003 chown -R root:root /etc/dovecot*
2004-
2004+ touch /var/log/dovecot.log
2005+ chown -R dovecot:mail /var/log/dovecot.log
2006+ chmod 660 /var/log/dovecot.log
20052007 # Alter config for 2.2
20062008 version=$( dovecot --version | cut -f -2 -d .)
20072009 if [ " $version " = " 2.2" ]; then
@@ -2179,6 +2181,7 @@ if [ "$sieve" = 'yes' ]; then
21792181 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
21802182
21812183 # Permission changes
2184+ touch /var/log/dovecot.log
21822185 chown -R dovecot:mail /var/log/dovecot.log
21832186 chmod 660 /var/log/dovecot.log
21842187
Original file line number Diff line number Diff line change @@ -2004,6 +2004,9 @@ if [ "$dovecot" = 'yes' ]; then
20042004 cp -f $HESTIA_INSTALL_DIR /logrotate/dovecot /etc/logrotate.d/
20052005 rm -f /etc/dovecot/conf.d/15-mailboxes.conf
20062006 chown -R root:root /etc/dovecot*
2007+ touch /var/log/dovecot.log
2008+ chown -R dovecot:mail /var/log/dovecot.log
2009+ chmod 660 /var/log/dovecot.log
20072010
20082011 # Alter config for 2.2
20092012 version=$( dovecot --version | cut -f -2 -d .)
@@ -2153,6 +2156,7 @@ if [ "$sieve" = 'yes' ]; then
21532156 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
21542157
21552158 # Permission changes
2159+ touch /var/log/dovecot.log
21562160 chown -R dovecot:mail /var/log/dovecot.log
21572161 chmod 660 /var/log/dovecot.log
21582162
You can’t perform that action at this time.
0 commit comments