spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benny Pedersen ...@junc.eu>
Subject spamassassin dkim says invalid
Date Tue, 03 Dec 2019 08:56:58 GMT

while this simple perl gives pass

# verify a message
use Mail::DKIM::Verifier;

# create a verifier object
my $dkim = Mail::DKIM::Verifier->new();

# read an email from stdin, pass it into the verifier
while (<STDIN>)
{
     # remove local line terminators
     chomp;
     s/\015$//;

     # use SMTP line terminators
     $dkim->PRINT("$_\015\012");
}
$dkim->CLOSE;

# what is the result of the verify?
# my $result = $dkim->result;

print $dkim->result;


# how to use
cat email | above.pl

known problem ?

Mime
View raw message