Configuring Postfix for Multiple Domains

Paul Sladen ubuntu at
Sun Sep 3 01:27:10 UTC 2006

On Sat, 2 Sep 2006, Karl-Heinz Schulz wrote:

Hello Karl-Heinz,

> How can I configure Postfix to allow me the use of several domains using
> one IP

The secret is a line similiar to:

  virtual_maps = hash:/etc/postfix/virtual

in the '/etc/postfix/' configuration.  The '/etc/postfix/virtual'
file contains lines like: 
  emaila at    foo at
  emailb at    bar at
  emailc at    fred at 
  emaila at    moo at          spam at

after being changed, the 'hash' version (binary representation) must be
updated by running:

  sudo postmap /etc/postfix/virtual

Hope that helps,

High on a tall bridge, surrounded by noisy lorries.  Nottingham, GB

More information about the ubuntu-users mailing list