Re: [exim] Using saslauthd with exim.

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Alexander Kitaev
Ημερομηνία:  
Προς: exim-users
Υ/ο: Phil Pennock
Αντικείμενο: Re: [exim] Using saslauthd with exim.
Hello,

Thank you very much Phil!

>> server_condition = ${if saslauthd{{$auth2}{$auth3}}{0}{1}}
>
> That looks very wrong: you appear to be inverting success/failure: "if
> authentication with saslauthd succeeds, then 0 (fail authentication)
> else 1 (succeed authentication)".


At first, I tried to to configure server fast, remaining on the
surface, and it has avoided my attention that configuration uses
LISP-like syntax and for some reason I thought that {1}{0} belongs to
"saslauthd" token, rather that to the "if" one. Now I understand well
what is going on and configured server the way I need.

Thank you very much for your help!

On 25 February 2011 21:33, Phil Pennock <exim-users@???> wrote:
> On 2011-02-25 at 20:33 +0100, Alexander Kitaev wrote:
>> server_condition = ${if saslauthd{{$auth2}{$auth3}}{0}{1}}
>
> That looks very wrong: you appear to be inverting success/failure: "if
> authentication with saslauthd succeeds, then 0 (fail authentication)
> else 1 (succeed authentication)".
>
>> However, I'd like saslauthd to be called as:
>>
>> [user=name] [service=exim] [realm=domain.com] [mech=sasldb]...
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch11.html#SECTexpcond
>
> The saslauthd condition takes up to 4 sub-parameters, the last two are
> optional:
>
>  saslauthd {{<user>}{<password>}{<service>}{<realm>}}
>
>
>  server_condition = ${if saslauthd{\
>        {${local_part:$auth2}}\
>        {$auth3}\
>        {exim}\
>        {${domain:$auth2}}}}
>
> -Phil
>




--
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!