Author Topic: Server Name Change & Roundcube Access Issue – Is a Mail Server Rebuild Needed?  (Read 37 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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!
« Last Edit: April 03, 2025, 01:32:28 PM by idovecer »

Offline
*
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.