Re: [exim] Run a command whenever a specific authenticated u…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Peter Bowyer
Päiväys:  
Vastaanottaja: exim users
Aihe: Re: [exim] Run a command whenever a specific authenticated user sends a mail
2009/4/2 Nathan Huesken <exim@???>:
> Hi,
> Thanks for the fast reply. I must admit that I have problems with the
> exim documentation. How do I find the documentation for run?



http://www.exim.org/exim-html-current/doc/html/spec_html/ch11.html#SECTexpansionitems


>
> I now changed the line as you suggested, addinf the /bin/bash -c.
> No help.
>
> But I also add another debug message to that line (see below).
> This message does not appear in the exim4 logs.
>
> So I guess, the authentication criteria is wrong ...
> I tried it without the domain:
>
> acl_check_data:
>  warn  authenticated = nhuesken
>          message = ${run{/bin/bash -c echo $h_To >> /tmp/local}}
>          message = This is a debug message


Ah, you also need to read the docs for 'authenticated = ...'. You're
testing for an authentication mechanism called 'nhuesken'.

Try 'condition = ' with some expression involving $authenticated_id instead.

Peter


--
Peter Bowyer
Email: peter@???
Follow me on Twitter: twitter.com/peeebeee