Re: [exim] $received_protocol

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Stanislaw Halik
Datum:  
To: exim-users
Betreff: 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/>