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

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: exim users
Subject: Re: [exim] Run a command whenever a specific authenticated user sends a mail
2009/4/2 Nathan Huesken <exim@???>:
> Hi,
>
> I share my exim mail server with other users.
> Whenever I send a mail (I can be identified by my authentication) I
> would like to put the "To" header in my addressbook using an external
> command.
>
> To test it, I tried this:
> acl_check_data:
>  warn  authenticated = nathan@???
>          message = ${run{echo $h_To >> /tmp/local}}
>
> nathan@??? is my smtp login name.
> But /tmp/local does not appear when I send a mail.
>


As is noted in the docs for ${run, if you need a shell you have to
arrange it yourself, eg

${run{/bin/bash -c echo ....

Peter

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