mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
hotfix for dovecot namespace on ubuntu 18.04
This commit is contained in:
parent
561d7e9f01
commit
d05a02e0b6
3 changed files with 17 additions and 21 deletions
|
@ -1087,7 +1087,18 @@ fi
|
|||
|
||||
if [ "$dovecot" = 'yes' ]; then
|
||||
gpasswd -a dovecot mail
|
||||
cp -rf $vestacp/dovecot /etc/
|
||||
if [[ ${release:0:2} -ge 18 ]]; then
|
||||
cp -r /usr/local/vesta/install/debian/9/dovecot /etc/
|
||||
if [ -z "$(grep yes /etc/dovecot/conf.d/10-mail.conf)" ]; then
|
||||
echo "namespace inbox {" >> /etc/dovecot/conf.d/10-mail.conf
|
||||
echo " inbox = yes" >> /etc/dovecot/conf.d/10-mail.conf
|
||||
echo "}" >> /etc/dovecot/conf.d/10-mail.conf
|
||||
echo "first_valid_uid = 1000" >> /etc/dovecot/conf.d/10-mail.conf
|
||||
echo "mbox_write_locks = fcntl" >> /etc/dovecot/conf.d/10-mail.conf
|
||||
fi
|
||||
else
|
||||
cp -rf $vestacp/dovecot /etc/
|
||||
fi
|
||||
cp -f $vestacp/logrotate/dovecot /etc/logrotate.d/
|
||||
chown -R root:root /etc/dovecot*
|
||||
update-rc.d dovecot defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue