Skip to content

Commit

Permalink
Merge pull request smtpd#244 from priyadi/dmarc-fix
Browse files Browse the repository at this point in the history
Fix DMARC authentication-result string
  • Loading branch information
msimerson committed Feb 16, 2016
2 parents 79deb8b + feb63c9 commit 9de7c37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/dmarc
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ sub check_dmarc {
};

my $disposition = $dmarc->result->disposition;
my $auth_str = "dmarc=$disposition";
$auth_str = " (p=" . $pol->p . ")" if $pol;
my $result = $dmarc->result->result;
my $auth_str = "dmarc=$result";
$auth_str .= " (p=" . $pol->p . ")" if $pol;

if ( $dmarc->result->result eq 'pass' ) {
$self->log(LOGINFO, "pass");
Expand Down

0 comments on commit 9de7c37

Please sign in to comment.