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

Top Page
Delete this message
Reply to this message
Author: Simon Beale
Date:  
To: Nathan Huesken
CC: exim-users
Subject: Re: [exim] Run a command whenever a specific authenticated usersends a mail
> Still does not work :(.

Does the user exim is running as have permission to write into that file?

> 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

>>
>
> --
>
> --
> ## 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/
>