From 5e3fbfb1c7d69b8dd32dbb28c99f0ca5b9cdd568 Mon Sep 17 00:00:00 2001 From: yodax Date: Mon, 10 Jul 2017 22:34:00 +0200 Subject: [PATCH] Update the mail_host for all RoundCube users to the PRIMARY_HOSTNAME --- setup/webmail.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/webmail.sh b/setup/webmail.sh index ed4cd80d..cdfc9a73 100755 --- a/setup/webmail.sh +++ b/setup/webmail.sh @@ -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 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. phpenmod -v php7.0 mcrypt imap restart_service php7.0-fpm