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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nathan Huesken
Datum:  
To: exim-users
Betreff: Re: [exim] Run a command whenever a specific authenticated usersends a mail
I am much further now, thanks.

It looks now like this:
acl_check_data:
  warn  condition = ${if eq{$authenticated_id}{nhuesen@???} {yes}{no}}
          message = ${run{/bin/bash -c echo $h_To >> /tmp/local}{}}
          log_message = I would like to add $h_To


I get the correct log message in the mainlog, so the code is executed
(and it also tells me the correct h_To I would expect).

But it does not toch /tmp/local at all ... and I do not know why :(.

Thanks!
Nathan

On Thu, Apr 02, 2009 at 03:39:40PM +0100, Peter Bowyer wrote:
> 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
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>


--