Re: [exim-dev] dnsdb lookup question

Góra strony
Delete this message
Reply to this message
Autor: Lena
Data:  
Dla: exim-dev
Temat: 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 ~]#