[exim] headers_remove expand with mysql fails

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Karl-Heinz Wild
日付:  
To: exim-users
題目: [exim] headers_remove expand with mysql fails
Hi list

I did an update from 4.82 to 4.84
I use in a transport the command header_removes
to write an ip to mysql mysql table to whitelist an
ip.

This method doesn't work since the update.

The command looks like

  remote_smtp:
    driver = smtp
    headers_remove  = ${lookup mysql{MYSQL_ADD_WLR}}
    ...


The macro for the sql

  MYSQL_ADD_WLR = \
    REPLACE whitelist_rcpt set \
        wlr_domain = '${quote_mysql:$sender_address_domain}', \
        wlr_user = '${quote_mysql:$sender_address_local_part}', \
        wlr_rcpt = '${quote_mysql:$local_part}@${quote_mysql:$domain}'


The error message looks

error message: "${quote_mysql" is not a known operator (or a } is missing in a variable reference)

Because of the updated version it seems to me there is some incompatibility
given.

Am I right?

Warm regards
Karl-Heinz