On 11/17/2012 02:22 PM, Ansgar Wiechers wrote:
On 2012-11-17 Jan Johansson wrote:
Having mostly used Exim I am trying to sort out a few things with a
postfix (2.8.5-2~build0.11.04 on Ubuntu) install.
Basically, I want a forwarding mechanism that can map
us...@domainalpha.com<mailto:us...@domainalpha.com> to
anotheru...@anotherdomain.com<mailto:anotheru...@anotherdomain.com>
So, whats the easiest way to set this up? Manually handling flat files
would be sufficient.
That's what $virtual_alias_maps [1] is for.
Add the following line to main.cf:
virtual_alias_maps = hash:/etc/postfix/virtual
Create a file /etc/postfix/virtual with the mappings you need:
us...@domainalpha.com anotheru...@anotherdomain.com
Run "postmap /etc/postfix/virtual" to create the hash database.
NOTE that domainALPHA.com must be in an address class you control:
relay, local, or virtual_*.
The presence of the alias alone does not mean mail for the domain is
accepted.
For further information see the VIRTUAL_README [2].
[1] http://www.postfix.org/postconf.5.html#virtual_alias_maps
[2] http://www.postfix.org/VIRTUAL_README.html
Regards
Ansgar Wiechers
--
J.