Apple 10.6 Server User Manual


 
Chapter 3 Mail Service Advanced Conguration 75
To associate a user to a virtual host using Mac OS X Server–style aliases:
1 Add a Virtual Host Name using the directions in “Adding or Removing Virtual Hosts
on page 74.
2 In Workgroup Manager, open the user account you want to work with, if it isn’t open.
To open the account, click the Accounts button, click the globe icon below the toolbar
menu, and open the directory domain where the account resides. Click the lock to be
authenticated. Select the user in the user list.
3 Click Basic, then double-click under the last entry in the Short Names eld.
4 Enter the user name and the fully qualied mail address at the virtual host (name@
virtualhostdomain).
For example, if your domain is example.com, the virtual host domain is server.com, and
you want mail addressed to postmaster@server.com to be delivered to user bob, open
bob’s user record in Workgroup Manager, and enter:
postmaster@server.com
Note: You must use the entire mail address for this to work for a virtual mail host. If
you only enter the new user name without the remainder of the address, you might
create an alias for the user on the default domain, rather than on the virtually hosted
domain.
5 Click Save.
To associate a user to a virtual host using Postx-style aliases:
1 Add a Virtual Host Name using the directions in “Adding or Removing Virtual Hosts
on page 74.
2 Log in to Terminal as the root user.
3 Save the original virtual user le to be used as a future template by entering:
cp /etc/postfix/virtual /etc/postfix/virtual.original
4 Using a text editor as the root user, open and edit the le /etc/postx/virtual by adding
the following line at the beginning of each section (one section for each virtual host):
virtual_host_domain virtual
Fill in the virtual host domain name. For example, if your virtual host domain is server.
com, substitute that domain name for virtual_host_domain above. This distinguishes
the section as belonging to a specic virtual domain.
This is necessary if you only have one virtual domain, or if you enabled Mailing Lists for
your virtual domains.
5 For each virtual user, add a line in the le with the following format:
name@virtual_host_domain local_user_name