Auteur: John Burnham Date: À: exim-users@exim.org Sujet: Re: [exim] Check for a particular header in exim router
-------------------
# Lookup host router for forwarder mails
forwarder_route:
driver = dnslookup
condition = "${if def:header_X-Mail-Forwarder{$h_X-Mail-Forwarder}}"
ignore_target_hosts = +loopback : 64.94.110.0/24
headers_add = "${perl{mailtrapheaders}}"
transport = remote_smtp
-------
You could try
condition = ${if def:h_X-Mail-Forwarder: {1}{0}}
instead. That returns 1 (true) if there is a X-Mail-Forwarder: header or 0 (false) if not as opposed to the contents of the header if the header is defined.