Re: [exim] Detecting a deferred sender callout verification

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] Detecting a deferred sender callout verification
Thomas Jacob wrote:
> But I would like to know also if callout verification resulted in a
> defer, so
> that I could for instance do a defer !verify = reverse_host_lookup in
> such
> a case.
>
> Question: Is it somehow possible to find out in a condition check
> whether the
> last sender verify callout resulted in a :defer:?


# Technique for explicitly seeing defers; credit andrew@???
sverify_callout:
  warn          set acl_c8 =    defer
                # Easynet puts a 30s delay on bounce inputs :-(
  accept        verify =        sender/callout=60s,random
                set acl_c8 =    accept
  warn          set acl_c8 =    deny
  deny


.
.
.
foobar:
.
.
.
  warn          acl =           sverify_callout
  accept        condition =     ${if eq {$acl_c8}{accept}}
  deny          condition =     ${if eq {$acl_c8}{deny}}
  accept        acl =           sverify_deferred




Cheers,
Jeremy