+################################
+# Any outgoing mail sent by a user from a domain in local_hosts has its From:
+# address and envelope From address rewritten to use his primary mail address
+# from ldap.
+#
+#################################
+
+*@+real_domains \
+ "${lookup ldap {LDAPURL?mail?sub?(uid=${quote_ldap:$local_part})} \
+ {$value}fail}" Ff
+
+# vim: set sts=2 expandtab sw=2 ai: