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
Still does not work :(.

On Thu, Apr 02, 2009 at 04:54:34PM +0100, Dennis Davis wrote:
> On Thu, 2 Apr 2009, Nathan Huesken wrote:
>
> > From: Nathan Huesken <exim@???>
> > To: exim-users@???
> > Date: Thu, 2 Apr 2009 17:10:22 +0200
> > Subject: Re: [exim] Run a command whenever a specific authenticated    user    sends 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 :(.
>
> Try writing it as:
>
>            message = ${run{/bin/bash -c "echo $h_To >> /tmp/local"}{}}
> -- 
> Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
> D.H.Davis@???               Phone: +44 1225 386101

>


--