Apple 10.6 Server User Manual


 
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.
6 Save your le changes.
7 Using a text editor as the root user, add a conguration line to /etc/postx/main.cf so
Postx knows where to look for the virtual user le, if the line doesn’t exist:
virtual_alias_maps = hash:/etc/postfix/virtual
8 At the prompt, enter the following command:
postmap /etc/postfix/virtual
The virtual user le is processed for access by Postx.
9 At 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 Conguration