Re: [exim] making run work

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jakob Hirsch
Datum:  
To: Marc Perkel
CC: Exim Mailing List
Betreff: Re: [exim] making run work
Marc Perkel wrote:

> I'm trying to get this to work in an ACL but the run part isn't running:


What do you mean by "isn't running"? The script is not executed or you
get always back "no"?

>        condition = ${run{/etc/exim/scripts/dict-attack 
> $sender_host_address}{yes}{no}}

>
> the dict-attack script is just and echo statement
>
> echo "$*" >> file


You have only this in the file? If yes, you have to put "#!/bin/bash" on
the top, as exim will not start a shell for you. If no, you made sure
exim can execute the script, the script can write to "file" (wherever it
is, you did not give a path)?


A nice way to test is (like always):

echo '${run{/tmp/test.sh $sender_host_address}{yes}{no}}' | exim -d -bh
1.2.3.4 -be