Re: [exim-dev] dnsdb lookup question

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Lena
Data:  
Para: exim-dev
Assunto: Re: [exim-dev] dnsdb lookup question
> I'll probably wrap Perl's Net::DNS module into a readsocket lookup
> as I don't have Perl functionality in Exim in this environment.


Or you can use
${if match{${run{/usr/local/bin/dig +short @... ...}}}{\N\.\N}}

On my VPS (obsolete FreeBSD 6) `dig` is in /usr/bin :

[root@lena ~]# exim -be '${if match{${run{/usr/bin/dig +short @8.8.8.8 1.0.0.127.cbl.abuseat.org}}}{\N\.\N}}'

[root@lena ~]# exim -be '${if match{${run{/usr/bin/dig +short @8.8.8.8 2.0.0.127.cbl.abuseat.org}}}{\N\.\N}}'
true
[root@lena ~]#