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

Pàgina inicial
Delete this message
Reply to this message
Autor: Nathan Huesken
Data:  
A: exim-users
Assumpte: Re: [exim] Run a command whenever a specific authenticated usersends a mail
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?

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



Not working :(.
What could be wrong?

Thanks!
Nathan

On Thu, Apr 02, 2009 at 03:05:23PM +0100, Peter Bowyer wrote:
> 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
>
> --
> ## 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/
>


--