Thank you mouss! I've neglected to inform that I am already using transports:
inside.XXX.COM smtp:exchange-server.XXX.COM XXX.com smtp:exchange-server.XXX.COM YYY.com smtp:[exchange-server.YYY.COM] ZZZ.com smtp:[192.168.222.1] I need to be able to look aliases *before* using transports. Right now, if I send to a user in domain ZZZ.COM, lookups in aliases do not happen, though I want them to. The reason is that we have users for all domains co-located and all email will flow through me, and I want to be able to control the final destinations for these few individuals, but for the larger pool of users and DL's, I simply wish for them to just use transports. Is there a way to use virtual_alias_maps for a domain *first*, then if not found in there to use transports for a specific domain? Allowing the exchange server figure out if it is a valid user or not? Can this be done for say 12 domains? Thanks again, .vp > Date: Wed, 30 Jul 2008 00:44:00 +0200 > From: [EMAIL PROTECTED] > CC: postfix-users@postfix.org > Subject: Re: Aliases Lookups, not found? Then Smarthost > > [EMAIL PROTECTED] wrote: > > Hello All; > > > > I currently have the following setup in my main.cf: > > > > alias_maps = dbm:/etc/postfix/aliases, nis:mail.aliases > > > > I've also enabled myself to receive email for about 15 domains. > > > > Everything works just fine, but because of some new domains I am now > > charged with maintaining, I am now faced with how I am going to synchronize > > these new domains users into my aliases, preferably in a way that would > > require very little effort on my part. > > > > What I am looking for is a way to forward all email for say domain XXX.COM > > to host server-1, if a users account is not found locally in either my > > aliases dbm or my NIS maps, ditto for domain ZZZ.com to smtp host server-2. > > Some of the users for XXX.COM might be residing at my domain/environment, > > therefore I need to first lookup locally before forwarding. Finally, the > > next stop on this forwarding would be Microsoft AD/bridgehead servers, just > > in case that matters. > > > > > use a shared map that contains all users and for each user contains the > host where email should go. you can either use virtual_alias_maps: > > [EMAIL PROTECTED] [EMAIL PROTECTED] > > if the final host doesn't like the rewritten address, you can use > smtp_generic_maps to rewrite it back (this happens after transports, so > doesn't break the virtual alias functionality). > > or you can use transports: > > [EMAIL PROTECTED] relay:[host10] > > if you use transports, you need to pre-process the file to remove the > transport on the host itself (where the transport is obviously local: > and not relay:[host10]). >