Control Web Panel
WebPanel => CentOS-WebPanel GUI => Topic started by: idovecer on April 03, 2025, 01:30:30 PM
-
I changed the server name from server.example.com to mail.example.com because a client’s security system was rejecting all connections from a server with "server.example.com" in its name, stating that SERVER was too generic.
I updated everything MAIL>SERVER, and the system has been running smoothly. However, I did not perform a mail server rebuild. Everything worked fine for a month after the change.
Today, I noticed that when users click on the yellow email access icon in the user control webpanel, Roundcube returns an error. The issue is that it tries to open the new address mail.example.com/roundcube/ and it returns error:
404 Not Found
cwpsrv
If i change manually in URL to old server name to server.example.com/roundcube/ it works.
My questions are:
#1 Do I need to perform a mail server rebuild to fix that?
#2 If so, will it overwrite my existing configurations and reset them to default (postfix, dovecot...)?
#3 Is there a way to manually update the settings so the correct address is used without rebuilding?
Thanks!
-
SOLUTION:
I resolved the issue by modifying the virtual host configuration and updating the SSL settings. Specifically, I edited the hostname.conf file located at /usr/local/apache/conf.d/ to change the server name from server.example.com to mail.example.com. Additionally, I updated the ssl.conf file to reflect this change, ensuring that the SSL settings correspond to the new server name.
After making these changes, I restarted the Apache server using the following command:
sudo systemctl restart httpd
This action applied the new configurations, and now accessing Roundcube via https://mail.example.com/roundcube functions correctly.