This solution worked for me: Access Webmail (Snappy Mail) from subdomain and without port (e.g. https://webmail.example.com)