I have a webmail system installed and would like to use the web address.
http://webmail.mydomain.com/
to access the web based email system.
Insight into how to get this setup would be great. I thought you would have to use some sort of Redirect but Redirect appears only to influence the directory part of the address not the domain name itself.
Would I have to set up a separate virtual host to accomplish this?
Chicken
06-20-2001, 01:49 PM
yeah, redirects don't automagically create subdomains, that sort of thing must be set up in DNS, and on the server.
brandonk
06-20-2001, 04:28 PM
RaQ Zone.com has instructions on doing exactly what you want.
<<MOD NOTE:>>
Brandon, please don't just mention the site so the member has to wade throuh the entire site to find the info. If there is a tutorial that would help (and I'm not sure there really are any exactly for the question above), then post the direct link to the *actual* tutorial please.
<</MOD NOTE>>
The RaqZone article addresses the issue of domain pointing not redirecting or changing the host part of the domain name. I have DNS setup to point to the server -- now I just need the server to redirect requests to webmail.mydomain.com to the appropriate directory. I think this can only be done by using a seperate virtual host.
Chicken
06-21-2001, 10:08 AM
If you don't want to install this script in webmail.mydomain.com 's web directory (what would seem like the best idea), then you can do a few things. One is, throw a redirect in but you won't see 'webmail.domain.com' in the browser, you'll see the actual URL. A redirect does exactly that, redirects the visitor to somewhere else. I've never gotten the rewrite conditions to work on the 4, but that's another story.
You can also just create a symbolic link from the subdoain's web folder to the place where the script actually is.
Chicken ...
I think the only way to do this without some major Rewrite trickery or a subdomain script is to create a VirtualDomain with webmail.mydomain.com and have it function as its own virtual domain.
Since the webmail client I am using run as root, It may not be a bad idea to run it as its own virtual server.
You could create one virtual domain as webmail.mydomain.com and use it for all of your hosted sites by simply using server aliases.
As a result, all of your clients could use the following addresses to access their webmail.
www.site1.com --> webmail.site1.com
www.site2.com --> webmail.site2.com
The real site of course would be webmail.mydomain.com. Provided the clients do not need to customize the mail interface, this would make administration much easier.
This would also allow me to keep cgi-wrap in place for all of my clients but still provide them with webmail services.
I will give this a try and see how it works out.
Chicken
06-21-2001, 11:14 AM
I see a bit more of what you are trying to do, and sounds good to me. CNAME (the only time I'd use CNAME) webmail.otherdomain.com to webmail.com.com and you should be ok. Not sure what you use for DNS, but just be sure you type the entries in correctly for the CNAME and it *should* work, heh. Always that *should*...
netastic
06-21-2001, 11:29 AM
Huck, a redirect still would not address the problem that if a user has an account under theirdomain.com they can't send mail from SM if SM is installed under the rootdomain.com. all they can do is check their mail.