The webmail redirect is handled in
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliasesIf you want to change the redirect from "
https://www.mydomain/webmail" to "
https://www.mydomain:4443/webmail" you would need to customize this template fragment.
I would recommend implementing the "new" port using a port forwarding rule.
So, if your objective is to get your webmail redirect to use a port other than 443 from the public internet, your solution looks like this:
1) Setup a port forwarding rule that forwards port 4443 to port 443 on "localhost"
2) Verify that you can now access webmail at
https://www.mydomain:4443/webmail3) Modify the webmail "rewrite" rule by executing the following commands:
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
sed s/"%{HTTP_HOST}"/"%{HTTP_HOST}:4443"/ \
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases > \
30WebmailAliases
signal-event email-update
This re-direct will work correctly from OUTSIDE your network (or if you access your server from INSIDE using the WAN IP address), but will NOT work if you access your server by name or LAN IP from the LAN.