exim: Completely review the exim configuration.
[matthijs/servers/drsnuggles.git] / etc / exim4 / conf.d / rewrite / 10_ldap
1 ################################
2 # Any outgoing mail sent by a user from a domain in local_hosts has its From:
3 # address and envelope From address rewritten to use his primary mail address
4 # from ldap.
5 #
6 #################################
7
8 *@+real_domains \
9         "${lookup ldap {LDAPURL?mail?sub?(uid=${quote_ldap:$local_part})} \
10         {$value}fail}" Ff
11
12 # vim: set sts=2 expandtab sw=2 ai: