[exim] Smarthost condition by h_From header variable

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Gallai János
Date:  
À: exim-users
Sujet: [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