On 31/10/13 10:50, Jeremy Harris wrote:
On 30/10/13 12:35, nick wrote:
Is it just the if... and portion you need?

If so:  ${if and{  {cond1}  {cond2}  {as_many_as_you_like} }}

(  ldapauth{}   is suitable for cond2 )

Thanks for the reply John - I have tried that, and many other variants:

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. :-)


kind regards,
n.


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to