[Exim] headers_rewrite in the transport section

Top Page
Delete this message
Reply to this message
Author: Klein, Stefan
Date:  
To: exim-users
Subject: [Exim] headers_rewrite in the transport section
Hi,

on my laptop i set up exim to use a smarthost, in our environment we have
shortform usernames and a mysql-DB with the shortnames and the mailadresses.

If i use:

|*@materna.de    "${lookup mysql{select eMail from tbl_Mitarbeiter \

|                               where ID_Mitarbeiter like \
|                               '${quote_mysql:$local_part}'}\
|                               {$value}fail}" TtFf


In the "rewrite section" it works as exspected, but if i use it in the
"remote_smtp" subsection of the transport section i get following error:

|$/usr/sbin/exim -brw skl@???
|2002-12-16 13:52:54 Exim configuration error
|domain missing in rewrite key string "$local_part}'}{$value}fail}" in line
285

Can you give me a hint what the problem is?

I realy want the mysql-lookup at sending time, so i can be sure the rewrite
doesn't fail because the mysql-server is unreachable. (I start exim from
cron with a check if the server is up).

I am using exim-3.36 from debian unstable recompiled with mysql-support.