Συντάκτης: Paul Shields Ημερομηνία: Προς: exim-users Αντικείμενο: [Exim] using LDAP within Exim
Hello
dont know if anyone can help, but I'm struggling to use LDAP for mailbox
authentication. Basically, we have Exim set up to work well with
SpamAssassin, as outlined in the configure snippet below.
We now need to perform an LDAP lookup before the Spam processing to ensure
that the receiving mailbox exists (the mail box is on another mail server
that we are relaying to). If the mailbox doesn't exist, then we bounce the
mail.
I've tried various scenarios, but just can't crack the correct syntax. Any
assistance gratefully received. (note that the settings below work fine
when the ldapcheck router is not there).
# This sends scanned mail to external server
forward:
driver = accept
no_verify
domains = +scan_domain1
condition = "${if or { {def:h_X-Spam-Flag:} {eq
{$received_protocol}{relayed}} } {1}{0}}"
transport = forward