
Chapter 1 Mail Service Setup 39
Postfix-style aliases require command-line administration, are less obvious to audit.
However, the major benefit to using Postfix-style aliases is their use with Sieve scripting.
Only aliases generated Postfix-style can be acted upon by Sieve scripts.
To create a Mac OS X Server-style alias:
1 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.
2 Click the Basic tab.
3 Double-click under the last entry in the Short Names list.
4 Enter the alias.
For example, if your domain is “example.com” and you want to give username “bob” an
alias of “robert.fakeuser” you should enter:
robert.fakeuser
5 Click Save.
To create a Postfix-style alias:
1 Create a file to be used as an alias list in /etc/postfix/aliases, if none exists.
2 For each alias, make a line in the file with the following format:
alias:localaddress1,localaddress2,...
For example, for your domain example.com, if you want to give username “bob” an
alias of “robert.fakeuser” you should enter:
robert.fakeuser: bob
3 Save your file changes.
4 In Terminal.app, enter the following command:
postalias /etc/aliases
The text file is processed into a database for faster access.
5 At the prompt, enter the following command:
newaliases
The alias database will reload.
Comentários a estes Manuais