Skip to content

Commit

Permalink
lowercase match from and envelope-from domains (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio authored Oct 22, 2024
1 parent c535e13 commit e55a7ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mail/DMARC/PurePerl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e55a7ce

Please sign in to comment.