Since I can't figure out what it is you're looking for, I have little advice for you.
Messaging Server by default has a high resistance to being used as a relay. By default, only your internal users can use it to send to ip addresses outside your system.
Adding additional ldap lookups is typically a very fragile and performance-expensive trick. To be used only if you really need it. Most sites don't.