[exim] Smarthost condition by h_From header variable

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Gallai János
Data:  
Para: exim-users
Asunto: [exim] Smarthost condition by h_From header variable
Dear Users,

I am trying to create a smarthost manualroute route depending on From:
header. Here is my router:

smarthost:
driver = manualroute
domains = ! +local_domains
condition = ${if eq{${domain:$h_From:}}{domain.com}}
transport = remote_smtp
route_data = XXX.XXX.XXX.XXX
no_more

What have I done wrong? Why is $h_From: variable empty in manualroute
driver?

How to make a correct condition to check the From header?

Thanks in advance,

János