Hey Fred,

What Im trying to accomplish is something like this..

server_condition = ${if eq{$1}{${lookup mysql{SELECT Account FROM
UserSession WHERE (Account='$1' or Account='[EMAIL PROTECTED]') and
Password='$2'}{$value}fail}}{1}{0}}

I need to be able to authenticate if the domain is left off and would like to 
supply a default domain.. ex: domain.com

Thanks..

Joe


Fred Viles wrote:

>On 11 Aug 2005 at 13:26, Joe Kocsis wrote about
>    "[exim] server_condition syntax help":
>
>| Can someone help me understad the syntax of the server_condition?
>| 
>| server_condition = ${if eq{$1}{${lookup mysql{SELECT Account FROM
>| UserSession WHERE Account='$1'  and Password='$2'}{$value}fail}}{1}{0}}
>| 
>| I've been searching for hours and can't find an explanation..
>
>The syntax looks OK to me.  A little more context and a description 
>of what doesn't work might be helpful.  What authenticator does this 
>appear in, PLAIN (where you'd want $2 and $3, not $1 and $2) or 
>LOGIN?  Is the lookup failing, or returning a spelling of Account 
>that doesn't match?  How are you testing?  What does the log show?
>
>- Fred
>
>
>
>
>
>  
>


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

Reply via email to