X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Fexim4%2Fconf.d%2Frewrite%2F10_ldap;fp=etc%2Fexim4%2Fconf.d%2Frewrite%2F10_ldap;h=f994d6556f9356f1a0ea23f730adbd6b97f66977;hb=00913fc5c4f0bd4a78df5fb067cfb10392aebe7c;hp=0000000000000000000000000000000000000000;hpb=0625c01974df320cade3f9cd56674bcdfee0d9f3;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/exim4/conf.d/rewrite/10_ldap b/etc/exim4/conf.d/rewrite/10_ldap new file mode 100644 index 0000000..f994d65 --- /dev/null +++ b/etc/exim4/conf.d/rewrite/10_ldap @@ -0,0 +1,12 @@ +################################ +# 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: