Re: [exim] wrong result of dnsdb lookup

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-users
Betreff: Re: [exim] wrong result of dnsdb lookup
Hi Victor,

forget my two other mails.

Victor Ustugov <victor@???> (Mo 08 Mai 2017 18:37:56 CEST):

> # exim -be '${lookup dnsdb{defer_never,txt=d201702._domainkey.exim.org}}'
> v=DKIM1; k=rsa;
> p=MIG7MA0GCSqGSIb3DQEBAQUAA4GpADCBpQKBnQDKdPaDIXAcfltuNSAAHepxoQ2p6GUp1afnM7TWV2UCvDECnfebhi/QcLh7WYa5rt0wuKoTvNjyUI22oFoTe4MQJVELF7g33bnANG7eTIlQpjAUoo23Wga5bTvodw+cZin/0YK8Cbs0jkLcUpHzp12O6cYkl00H0YRg3E73LE9lEtJevYlNQ1T9i0rnXKqpnUb
>
> # host -t txt d201702._domainkey.exim.org
> d201702._domainkey.exim.org descriptive text "v=DKIM1\; k=rsa\;
> p=MIG7MA0GCSqGSIb3DQEBAQUAA4GpADCBpQKBnQDKdPaDIXAcfltuNSAAHepxoQ2p6GUp1afnM7TWV2UCvDECnfebhi/QcLh7WYa5rt0wuKoTvNjyUI22oFoTe4MQJVELF7g33bnANG7eTIlQpjAUoo23Wga5bTvodw+cZin/0YK8Cbs0jkLcUpHzp12O6cYkl00H0YRg3E73LE9lEtJevYlNQ1T9i0rnXKqpnUb"
> "U3CQJ/cMWGETQgwMCAwEAAQ=="


From the spec about dnsdb lookups:

    For TXT records with multiple items of data, only the first item is returned,
    unless a field separator is specified. To concatenate items without a
    separator, use a semicolon instead. For SPF records the default behaviour is to
    concatenate multiple items without using a separator.


    ${lookup dnsdb{>\n,: txt=a.b.example}}
    ${lookup dnsdb{>\n; txt=a.b.example}}
    ${lookup dnsdb{spf=example.org}}


    It is permitted to specify a space as the separator character. Further white
    space is ignored.



    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -