<div dir="ltr"><div><div>hello,<br><br>on my debian system with amavisd-new-2.10.1 i found a problem with DKIM-verify and big messages.<br><br></div>if there is a standard mail it works, but when it got an attachment it fails.<br><br></div>the debug message looks like this:<br><div><br>Oct  4 10:57:06 mail amavis[8781]: (08781-02) SA dbg: eval: From 2nd level domain: <a href="http://gmail.com" target="_blank">gmail.com</a>, EnvelopeFrom 2nd level domain: <a href="http://gmail.com" target="_blank">gmail.com</a><br>Oct  4 10:57:06 mail amavis[8781]: (08781-02) SA dbg: dkim: performing public key lookup and signature verification<br>Oct  4 10:57:06 mail amavis[8781]: (08781-02) SA dbg: dkim: DKIM, i=@<a href="http://gmail.com" target="_blank">gmail.com</a>, d=<a href="http://gmail.com" target="_blank">gmail.com</a>, s=20161025, a=rsa-sha256, c=relaxed/relaxed, fail, matches author domain<br>Oct  4 10:57:06 mail amavis[8781]: (08781-02) SA dbg: dkim: signature verification result: FAIL (BODY HAS BEEN ALTERED)<br>Oct  4 10:57:06 mail amavis[8781]: (08781-02) SA dbg: dkim: adsp ignored, message was truncated, invalid author domain signature<br>Oct  4 10:57:06 mail amavis[8781]: (08781-02) SA dbg: dkim: adsp result: - (truncated, ignored), author domain '<a href="http://gmail.com" target="_blank">gmail.com</a>'<br></div><div><br></div><div> FAIL (BODY HAS BEEN ALTERED)</div><div><br></div><div>when i run spamassassin manually on the eml-file there is no problem</div><div>i finally found, that MAIL::DKIM is NOT getting the hole message.</div><div><br></div><div>whe i alter /usr/share/perl5/Mail/<wbr>SpamAssassin/Plugin/DKIM.pm,</div><div>about lile 771 (in my case), there is "my $str = $pms->{msg}->get_pristine; ... $verifier->PRINT($str);"</div><div><br></div><div>when i simply save the content of $str to a file, then i see that it has</div><div>been cutted.</div><div><br></div><div>this seams to be the problem.</div><div><br></div><div>do you have any idea how to prevent this?</div><div><br></div>BR Johannes</div>