Andy,
This works like a champ!!
Thanks so much!!!
regards,
Patrick Mast
www.Patrick.be.kz
> We have hundreds of domains using web mail with automatic
> redirection and we
> have setup a simple way to do a redirect for all of them.
> We tell our customers to simply type in
> http://webmail.their_domain.com and this
> procedure does the rest:
> 1) On IIS we setup a web server using a single IP address. (lets
> pretend its
> 192.168.1.100)
> 2) We created a file called default.asp and put it into the
> document root for
> this web server. The contents of this file are:
> <%
> 'This script redirects a users webmail request to the proper domain
> 'request required by Imail which is mainly :8383
>
> If InStr( lCase(Request.ServerVariables("SERVER_NAME")),
> lcase("webmail") ) > 0
> Then 'eol
> dim getdomain,namesize ' eol
> namesize = len(LCase(Request.ServerVariables("SERVER_NAME"))) 'eol
> getdomain =
> mid(LCase(Request.ServerVariables("SERVER_NAME")),8,namesize) 'eol
> getdomain = "http://mail" & getdomain & ":8383" 'eol
> Response.Redirect(getdomain) 'eol
> End if
> %>
> 3) IN the DNS record for w2khosting.com (our primary domain name)
> we created an
> A record called webmailsrvr.w2khosting.com:
> webmailsrvr IN A 192.168.1.100
> 4) In the DNS record of ALL our Imail customers domains we put in a CNAME
> record:
> webmail IN CNAME webmailsrvr.w2khosting.com.
> Thats it!
> In step 4) you could have used an A record pointing to the IP address
> 192.168.1.100 instead of a CNAME but we wanted flexibility in
> case we ever had
> to move the web mail redirect server
> Please note in the script above I put 'eol in the script to
> denote end of line
> in case my mail client wraps the line and makes the script unreadable.
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/