[Exim] exim -bh does not log certain conditions

Top Pagina
Delete this message
Reply to this message
Auteur: Giuliano Gavazzi
Datum:  
Aan: exim-users
Onderwerp: [Exim] exim -bh does not log certain conditions
perhaps a stupid question, but:
exim -bh does not log certain conditions. This is a snippet of rcpt acl:


warn condition = ${if  !eqi \  ******** this condition not logged in test below
                   {${extract{-2}{.}{$sender_host_name}{$value}fail}}\
                   {${extract{-2}{.}{$sender_helo_name}{$value}fail}}\
                         {yes}{no}}
      set acl_c1 = 1
      condition = ${if  eq \
                   {${lookup dnsdb{A=$sender_helo_name}{$value}{}}}\
                   {$sender_host_address}\
                         {yes}{no}}
      set acl_c1 = 0


warn condition = ${if  !eqi \   ********* again not logged
                   {${extract{-2}{.}{$sender_host_name}{$value}fail}}\
                   {${extract{-2}{.}{$sender_helo_name}{$value}fail}}\
                         {yes}{no}}
      condition = ${if  !eq \
                   {${lookup dnsdb{A=$sender_helo_name}{$value}{}}}\
                   {$sender_host_address}\
                         {yes}{no}}
      set acl_c1 = 2



Now the test. Note that for the given IP value $sender_host_name is empty.

exim -bh 80.90.1.236
[...]
>>> looking up host name for 80.90.1.236
>>> IP address lookup yielded ip1-236.donaw.com
>>> no IP address found for host ip1-236.donaw.com (during SMTP
>>>connection from [80.90.1.236])

[...]
HELO o-8wew2s75xqcfo.me
[...]
250 mailhost.humph.com Hello o-8wew2s75xqcfo.me [80.90.1.236]
MAIL FROM: inessential
RCPT TO: inessential
[...]
>>>  processing "warn"
>>>  check set acl_c1 = 1
>>>  check condition = ${if  eq {${lookup
>>>dnsdb{A=$sender_helo_name}{$value}{}}}{$sender_host_address}{yes}{no}}
>>>                  = no
>>>  warn: condition test failed
>>>  processing "warn"
>>>  check condition = ${if  !eq {${lookup
>>>dnsdb{A=$sender_helo_name}{$value}{}}}{$sender_host_address}{yes}{no}}
>>>                  = yes
>>>  check set acl_c1 = 2
>>>  warn: condition test succeeded


Thanks

Giuliano