Skip to content

Commit

Permalink
Merge feb63c9 into 8f14cc0
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed May 26, 2015
2 parents 8f14cc0 + feb63c9 commit 470fe1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions plugins/dmarc
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
2 changes: 1 addition & 1 deletion plugins/helo
Expand Up @@ -345,7 +345,7 @@ sub invalid_localhost {
$self->log(LOGDEBUG, "pass, is localhost");
return;
}
if ($host && lc $host eq 'localhost') {
if ($host && lc $host ne 'localhost') {
$self->log(LOGDEBUG, "pass, host is localhost");
return;
};
Expand Down

0 comments on commit 470fe1e

Please sign in to comment.