On Sat, Nov 17, 2012 at 03:24:33PM +0100, Jeroen Geilman wrote: > 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. I think you read too much into the question. The OP appeared to asking about basic virtual_alias_maps use; nothing was said about how/whether to accept the mail. Maybe it's already being accepted under permit_mynetworks, or via sendmail(1)? > >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 -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: