Re: [exim] Assistance with authenticator syntax, please.

Top Pagina
Delete this message
Reply to this message
Auteur: nick
Datum:  
Aan: Jeremy Harris
Onderwerp: Re: [exim] Assistance with authenticator syntax, please.
On 31/10/13 12:43, Jeremy Harris wrote:
> On 31/10/13 12:29, nick wrote:
>> This is what I have as my latest attempt:
>>
>>     server_condition = ${if and{
>>                                                      ${lookup
>> ldap{ldap:///o=southover,c=uk?mail?sub? (&
>> (cn=${quote_ldap_dn:$1})(smtpauth=${quote_ldap:TRUE}))} }
>> ${ldapauth{user="cn=${quote_ldap_dn:$1},o=southover,c=uk"
>> pass=${quote:$2} ldap://ldap.southover.net/} }
>>                                                    } {yes}{no}
>>                                         }
>>     server_set_id=$2

>>
>> Which is an abject failure:
>> # exim -bV
>>       2013-10-31 11:15:50 Exim configuration error in line 229 of
>> /etc/exim/exim.conf
>>            option setting expected: ${lookup
>> ldap{ldap:///o=mistral,c=uk?mail?sub? (&
>> (cn=${quote_ldap_dn:$1})(spamcheck=${quote_ldap:TRUE}))} }

>>
>>
>> Any pointers or links to "Exim Syntax for Dummies" would be very useful.
>
> um, you're missing backslashes before the newlines, where you're
> splitting the long condition up?

Oh bother!!
I was mindful of the backslashes but it looks like I dropped them at
some point. Please ignore my foolishness.
This what happens when men try to multitask.


thanks for pointing that out....
n