paul@964 | 1 | LDAP_PERSON_OUTGOING_QUERY = (&(|(mail=${quote_ldap:${sender_address_local_part}@${sender_address_domain}})\ |
paul@964 | 2 | (alias=${quote_ldap:${sender_address_local_part}@${sender_address_domain}}))\ |
paul@964 | 3 | (objectclass=inetorgperson)) |
paul@96 | 4 | |
paul@899 | 5 | ldap_person_outgoing: |
paul@899 | 6 | debug_print = "R: ldap_person_outgoing for $sender_address_local_part@$sender_address_domain" |
paul@96 | 7 | driver = accept |
paul@96 | 8 | unseen |
paul@96 | 9 | no_expn |
paul@96 | 10 | no_verify |
paul@96 | 11 | condition = ${if eq {}{${lookup ldap{ \ |
paul@1109 | 12 | user="$LDAP_SERVICE_BIND_DN" \ |
paul@1109 | 13 | pass=$LDAP_SERVICE_PASSWORD \ |
paul@1109 | 14 | $LDAP_SCHEME://$LDAP_HOST:$LDAP_PORT/$LDAP_BASE_DN?mail?sub?LDAP_PERSON_OUTGOING_QUERY} \ |
paul@96 | 15 | }}{no}{yes}} |
paul@96 | 16 | transport = people_outgoing_transport |