[Exim] Lookup problem

Pàgina inicial
Delete this message
Reply to this message
Autor: Roxik
Data:  
A: exim-users
Assumpte: [Exim] Lookup problem
Hello

I have small problem.
I write script to send sms message (notify only). She name is: pow
syntax of pow:

pow <number> <address> <size> <subject>

So, i wrote this director:

sms_director:
 driver =smartuser
 condition = "${if or {{match {$h_precedence:} {(?i)junk|bulk|list}} \
    {eq {$sender_address} {}}} {no} {yes}}"
 require_files = /etc/virtual/$domain/sms
 no_verify
 transport = sms

and it work correct..

now trasport:

sms:
 driver = pipe
 command = "/usr/bin/pow ${lookup {*} lsearch {/etc/virtual/${domain}/sms}} ${sender_address} ${message_size} ${h_Subject}"
 prefix =
 suffix =
 check_string =
 escape_string =
 # for debugging change return_output to true
 return_output = false
 return_path_add = false
 user = mail
 group = mail
 path = "/bin:/sbin:/usr/bin:/usr/sbin"

But it does not work...
exim display this error message:
T=sms defer (0): Expansion of "${lookup" from command "/usr/bin/pow ${lookup {*} lsearch {/etc/virtual/${domain}/sms}} ${sender_address} ${message_size} ${h_Subject}" in sms transport failed: missing lookup type

What is wrong? I have a same line in quota parameter:
 quota = ${lookup {*} lsearch {/etc/virtual/${domain}/quota} }
and its work.. but in sms does't

syntax of sms file:
 <local_part>  <number>
 <local_part2> <number2>
etc...

Can some help me?


I greet
Roxik