3.8 I have several virtual domains on my existing sendmail setup. How do I enable virtual hosting with Postfix?

Postfix configuration is substantially easier than sendmail. There is no m4 scripting to deal with and the config file uses a syntax that is plain English and easy to understand. The mydestination parameter in /etc/postfix/main.cf specifies what domains your machine will deliver locally, instead of forwarding to another machine. The default configuration is for your machine to receive mail for itself. You can specify zero or more domain names, /file/name patterns and/or type:name (e.g. hash:/etc/postfix/virtual) lookup tables, separated by whitespace and/or commas. A /file/name is replaced by its contents; type:name requests that a table lookup is done, typically from a virtual database. Virtual mapping of domains is disabled in a default install. To enable it, edit the virtual_maps parameter in the /etc/postfix/main.cf file and specify one or more lookup tables, separated by whitespace or commas. For example virtual_maps = hash:/etc/postfix/virtual. Here's an example of a virtual file:

   penguin.net, turkeyday.com, vanity.org, djb.com
   

Note that the file does not have to be named virtual as it is here it can be named anything you want to name it.