-------------------
# 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.
John
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/