Kevin A. McGrail wrote:

I'm looking at the built-in Macros and the _ macro in the SendmailMacros hash looks like a possibility to replace doing a reverse lookup on hosts. The theory being (and someone else has mentioned this) that this portion of my reverse DNS check in the milter is duplicative of a reverse PTR lookup.

But you are already given the result of Sendmail's reverse-lookup in the
$hostname argument to filter_relay and friends, and it's in the
$RelayHostname global variable after filter_begin.

But even if you make a duplicate DNS lookup, it should be fast because
the answer is cached (you ARE running a caching DNS server, right? :-))

Regards,

David.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to