On Mon, Mar 05, 2012 at 02:30:16PM -0500, Wietse Venema wrote: > Ben Rosengart: > > > then use smtp_generic_maps, to convert from the Postfix-canonical > > > form to that specific external form. > > > > So use transport(5)? If I want to rewrite to form x, use transport x and > > x_generic_maps, and then transport y and y_generic_maps for form y, etc? > > Yes. I did context-dependent output rewriting in Sendmail many years > before I got involved with Postfix.
Alright. I have an ldap_table(5)-based map which, I have verified, returns "sometransport:" when the input key corresponds to one type of LDAP object, and "" otherwise. This is good, I think. However, the input key needs to be the sender address -- so should I be using sender_dependent_default_transport_maps? transport(5) is not, as far as I can tell, going to do it for me. > > That makes sense; and I see in ldap_table(5) a pattern for using LDAP > > to drive transport decisions. > > > > The next question is, how to make all this conditional on the ACL match? > > I pray for you that this can be done in the LDAP/SQL query. I can't tell what you have in mind here, but I'm going to hold off on trying to figure out the ACL piece until I have the basic functionality working. Thank you, -- Ben Rosengart "Like all those possessing a library, Sendmail, Inc. Aurelian was aware that he was guilty of +1 718 431 3822 not knowing his in its entirety [...]" -- Jorge Luis Borges NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.