I am currently having an issue. My hosting is on a Windows Server (2012), using hMailserver and WebsitePanel, and have recently setup a Linux Account for emails only due to Windows inability to do anything mail related correctly or without issue. I have changed the MX records and the CNAME as it should be, all the DNS is fine and working. The issue is I want to have my clients log-in to mail.domain.com to access their email. The problem comes in with re-directing the Linux account that holds the MX records, to redirect from domain.com/webmail, domain.com:2095, or in this case since the MX records are the only change, elk.hostingcompany.com/webmail (elk is the server) TO mail.domain.com that the clients are used to using.
Keep in mind the DNS is working fine with MX / CNAME changes on the ASP Windows Server side. It's only the overall redirect of the log-in I need assistance in getting right, whether via a .htaccess re-direct or whatever means that aren't coming to mind at the moment. Any help would be appreciated. Thank you.