temp_resolver_failed is a transaction note
The mail hook sets a transaction note 'temp_resolver_failed', but the rcpt hook queried a connection note of the same name (which didn't exist, of course). Now it queries the transaction note.
This commit is contained in:
parent
24d09fa4a9
commit
b7668c0468
@ -41,7 +41,7 @@ sub hook_mail {
|
|||||||
sub hook_rcpt {
|
sub hook_rcpt {
|
||||||
my ($self, $transaction, $recipient, %args) = @_;
|
my ($self, $transaction, $recipient, %args) = @_;
|
||||||
|
|
||||||
if (my $host = $self->qp->connection->notes('temp_resolver_failed')) {
|
if (my $host = $transaction->notes('temp_resolver_failed')) {
|
||||||
# default of temp_resolver_failed is DENYSOFT
|
# default of temp_resolver_failed is DENYSOFT
|
||||||
return Qpsmtpd::DSN->temp_resolver_failed("Could not resolve " . $host);
|
return Qpsmtpd::DSN->temp_resolver_failed("Could not resolve " . $host);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user