Re: [Exim] How run some command?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: user
Data:  
Para: exim-users
Asunto: Re: [Exim] How run some command?
On Sat, 14 Feb 2004, Nico Erfurth wrote:

> user@??? wrote:
>
> > I have problem with configuration my exim. I want run command in
> > local_delivery transport. But (i think) its imposible, so i write this:
> >
> > run:
> > driver = accept
> > condition = ${if !eq {$received_protocol}{run-done} {1}{0} }
> > transport = run_pipe
> >
> > run_pipe:
> > driver = pipe
> > command = /usr/local/exim/exim -oMr run-done -bS; /usr/local/bin/runme
> > $sender_address
> >
> > it dont work of course ;)
> >
> > I want make something like that.. Can anybody help me with this problem?
> > Or perhaps exist other way for run command..
>
> How about using ${run} in an unused option, and return a empty string,
> or the default? Or (ab)using the transport-filter?
>
> Nico
>


You helped me, i use ${run} but i have anothere problem..
How can i make that condition:

${if !eq{}{${lookup mysql {SELECT something FROM mail WHERE \
username='${local_part}'}{$value}}} {1}{0}}

if thats true then:

${run {/usr/local/bin/runme $sender_address}}


Thanks.