Categories
Unix Notes x.opus1.com

Postfix Virtual Domain Hosting Howto

Postfix Virtual Domain Hosting Howto

1 /etc/postfix/main.cf:
2 virtual_alias_domains = example.com …other hosted domains…
3 virtual_alias_maps = hash:/etc/postfix/virtual
4
5 /etc/postfix/virtual:
6 postmaster@example.com postmaster

Handy

Execute the command

“postmap /etc/postfix/virtual”

after changing the virtual file, and execute the command

“postfix reload”

after changing the main.cf file.