Re: [exim] Authentication for sending

Etusivu
Poista viesti
Vastaa
Lähettäjä: Giuliano Gavazzi
Päiväys:  
Vastaanottaja: Michael Johnson, Exim-users
Kopio: 
Aihe: Re: [exim] Authentication for sending
At 4:08 pm -0400 2004/10/20, Michael Johnson wrote:
>So now, I have:
>
>fixed_cram:
>    driver = cram_md5
>    public_name= CRAM-MD5
>#   server_secret = ${lookup{$1}lsearch{/etc/relayers}{$value}{fail}}
>     server_secret=${if and    {\
>                                        {!eq{$1}{}}\
>                                        {!eq{$2}{}}\
>                                        {pam{$1:${sg{$2}{:}{::}}}}\
>                                }\
>                {yes}{no}}

>
>      server_set_id = $1

>
>I've tried it with the server_set_id commented out and as is, and
>neither way seems to work. I'm seeing the following in my logs:
>
>535 Incorrect authentication data (set_id=michael)


well, how do you think that a server_secret = to a boolean value is
going to work? The server_secret is the password in clear, so you
could lookup the user ($1) in a database to find the corresponding
password.

Giuliano