Re: [exim-dev] dnsdb lookup question

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Lena
Fecha:  
A: exim-dev
Asunto: 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 ~]#