Re: [exim] wrong result of dnsdb lookup

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Victor Ustugov
Date:  
À: exim-users
Sujet: Re: [exim] wrong result of dnsdb lookup
Heiko Schlittermann via Exim-users wrote:
> Hi Victor,


hi

> forget my two other mails.


ok

> 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}}


This works for me. Thanks!

>     ${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


-- 
Best wishes Victor Ustugov  mailto:victor@corvax.kiev.ua
public GnuPG/PGP key:       https://victor.corvax.kiev.ua/corvax.asc
Skype ID: corvax_nb         JID: corvax_at_nb@???