Apple 10.6 Server User Manual


 
Adding or Removing Virtual Hosts
Before you can enable virtual hosting, you must add a list of locally hosted virtual
domains to your mail server. Virtual hosting must be enabled to add or remove virtual
hosts. If virtual hosting is not enabled, see “Enabling Virtual Hosting” on page 73.
If you enable virtual host domains, all mail aliases, addresses for local host aliases, and
mail addresses associated with the virtual name must be fully qualied. This means that
additional mail user names entered into the Short Names eld of a user’s Workgroup
Manager must contain the user name as well as the @domainname portion.
If you enable virtual domains, you must include the full mail address for user aliases
and virtual users.
To add or remove virtual hosts:
1 In Server Admin, select a computer in the Servers list, then select Mail.
2 Click Settings.
3 Select the Advanced tab.
4 Select Hosting.
5 Click the Add (+) button next to the Locally Hosted Virtual Domain box and enter the
domain name of a virtual host you want your server to be responsible for.
To change a virtual domain, select it and click the Edit (/) button.
To remove an item from the list, select it and click the Remove (-) button.
6 Click Save.
Note: Set up MX records for each virtual domain. If a domain name in this list doesn’t
have an MX record, only your Mail service recognizes it. External mail sent to this
domain name is returned.
Associating Users to the Virtual Host
Associating users to a virtual host requires creating an alias in their user records that
contain the entire mail address (such as bob@example.com, where example.com isn’t
the domain name of the mail server, but a virtual host).
There are two types of creating aliases for virtual host users: Mac OS X Server-style, and
Postx-style. Each has its advantages and disadvantages:
Mac OS X Server–style aliases are easy to make, and are listed with a user’s login Â
name. You can easily see the alias that refers to each user. The downside is that Mail
service’s Sieve functionality doesn’t understand Mac OS X Server-style aliases and
will not lter mail based on the Mac OS X Server-style alias.
Postx-style aliases require command-line administration and are less obvious to Â
audit. However, Postx-style aliases are compatible with Sieve scripting. Only aliases
generated by the Postx-style method can be acted upon by Sieve scripts.
74 Chapter 3 Mail Service Advanced Conguration