
Chapter 1 Mail Service Setup 43
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 section “Adding or Removing Virtual
Hosts” on page 42.
2 In Workgroup Manager, open the user account you want to work with, if it isn’t already
open.
To open the account, click the Accounts button, then click the globe icon below the
tool bar 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 the Basic tab.
4 Double-click under the last entry in the Short Names list.
5 Enter the virtual host address alias.
For example, if your domain is example.com and 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:
6 Click Save.
This will take mail sent to your mail server for “postmaster@server.com” and actually
send it to the real mail account for user “bob.” Meanwhile mail to
To associate a user to a virtual host using Postfix-style aliases:
1 Add a Virtual Host Name using the directions in section “Adding or Removing Virtual
Hosts” on page 42.
2 Create a file to be used as an alias list in /etc/aliases, if none exists.
3 For each alias, make a line in the file with the following format:
alias@virtualhost:localaddress1,localaddress2,...
For example, if your domain is “example.com” and you are running a virtual host for
“server.com,” and if you want to have the user “bob” get mail sent to
“postmaster@server.com,” you should enter:
This will take mail sent to your mail server for postmaster@server.com and send it to
designated recipient.
4 Save your file changes.
5 In Terminal.app, enter the following command:
postalias /etc/aliases
The text file is processed into a database for faster access.
Comentários a estes Manuais