Update the mail_host for all RoundCube users to the PRIMARY_HOSTNAME

This commit is contained in:
yodax 2017-07-10 22:34:00 +02:00
parent cd378b8ef3
commit 5e3fbfb1c7
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@ ${RCM_DIR}/bin/updatedb.sh --dir ${RCM_DIR}/SQL --package roundcube
chown www-data:www-data $STORAGE_ROOT/mail/roundcube/roundcube.sqlite chown www-data:www-data $STORAGE_ROOT/mail/roundcube/roundcube.sqlite
chmod 664 $STORAGE_ROOT/mail/roundcube/roundcube.sqlite chmod 664 $STORAGE_ROOT/mail/roundcube/roundcube.sqlite
# Make sure all the users are configured to use the correct hostname
sqlite3 $STORAGE_ROOT/mail/roundcube/roundcube.sqlite "update users set mail_host = '$PRIMARY_HOSTNAME'"
# Enable PHP modules. # Enable PHP modules.
phpenmod -v php7.0 mcrypt imap phpenmod -v php7.0 mcrypt imap
restart_service php7.0-fpm restart_service php7.0-fpm