Koozali.org: home of the SME Server

virtual domain

Offline Tejaswini

  • **
  • 36
  • +0/-0
virtual domain
« on: July 07, 2009, 01:53:44 PM »
Hi...
     I have created one virtual domain.But not able to access website of that domain.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: virtual domain
« Reply #1 on: July 07, 2009, 04:31:31 PM »
Tejaswini

Did you configure external DNS records to point that virtual domain at your servers external IP, just as you would have already done so for the main domain ?

If your virtual domain is set to point at content in an ibay, can you access it using
www.maindomain.com/ibayname
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Tejaswini

  • **
  • 36
  • +0/-0
Re: virtual domain
« Reply #2 on: July 09, 2009, 12:17:33 PM »
Now i can access...One more problem is,Can i create same users in both domains??If yes,How can i Create??

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: virtual domain
« Reply #3 on: July 09, 2009, 12:41:09 PM »
Quote
One more problem is,Can i create same users in both domains??If yes,How can i Create??

you don't need to create any user: users are valid for all domains..
BTW, you should already know it if you just read the documentation

Stefano

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: virtual domain
« Reply #4 on: July 09, 2009, 03:46:55 PM »
Tejaswini

See Pseudonyms section of Manual, and yes you should read every part of ALL Manuals
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Tejaswini

  • **
  • 36
  • +0/-0
Re: virtual domain
« Reply #5 on: July 10, 2009, 06:35:11 AM »
Thank you so much... :smile:

Offline purvis

  • *****
  • 567
  • +0/-0
Re: virtual domain
« Reply #6 on: July 20, 2009, 02:56:54 AM »
I am at the point where i needed to setup some virtual domains also and i did setup some. It can be a bit confusing with what can be done or not done with them from lack of knowledge or experience in this area.

It seems things can never be simple of what comes my way in life with computers.

I have read the documentation and i am very happy someboody took time out to write it, it has been helpful but i do not think i am assorbing what i need to do what i need.

So may be some questions or explanation of what i am trying to do will be of use.

1. one static internet connection and one router in house
2. three domain names (abc.com, xyz.com,acme.com)   pointing to one static internet connection
3. two sme servers setup in server mode behind the router in nat mode
4. on one server two domains( abc.com and xyz.com) and on the other server one domain(acme.com)
5. the router forwards web pages(http and https) and email to sever with the two domains, abc.com and xyz.coim

Is it possible to have the web pages and email of acme.com forwarded to the other server with the domain acme.com from the server with the domains abc.com and xyz.com, which is where the nat router is http, https, pop3, and imap ports forwarding ports.

Basically, i would like to have all the web pages and email of acme.com to be served on a different server other than on the server where the incoming port traffic is being forwarded to from the router.

Thanks

 





 
« Last Edit: July 20, 2009, 03:00:57 AM by purvis »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: virtual domain
« Reply #7 on: July 20, 2009, 03:21:50 AM »
purvis

Quote
two sme servers setup in server mode behind the router in nat mode

Your network arrangement limits the possibilities.
You theoretically should forward ports from the router to the second server  but obviously cannot forward the same ports ie http, https, mail etc to different servers.
You could try a proxypass entry on server1 to direct acme to server2.
On server1 you could delegate mail handling for acme to the second server. The way to do both those is answered in the FAQ. I'm not sure how successful you will be though, when in server only mode.

Personally I'd recommend if you have multiple servers etc, then you should have the main sme in server gateway mode behind a modem
/router in bridged mode (passthrough mode).  That way you let sme do all the work rather than the router, and the 2 suggestions given will "for sure" work OK.
« Last Edit: July 20, 2009, 05:55:16 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline purvis

  • *****
  • 567
  • +0/-0
Re: virtual domain
« Reply #8 on: July 20, 2009, 05:09:02 AM »
Thanks for the reply Mary.
You understood my problem.


If equipment never failed then that is what i would do.

I am trying to keep it as simple as possible for somebody else to follow in case something happens to me.

But, because it does, i am trying to keep my connections to the internet simple(meaning a simple nat router). Sme server will do many things, i just have to adjust. I could install a separate internet connection and that would simplify things until something else comes along and complicates that setup.


My web pages at this time will not be serving up any data from databases so i might just try servering the web pages from server2 on server1 and try some fancy footwork with php to read web pages from server2 using server1 and then display that info to the web browser.
 
I must of overlooked the ability to forward a second domains email from server1 to server2. I did see in the server-manager the ability to forward email to another ip address but i figured that was for all email and not email of a certain domain.

So i guess that would mean i could have several servers running with a single domain on each server and have all email packets coming from the internet through the nat router to a central server that redirects that email to the respective servers that are also behind the nat router. Is that correct?

One other thing is on my mind. Would an additional ip address on internet help me in some way. In other words, could the sme server see behind the nat router see what ip address was being used inbound and redirect that to another server.

Or rather have a central server behind the nat router that redirects the traffic of http,https, and email to secondary servers.

Thank You






« Last Edit: July 20, 2009, 05:10:36 AM by purvis »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: virtual domain
« Reply #9 on: July 20, 2009, 05:52:22 AM »
purvis

The simplest approach IS to configure your modem/router in bridged mode and server1 in gateway server mode.

sme is a very good firewall based on iptables and the kernel is regularly updated, so your sme server1 firewall will likely be more secure than your standalone Modem/router/firewall.

Yes as the FAQ says you can delegate mail ONLY for specific domains if required using db commands.

sme only supports a single external IP,.

You will do best to use sme in it's primarily role it was designed for, as a server gateway. You have all the control you need, to do exactly what you want.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline purvis

  • *****
  • 567
  • +0/-0
Re: virtual domain
« Reply #10 on: August 25, 2009, 05:57:12 AM »
Finally got to do what Mary suggested and followed the FAQ section at the bottom of the info sheet and it works beautifully.

Thanks Mary, and the sme server team




 Deliver email for one domain to an internal mail server

You can override the default email delivery destination for individual domains on your SME server (forwarding all email for the specified domain to another server) as follows:

First, create the necessary virtual domains using server-manager::Configuration::Domains::Add Domain.

Then, (assuming your domain is called test.com and the actual mail server is at a.b.c.d issue the following commands:
Code: [Select]
db domains setprop test.com MailServer a.b.c.d
signal-event email-update


Remove the internal mail server (and return email delivery for test.com to the default for your SME server) using:
Code: [Select]
db domains delprop test.com MailServer
signal-event email-update