Re: [exim] Check for a particular header in exim router

Pàgina inicial
Delete this message
Reply to this message
Autor: soumya tr
Data:  
A: John Burnham
CC: exim-users@exim.org
Assumpte: Re: [exim] Check for a particular header in exim router
Hi,

Thanks of the quick update. But still its not working.

Mail logs shows its still using R=smart_route, instead of forwarder_route :(

On Wed, Dec 12, 2012 at 7:24 PM, John Burnham
<John.Burnham@???>wrote:

>
> -------------------
> # 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/
>




--
Regards,
Soumya
Linux Sytem Administrator
DirectI
<http://poornam.com>
"I like the dreams of the future better than the history of the past."