Re: [exim] Add a header when reverse DNS fails or defers?

Top Page
Delete this message
Reply to this message
Author: Marc Sherman
Date:  
To: exim-users
Subject: Re: [exim] Add a header when reverse DNS fails or defers?
Marc Sherman wrote:
>
> I'm trying a variation, using:
>
>     ${if eq {$host_lookup_failed}{1}{yes}{no}}

>
> It looks like that should get set to 1 for any failure, including a
> defer, but still be 0 for local submissions.


Hrm. If seems that a defer doesn't set host_lookup_failed to 1 (at
least in exim 4.34).

Here's teh latest thing I'm trying:

        condition = ${if and{{def:sender_host_address}\
            {!def:sender_host_name}}\
                         {yes}{no}}


We'll see what happens next time I get mail from a site with broken
reverse dns. It seems that stuff comes in droves except for when I want
to test it. :)

- Marc