dkim: corrected log entry, added comment
This commit is contained in:
parent
9fdf741a20
commit
00a6d61c43
@ -80,9 +80,7 @@ use Socket qw(:DEFAULT :crlf);
|
||||
|
||||
sub init {
|
||||
my ($self, $qp) = (shift, shift);
|
||||
|
||||
$self->{_args} = { @_ };
|
||||
|
||||
$self->{_args}{reject} = 1 if ! defined $self->{_args}{reject};
|
||||
$self->{_args}{reject_type} ||= 'perm';
|
||||
}
|
||||
@ -196,7 +194,7 @@ sub handle_sig_invalid {
|
||||
elsif ( $prs->{reject} ) {
|
||||
return $self->get_reject(
|
||||
"invalid DKIM signature: " . $dkim->result_detail,
|
||||
"fail, invalid signature, reject policy"
|
||||
"invalid signature, reject policy"
|
||||
);
|
||||
}
|
||||
|
||||
@ -332,6 +330,7 @@ sub add_header {
|
||||
my $self = shift;
|
||||
my $header = shift or return;
|
||||
|
||||
# consider adding Authentication-Results header here as well
|
||||
$self->qp->transaction->header->add( 'X-DKIM-Authentication', $header, 0 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user