Hello,
I'd like to autenticate useres from diffrent tables in mysql
depending on the domain.
I tried the following:
fixed_plain:
driver = plaintext
public_name = PLAIN
server_condition = \
${if eq {${extract{2}{@}{$2}}} {this.domain} \
{ \
${if crypteq {$3} \
{${lookup mysql{select from this.domain ...}{$value}fail}}}{0}{1}
\
}{ \
${if crypteq {$3} \
{${lookup mysql{select from other.domain...}{$value}fail}}}{0}{1}
\
}}
server_set_id = $2
i got from exim:
auth plain AHQjZXhpbTEuZ3Jhei5pbm9kZS5hdABzd3RhY2FkMTQ=
child 16033 ended: status=0xb
if i try this with simple authentfication:
${if crypteq {$3} \
{${lookup mysql{select ....}{$value}fail}} \
{1}{0} }
it worked.
any suggestions?
maby a better way to do this?
Robert