dmarc: skip processing for null sender
This commit is contained in:
parent
4d1b9ffe32
commit
3a47dd2ac2
@ -106,6 +106,10 @@ sub data_post_handler {
|
|||||||
my $dmarc = $self->{_dmarc};
|
my $dmarc = $self->{_dmarc};
|
||||||
$dmarc->init();
|
$dmarc->init();
|
||||||
my $from = $transaction->header->get('From');
|
my $from = $transaction->header->get('From');
|
||||||
|
if ( ! $from ) {
|
||||||
|
$self->log(LOGINFO, "skip, null sender" );
|
||||||
|
return $self->get_reject("empty from address, null sender?");
|
||||||
|
};
|
||||||
eval { $dmarc->header_from_raw( $from ); };
|
eval { $dmarc->header_from_raw( $from ); };
|
||||||
if ( $@ ) {
|
if ( $@ ) {
|
||||||
$self->log(LOGERROR, "unparseable from header: $from" );
|
$self->log(LOGERROR, "unparseable from header: $from" );
|
||||||
|
Loading…
Reference in New Issue
Block a user