To create a Postfix-style alias:

1Create the file /etc/postfix/aliases, if none exists.

2For 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 user name bob”an alias of robert.fakeuser you enter:

robert.fakeuser: bob

This takes mail sent to your mail server for robert.fakeuser@example.com and sends it to the real mail account, bob@example.com.

3Save your file changes.

4In the Terminal application, enter the following command:

postalias /etc/postfix/aliases

The text file is processed into a database for faster access.

5At the prompt, enter the following command:

newaliases

The alias database will reload.

As a result, mail to robert.fakeuser@example.com is sent to user bob, giving Bob two effective mail addresses, bob@example.com and robert.fakeuser@example.com.

For further information about creating and maintaining mail aliases, see /etc/postfix/ aliases.

Setting Up Forwarding Mail Addresses for a User

You can use forwarding to provide a mail redirection service for users. Any mail sent to a user’s mail account is forwarded to the specified account.

There is an additional method of mail forwarding using Sieve scripting. To learn more about that method, see “Server-Side Mail Rules” on page 39.

To forward a user’s mail:

1In 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.

2Click the Mail tab.

3Select Forward.

4Enter the forwarding mail address in the Forward To field.

You can enter multiple addresses but they must be separated by a comma.

78

Chapter 3    Mail Service Advanced Configuration

Page 78
Image 78
Apple 10.6 Setting Up Forwarding Mail Addresses for a User, To create a Postfix-style alias, To forward a user’s mail