On Tue, Aug 31, 2010 at 08:07:52PM +0200, Marco Rebsamen wrote: > > Probably "mail" is the original address in most cases. Where is > > such mail routed? If to another server, these are "relay" domains, > > not virtual alias domains, unless you rewrite the address in transit... > > The Messages should be forwarded to the MS Exchange Server from which I > request the LDAP information.
Then these are relay domains not virtual alias domains, unless you rewrite the address to an internal domain specific to Exchange in transit. > I had this working on an older system. What I did there was, adding the > domains "sinus-elektro.ch" and "spinsch.ch" to "relay_domains" Which was the right thing to do. > and then I had a perl-script which updated the "local_receipient_maps" > table. Which is the wrong thing to do, since for relay domains, the validation table is "relay_recipient_maps" not "local_recipient_maps". You can use LDAP and skip the need to generate flat file tables, unless you want to protect AD from the query load... > If I now add these domains to relay_domains, postfix just > delivers > every message to one of these domains to the exchange without checking > if the address realy exists... Because you are not setting relay_recipient_maps. http://www.postfix.org/ADDRESS_CLASS_README.html -- Viktor.