Re: [exim] server_condition syntax help?

Top Page
Delete this message
Reply to this message
Author: Odhiambo G. Washington
Date:  
To: exim-users
Subject: Re: [exim] server_condition syntax help?
* On 11/08/05 13:52 -0700, Joe Kocsis wrote:
> 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='$1@???') 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


@Mail is a completely virtual-ized system, so you are trying to do the
wrong thing! If you don't believe me, then ask this in the @Mail forum.
Every account in @Mail _MUST_ belong to a domain, so let $1 be what it
is supposed to be - a full e-mail address;)


        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington                    . WANANCHI ONLINE LTD (Nairobi, KE)  |
wash () WANANCHI ! com            . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223            . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121            . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
                         --from a /. post