For example, if your domain is example.com, you are running a virtual host for “server.com,” and you want to have user bob get mail sent to “postmaster@server.com,” you should enter:

postmaster@server.com bob

This causes mail sent to your mail server for postmaster@server.com to be sent to user “bob.” Mail sent to postmaster@example.com is sent to some other designated recipient.

You can make a catch-all address to get all mail not sent to an existing user by using the following format:

@virtual_host_domain local_user_name

This is not recommended because it can increase the amount of junk mail you receive.

6Save your file changes.

7Using a text editor as the root user, add a configuration line to /etc/postfix/main.cf so Postfix knows where to look for the virtual user file, if the line doesn’t exist:

virtual_alias_maps = hash:/etc/postfix/virtual

8At the prompt, enter the following command:

postmap /etc/postfix/virtual

The virtual user file is processed for access by Postfix.

9At the prompt, reload mail server settings by entering the following command:

postfix reload

This causes mail sent to your mail server for postmaster@server.com to be sent to the real mail account for user bob. Meanwhile, mail to postmaster@example.com goes to another designated mail account.

76

Chapter 3    Mail Service Advanced Configuration

Page 76
Image 76
Apple 10.6 manual At the prompt, enter the following command