diff --git a/lib/Mail/DMARC/PurePerl.pm b/lib/Mail/DMARC/PurePerl.pm index ba8cd649..97f1c92d 100644 --- a/lib/Mail/DMARC/PurePerl.pm +++ b/lib/Mail/DMARC/PurePerl.pm @@ -264,7 +264,8 @@ sub is_spf_aligned { $self->result->spf('fail'); return 0 if !$spf_dom; - my $from_dom = $self->header_from or croak "header_from not set!"; + my $from_dom = lc $self->header_from or croak "header_from not set!"; + $spf_dom = lc $spf_dom; if ( $spf_dom eq $from_dom ) { $self->result->spf('pass');