Configuring Postfix for Multiple Domains
Paul Sladen
ubuntu at paul.sladen.org
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/main.cf' configuration. The '/etc/postfix/virtual'
file contains lines like:
domain1.com domain1.com
emaila at domain1.com foo at this.machine.com
emailb at domain1.com bar at this.machine.com
emailc at domain1.com fred at flintstones.org
domain2.net domain2.net
emaila at domain2.net moo at this.machine.com
@domain2.net spam at somewhere.else.com
after being changed, the 'hash' version (binary representation) must be
updated by running:
sudo postmap /etc/postfix/virtual
Hope that helps,
-Paul
--
High on a tall bridge, surrounded by noisy lorries. Nottingham, GB
More information about the ubuntu-users
mailing list