Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Hosting Multiple Mail Domains in SL server on a Mac Mini

So I have been trying to find out the answer to this question, and I keep getting conflicting information, and I am hoping someone here can help me solve this.

We are running two very small business with two different Domains (@company1 & @Company2) Each company has a website, and corporate email. All I want to do is bring all of this in-house onto one Mac Mini server. The calendars and contacts will be shared between the two principle owners of each company (my bosses) as they support each other in there individual business.

The Apple "Genius" says this is not possible, I believe and have been told by a few people and after reading posts on here that it is possible to have multiple domains on one Mac Mini Server. I would like to figure this out quickly as the companies have a need to move off the current email provider as fast as possible due to complications with iOS4 and the iPads.

Any Help from people who are doing this, or know it to be possible or impossible would be greatly appreciated!

MacBook Pro, Mac OS X (10.6.4), Snow Leopard

Posted on Jul 20, 2010 3:26 PM

Reply
8 replies

Jul 23, 2010 5:01 AM in response to Ari Saul

This is entirely possible, and supported by the Server Admin user interface for the mail server.

Start with the [Mac OS X Server Mail Services Administration Manual|http://images.apple.com/server/macosx/docs/Mail Service_Adminv10.6.pdf], page 73

Quoth the Book Of Mail:


A Mail Service Virtual Host
Virtual hosting is a method you can use to host more than one domain name on the same
computer and IP address, with overlapping mail user names.
For example, a mail server can receive mail transfer requests for two domains,
mail.example1.com and mail.example2.com, both of which resolve to the same IP
address. For mail.example1.com, the server delivers mail to “bob@example1.com”
to a user mailbox for “bob,” while it also delivers mail to “bob@example2.com” to
a different user mailbox. Virtual hosts are essentially the converse of local host aliases.


One subtlety here is that the domains sharing the same mail server and all co-resident on the IP address will all tend to have the same public host name listed as their MX (mail exchange) server of record in the public DNS. This so that forward and reverse DNS and MX server all line up for the mail server for all the domains involved.

Jul 24, 2010 7:09 AM in response to RobertNichols

Yes. It's documented. It's even mentioned in what I quoted above. "Virtual hosts are essentially the converse of local host aliases."

Server Admin > select server > Mail > Settings > Advanced > Hosting

Here's the 10.4 stuff, but (other than the cited page numbers) this stuff hasn't changed all that much:
[Adding or Removing Local Host Aliases|http://docs.info.apple.com/article.html?path=ServerAdmin/10.4/en/c1ms32 .html] and [Adding or Removing Virtual Hosts|http://docs.info.apple.com/article.html?path=ServerAdmin/10.4/en/c1ms35.h tml]

I don't know if it's considered deprecated, but I'd tend to use the virtual hosts anyway, only because sooner or later somebody's going to want to have the mail to user foobar go different places in the different domains. And contrary to the earlier reply, I don't find the host aliases are particularly simpler than the virtual domains.

Jul 24, 2010 11:31 AM in response to MrHoffman

Well it simpler in that you do not have to enter accounts with user@domain.com, just user. Even simpler yet if you (like I do) want multiple domain names behind some of the users. I have a handful of personal domains that I want to be in, plus 3 that belong to my church. All three of which are equivalent (church.org, church.com, and so forth). It would be a pain to build user@domain for each. I do not have that many mail users anyway, only about 15 or so, not counting the church lists I run. But you are correct, overlapping usernames could/would be nice in a larger setting. I can work out any conflicts 🙂

Hosting Multiple Mail Domains in SL server on a Mac Mini

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.