[exim] Smarthost condition by h_From header variable

Góra strony
Delete this message
Reply to this message
Autor: Gallai János
Data:  
Dla: exim-users
Temat: [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