How to Make Webmail Resolve to Adjacent Domain
Issue
When you go to http://webmail.domain.com you are redirected to http://SomeOtherDomain.com:9998 to access the webmail.
Cause
This is the default behavior.
Resolution
In SmarterMail, by default, webmail becomes the primary domain, so if you type in webmail.domain2.com, it will redirect to domain1.com:9998. The following steps will make it resolve to the same domain rather than redirecting.
Please note that only dedicated server customers and members of our support staff with remote desktop access to the server can fix this issue. If you are a shared hosting client, please contact a member of our support team to resolve this issue.
- Use Remote Desktop to log into the server.
- Navigate to C:/inetpub/vhosts/webmail/whatever webmail service you're using.
- Rename the index.html file to something such as backupindex.html.
- Create a new file named index.aspx.
- Copy the following code into it:
<
script
runat
=
"server"
language
=
"C#"
> private void Page_Load(object sender, System.EventArgs e)
{
string URL = Request.Url.Host; URL = "http://" + URL + ":9998"; Response.Redirect (URL);
}
</
script
>
- Save file.
Article ID: 527, Created: April 10, 2012 at 8:07 AM, Modified: August 28, 2014 at 9:58 AM