[exim-dev] dnsdb lookup with multiple results "glued" togeth…

Página Inicial
Delete this message
Reply to this message
Autor: Sven Hartge
Data:  
Para: exim-dev
Novos Tópicos: [exim-dev] DKIM-mandated undocumented behaviour change (Re: dnsdb lookup with multiple results "glued" together)
Assunto: [exim-dev] dnsdb lookup with multiple results "glued" together
Hi Exim-Devs!

Before I file a bug in the tracker, I just want to discuss some problem I
have with a dnsdb lookup since 4.71 and if this is a usage problem of mine
or a real bug.

I use the following lookup to determine the ASN of an IP:

  warn
    set acl_c2 = ${extract{1}{\n}{${lookup dnsdb{txt=${extract{4}{.}{$sender_host_address}}.${extract{3}{.}{$sender_host_address}}.${extract{2}{.}{$sender_host_address}}.${extract{1}{.}{$sender_host_address}}.asn.fh-giessen.de}}}}
    log_message = ASN-LOOKUP: ${lookup dnsdb{${extract{4}{.}{$sender_host_address}}.${extract{3}{.}{$sender_host_address}}.${extract{2}{.}{$sender_host_address}}.${extract{1}{.}{$sender_host_address}}.asn.fh-giessen.de}}


This so far worked fine, but since 4.71, the returned result is different
than before:

2010-02-26 19:31:48 H=[186.63.14.189] Warning: ASN-LOOKUP: 22927186.60.0.014

In 4.69 this would look more like this:

2010-02-26 19:31:48 H=[186.63.14.189] Warning: ASN-LOOKUP: 22927

The lookup from the command line returns three results which in 4.69 were
concatenated with \n.

oweh@skuld:~$ host -t txt 189.14.63.186.asn.fh-giessen.de
189.14.63.186.asn.fh-giessen.de descriptive text "22927" "186.60.0.0" "14"

I suspect the merge of the DKIM code in
f62bfb6fe50ab4abd1bba9eff5c458316d5322e5 to have created the problem, but
I am not fluent enough in C and the exim codebase to be able to debug or
fix it myself.


Grüße,
Sven.

----
http://git.infradead.org/exim-src.git/blobdiff/2e659cd070c39af079c3cab2924986d83983a8b0..f62bfb6fe50ab4abd1bba9eff5c458316d5322e5:/src/lookups/dnsdb.c
http://git.infradead.org/exim-src.git/commit/f62bfb6fe50ab4abd1bba9eff5c458316d5322e5