<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
As you know, when signing a message with X509 certificate, a checksum
of the body is made.<br>
When the recipient opens the signed message, the body should not have
changed.<br>
<br>
We have a <b>problem with attached files</b>. As Mailscanner <b>modified
the body,</b> the <b>numeric signature is broken.</b><br>
<br>
<b><u>Here is a example:</u></b><br>
<br>
<b>
Before mailscanner, this base64 attachment contained 73 columns.</b><br>
<pre>--------------ms050704040207000105000505
Content-Type: application/x-pkcs7-signature; name="test.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIHnTCC
A20wggJVoAMCAQICAQIwDQYJKoZIhvcNAQEEBQAwKzELMAkGA1UEBhMCRlIxDTALBgNVBAoT
...
AKNb/vSOP5gprnSi0cbMds8btE8HttC5xc46qETIu24iciSmwjkbgwrT6kIREFRKm2m/fJaQ
u/qieuH5tCOsQt8k4exj2A4xsZrQnGFsYfOHutdMSs1WAAAAAAAA
--------------ms050704040207000105000505--
</pre>
<b>
After mailscanner, the base64 attachment contains 61 columns only.</b><br>
<pre>--------------ms050704040207000105000505
Content-Type: application/x-pkcs7-signature; name="test.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH
AQAAoIIHnTCCA20wggJVoAMCAQICAQIwDQYJKoZIhvcNAQEEBQAwKzELMAkG
...
tE8HttC5xc46qETIu24iciSmwjkbgwrT6kIREFRKm2m/fJaQu/qieuH5tCOs
Qt8k4exj2A4xsZrQnGFsYfOHutdMSs1WAAAAAAAA
--------------ms050704040207000105000505--
</pre>
<u><b>
Context:</b></u><br>
- Debian Testing<br>
- Postfix<br>
- Clamav with Perl Module<br>
- SpamAssassin version 3.1.7<br>
- Perl version 5.8.8 (updated with CPAN)<br>
- MailScanner installed from debian package (v4.51.5)<br>
<br>
<b>Is the problem known and is there a workaround ?</b><br>
Thanks in advance !<br>
<pre class="moz-signature" cols="72">-- 
Pierre Rolland - Phone: +33(0)4 38 78 96 34
Institut de Biologie Structurale-CNRS (UMR 5075)/CEA/UJF - IBS
41 Av. Jules Horowitz - 38027 Grenoble Cedex 1 - France
Trust in CNRS's certificates: <a class="moz-txt-link-freetext" href="http://igc.services.cnrs.fr/Doc/General/trust.html">http://igc.services.cnrs.fr/Doc/General/trust.html</a> </pre>
</body>
</html>