Re: [exim] Authentication for sending

Pàgina inicial
Delete this message
Reply to this message
Autor: Dennis Davis
Data:  
A: exim-users
Assumpte: Re: [exim] Authentication for sending
>From: Michael Johnson <kaiser@???>
>Subject: Re: [exim] Authentication for sending
>Date: Tue, 19 Oct 2004 22:00:56 -0400
>To: exim-users@???
>
>On Oct 19, 2004, at 9:01 PM, Giuliano Gavazzi wrote:
>
>> At 5:45 pm -0400 2004/10/19, Michael Johnson wrote:
>>> Where in the configure file does this go? Would it be something in
>>> authenticators like this?:
>>>
>>> fixed_cram:
>>>    driver = cram_md5
>>>    public_name= CRAM-MD5
>>>    server_condition=${if and    {\
>>>                                        {!eq{$1}{}}\
>>>                                        {!eq{$2}{}}\

>>
>> indeed.
>
>The server returns an error:
>
>2004-10-19 21:55:04 Exim configuration error in line 728 of
>/usr/exim/configure:
> option "server_condition" unknown
>
>What did I mess up? That section of the configure file:
>
>######################################################################
>#                   AUTHENTICATION CONFIGURATION                     #
>######################################################################

>
># There are no authenticator specifications in this default
>configuration file.
>
>begin authenticators
>fixed_cram:
>    driver = cram_md5
>    public_name= CRAM-MD5
>#   server_secret = ${lookup{$1}lsearch{/etc/relayers}{$value}{fail}}
>     server_condition=${if and    {\
>                                        {!eq{$1}{}}\
>                                        {!eq{$2}{}}\
>                                        {pam{$1:${sg{$2}{:}{::}}}}\
>                                }\
>                {yes}{no}}

>
>#    server_set_id = $1

>
>I've tried with the last line (server_set_id) uncommented and commented.


There's no private expansion variable "server_condition" in the
cram_md5 authenticator. You need to do the expansion in the
"server_secret" private expansion variable. See Chapter 35 of the
exim specification.