mail Subdomain redirect?

3 posts / 0 new
Last post
#1 Thu, 09/10/2009 - 18:33
Tux.Ice

mail Subdomain redirect?

I am trying to setup a seperate mail server from the virtualmin server, and so far so good. I can access mail.maindomain.com and it re-directs me to the mail server. However, mail.customerdomain.com redirects me to the website for maindomain.com which is weird. The only thing I can think of, is that apache can't find a virtualhost for this, and is just showing a default one. Any ideas?

Thu, 09/10/2009 - 18:40
andreychek

Howdy,

Well, you'll have to describe your setup a bit more so we can be helpful.

How have you gone about setting up mail.customerdomain.com to redirect? Where should it be redirecting to? Is the site for maindomain.com on the same server, or is that on one of the other servers you're running?

Thanks,

-Eric

Thu, 09/10/2009 - 18:45
Tux.Ice

Nevermind, I just added a couple things to the Apache configuration, and changed a few settings in the default.

For information, I added this to the bottom of the apache default skeleton file:

:80> ServerName mail.${DOM} Redirect / http://mail1..com

Topic locked