Re: [exim] $received_protocol

Pàgina inicial
Delete this message
Reply to this message
Autor: Stanislaw Halik
Data:  
A: exim-users
Assumpte: Re: [exim] $received_protocol
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.

--
Kocia galeria - <http://koty.foo.pl/>