From: Vasya Pupkin on
Hello.

I wonder, how postfix handles multiple entries like this:

reject_rbl_client hostkarma.junkemailfilter.com=127.0.0.2,
reject_rbl_client hostkarma.junkemailfilter.com=127.0.0.4,

Will it try to lookup address every time, or it is smart and will use
previous lookup result to compare with next address?

From: Ralf Hildebrandt on
* Vasya Pupkin <postfix-list(a)bsrealm.net>:
> Hello.
>
> I wonder, how postfix handles multiple entries like this:
>
> reject_rbl_client hostkarma.junkemailfilter.com=127.0.0.2,
> reject_rbl_client hostkarma.junkemailfilter.com=127.0.0.4,
>
> Will it try to lookup address every time,

No

> or it is smart and will use previous lookup result to compare with next
> address?

Indeed. And that's actually documented

--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hildebrandt(a)charite.de | http://www.charite.de


From: Ralf Hildebrandt on
* Ralf Hildebrandt <Ralf.Hildebrandt(a)charite.de>:

> Indeed. And that's actually documented

http://www.postfix.org/STRESS_README.html

Although the above example shows three RBL lookups (lines 4-6),
Postfix will only do a single DNS query, so it does not affect the
performance.

--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hildebrandt(a)charite.de | http://www.charite.de