Articles on: Email, Mailing Lists, Spam Control

How to redirect all SmarterMail webmail domains to secure domain using IIS 7 and above?

P/s: Kindly informed, this article assumes that you already have an SSL certificate installed on your mail server.

If you have purchased an SSL certificate for your main email domain in SmarterMail. We will call the domain mail.securedomain.com. Let's also assume that you have x number of other domains in Smartermail. We will call them mail.domain1.com, mail.domain2.com and so on. This article is going to explain how to get mail.domain1.com, mail.domain2.com etc... to automatically redirect to https://mail.securedomain.com.

Log into your SmarterMail admin interface and make sure all of your domains in SmarterMail are using the same IP address.
On your server, go to C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319 and create a folder called SMSSLRedirect (You can actually name this folder anything you like)
Open IIS and create a new website called SM Redirect and point the home directory to the path in step 1. Edit the bindings for this site. For Type choose "http", for IP address choose "**All Unassigned**" and for port, choose "**80**". Click OK.
Click your SM Redirect site in IIS and on the right, double-click the "**Http Redirect**" icon.
Put a check in the box which says "**Redirect requests to this destination**". In the box, type https://mail.securedomain.com.
Put a check in the box which says "Only redirect requests to content in this directory (not subdirectories)". Make sure the status code is 302. Click Apply on the upper right.
Right-click your SmarterMail site on the left and edit bindings.
If you have anything in this area, remove it and add a new binding. For Type choose "**https**", for hostname enter mail.securedomain.com, for IP address choose "**All Unassigned**" and for port, choose "**443**", for SSL Certificate, choose the correct SSL. Click OK.

Test by going to mail.domain1.com in a browser, and it will automatically redirect to https://mail.domain1.com.

Updated on: 21/06/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!