Exim 4 pipe select command/script from mysql db

Posted by axel.klein on Server Fault See other posts from Server Fault or by axel.klein
Published on 2010-04-01T14:55:01Z Indexed on 2010/04/01 15:03 UTC
Read the original article Hit count: 529

Filed under:
|
|
|
|

Is there an option to run a mysql lookup in the pipe driver of exim?

MYSQL_Q_SCRIPT=SELECT script FROM MYSQL_EMAILTABLE WHERE domain='${quote_mysql:$domain}' AND local_part='${quote_mysql:$local_part}'
command = "${lookup mysql {MYSQL_Q_SCRIPT}{$value}

I am always getting an error like this:

"Expansion of "${lookup" from command "${lookup mysql {SELECT script FROM emails WHERE domain='${quote_mysql:$domain}' AND local_part='${quote_mysql:$local_part}'}{$value}}" in run_script transport failed: missing lookup type" The problem is that exactly the same query works fine in the appenddriver. So I do not see the mistake.

© Server Fault or respective owner

Related posts about exim4

Related posts about pipe