Secure Webmail Auto-Redirect

Secure Webmail Auto-Redirect

Postby m1byo » Mon Feb 11, 2008 2:45 pm

Hello,

I have had a long running configuration where I was sharing the IP address with IIS and so I was using an IIS website to redirect http://webmail.domain.com through to https://webmail.domain.com on port 443

This worked quite well as it allowed IIS to almost hapily co-exist with AMS without too much extra work. however I have now had need to host a secure site on IIS and have therefore changed the config and have 2 external email adddresses.

After a little playing, I have *finally* managed to get my AMS / IIS configuration to work using these different external IP addresses, however my very useful feature of webmail.domain.com does not work, because it requires the secure and insecure version of webmail.domain.com to be on the same IP address, which it now isnt.

Along with this, I have got it configured to only allow users secure logins, which went hand in hand with the auto-redirect function.

Is there any way, I can get the AMS non-secure website to automatically re-direct to the secure website so to re-enable this function?

Thanks very much

Ian
m1byo
 
Posts: 164
Joined: Fri Sep 21, 2007 2:36 pm
Location: UK

Re: Secure Webmail Auto-Redirect

Postby rob » Mon Feb 11, 2008 8:05 pm

The easiest way I can think to achieve this would be to modify the _index.html webmail template file to contain something like this in the head part...

####IFNOT:IS_CONNECTIONSECURE:INSERT:<meta http-equiv="refresh" content="0;url=https://webmail.domain.com">####

This will basically cause a non-secure attempt to access the index page to redirect straight to the secure version. You should also read the following tutorial to ensure your WebMail template is edited in the correct way...

http://www.code-crafters.com/abilitymai ... lates.html
rob
 
Posts: 415
Joined: Mon Sep 10, 2007 2:34 pm

Re: Secure Webmail Auto-Redirect

Postby m1byo » Tue Feb 12, 2008 11:02 am

Thanks very much, it seems to be working well.

you do notice the refresh, but that is just something which will have to be lived with!
m1byo
 
Posts: 164
Joined: Fri Sep 21, 2007 2:36 pm
Location: UK


Return to General

Who is online

Users browsing this forum: No registered users and 26 guests

cron