[Exim] Rewriting problem

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Elimar Riesebieter
Data:  
Para: Exim-Users
Asunto: [Exim] Rewriting problem
Hi all,

as mentioned in the subject, I want to rewrite following headers
depending of the sender domain:
Return-path
From (not From: !)
Sender:

The rewriting rule is as follows:

*@my.local.domain\
${if eq {${lc:$sender_address_domain}}{foo\.bar}{true} fail}:\
        ${lookup{$1}lsearch{/etc/email-addresses.foo}\
        ${value}fail} frFs


A restart of exim puts the error

unknown rewrite flag character (e) in line 459 (could be
missing quotes round replacement item)

on screen?

line 459 is line 4 in the above rule. That means letter e of value is mentioned
as a rewrite flag?

The point is: I want to modify the headers according to the mailaddress out of
the From: Header. Is there maybe another possibility?


--
On the keyboard of life you have always
to keep a finger at the escape key;-)