[Exim] running external commands

Page principale
Supprimer ce message
Répondre à ce message
Auteur: B .Schulte
Date:  
À: exim-users
Sujet: [Exim] running external commands
Hello newsgroup,

I tried to do some checks in in my acl_check_rcpt "outside" exim 4.34 in an
external command... so I read the fine manual, and found:
" ${run{<command> <args>}{<string1>}{<string2>}} "
OK...
so I modified my ACL like this:

/* this is the first check of this acl ... */
deny    condition = ${run {/path/to/prg/myprg $sender_address
$local_part@$domain} {1} {0}}
        message = "some useful info ... blah"


I checked it with exim -bh 127.0.0.1
....
and I always get the same : "condition check failed" ... though the programm
itslef works properly....
So my second attempt:
/* very simple test (?) */
warn message = ${run {echo $sender_address $local_part@$domain}}

- ---> I got no message, the condition check tells me the warning should be
printed ....

What am I doin wrong ?!



- ------------------------------
B. Schulte
- ------------------------------