Permalink
Browse files

dmarc: skip processing for null sender

  • Loading branch information...
1 parent 4d1b9ff commit 3a47dd2ac28b87d89469d1dfa3321fe6cf5dc060 @msimerson msimerson committed Jan 9, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugins/dmarc
View
4 plugins/dmarc
@@ -106,6 +106,10 @@ sub data_post_handler {
my $dmarc = $self->{_dmarc};
$dmarc->init();
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 ); };
if ( $@ ) {
$self->log(LOGERROR, "unparseable from header: $from" );

0 comments on commit 3a47dd2

Please sign in to comment.