Re: [exim] $received_protocol

Top Page
Delete this message
Reply to this message
Author: Steve Sargent
Date:  
To: exim-users
Subject: Re: [exim] $received_protocol
Sorry, I should have specified that.

It was being run from the trusted exim user.




Stanislaw Halik wrote:
> On Fri, May 26, 2006, Steve Sargent wrote:
>
>>exim -d -bh 138.37.6.7 -oMr local -oMi 138.37.6.34
>
>
>>I'm testing this ACL:-
>
>
>># accept non lists messages from sympa on the localhost
>>accept  message = (RCPT) accept local message
>>#          condition = ${if and {\
>>#                        { eq {$received_protocol} {local}}\
>>#                        { eq {$caller_uid}{${extract{3}{:}{${lookup 
>>passwd{exim}{$value}{fail}}}}}}}\
>>#                      {true}{false}}

>
> [...]
>
>
>>The $received_protocol variable has 'smtp' in it when I expected it to
>>be 'local'!!
>
>
>>What have I done wrong, or have I completely misunderstood how it's
>>supposed to work?
>
>
> Run it from a trusted user, only those can set the protocol name freely.
>
>


--
Steve Sargent, Vox +44 020 7882 3220, Fax +44 020 8980 2001
QMUL Computing Services, Mile End Road, London E1 4NS, UK
Email : S.L.Sargent@???
WWW page: http://www.qmul.ac.uk/~cgaa160/index.html

                                 PIPER       _|_
                                 PA28R  ____/___\___
                                 ___________[=o=]___________
                                 ARROW    e/  o  \e