Author: radu
Date: Tue Jun 3 00:35:59 2008
New Revision: 924
Modified:
trunk/Changes
trunk/lib/Qpsmtpd/PollServer.pm
Log:
Revert #923, there are objections against it because it is good to know
why the reverse DNS lookup failed.
Modified: trunk/Changes
==============================================================================
--- trunk/Changes (original)
+++ trunk/Changes Tue Jun 3 00:35:59 2008
@@ -1,6 +1,3 @@
- async: Set connection remote_host only when the reverse DNS lookup is
- successful
-
Create async version of dns_whitelist_soft, rhsbl and uribl plugins.
async: added pre- and post-connection hooks
Modified: trunk/lib/Qpsmtpd/PollServer.pm
==============================================================================
--- trunk/lib/Qpsmtpd/PollServer.pm (original)
+++ trunk/lib/Qpsmtpd/PollServer.pm Tue Jun 3 00:35:59 2008
@@ -183,7 +183,7 @@
ParaDNS->new(
finished => sub { $self->continue_read();
$self->run_hooks("connect") },
# NB: Setting remote_info to the same as remote_host
- callback => sub { $conn->remote_info($conn->remote_host($_[0])) if
$_[0] !~ /^[A-Z]+$/ },
+ callback => sub { $conn->remote_info($conn->remote_host($_[0])) },
host => $ip,
);