New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Server Name Change & Roundcube Access Issue – Is a Mail Server Rebuild Needed?

Started by idovecer, April 03, 2025, 01:30:30 PM

Previous topic - Next topic

idovecer

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!

idovecer

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.