On 7/30/09 at 3:37 PM -0500 Larry Nedry wrote:
>This "woodpeckering" has been going on non-stop for the last 4 days.  On
>average each connection was retrying about 25 times per minute.  At its
>peaks there were about 30 connections, each retrying at about 60 times per
>minute.
>
>On 7/30/09 at 12:48 PM -0400 Chris Lewis wrote:
>>It _could_ be that rejecting at MAIL FROM is the problemmatic bit.  Try
>>delaying the DENYSOFT/DENYSOFT_DISCONNECT to the RCPT TO hook.
>
>FWIW, restarting my server didn't make any difference.  Delaying the
>rejection until the RCPT TO hook seems to have solved the problem.
>
>I'll keep a close eye on the logs for a while and if this problem doesn't
>return, I'll submit a patch.


Here's my patch for require_resolvable_fromhost.  As Chris Lewis suggested,
delaying rejection until the RCPT TO hook solved the problem.

Nedry

29c29
<       return Qpsmtpd::DSN->temp_resolver_failed("Could not resolve " .
$sender->host);
---
>         $transaction->notes('temp_resolver_failed', $sender->host);
41a42,51
> sub hook_rcpt {
>       my ($self, $transaction, $recipient, %args) = @_;
>
>       if (my $host = $self->qp->connection->notes('temp_resolver_failed')) {
>               return Qpsmtpd::DSN->temp_resolver_failed("Could not
>resolve " . $host);
>       }
>
>   return DECLINED;
> }
>

Reply via email to