S/MIME and PGP signed, crypted or both message whitelisting
2009-01-29 by Christian PELISSIER
Is it possible for milter-greylist to skip greylisting for S/MIME or PGP signed, signed/crypted messages ? If not, implementation seems to be easy and could be done at the milter header stage. Checking the Content-Type header seems to be sufficient : Thunderbird S/MIME Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; Content-Type: application/x-pkcs7-mime; Evolution PGP Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; Content-Type: multipart/encrypted; protocol="application/pgp-encrypted"; More details for 2 mail user agent. S/MIME ====== * Thunderbird S/MIME signed mail : User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 ...
Show quoted textHide quoted text
Subject: Message =?ISO-8859-15?Q?sign=E9_avec_S/MIME?= Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms080106040709000008050704" Content-Length: 3851 X-UID: 1550 Status: RO * Thunderbird S/MIME signed and ciphered mail : User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 ... Subject: TEST signature et chiffrement avec S/MIME Content-Type: application/x-pkcs7-mime; name="smime.p7m" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7m" Content-Description: S/MIME Encrypted Message Content-Length: 6262 X-UID: 1548 Status: RO For PGP ======= * Evolution Signed Subject: Test signature PGP ... Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-wUPeojl0Ll5QW4/ozup3" ... Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6.301d Date: Thu, 29 Jan 2009 10:17:26 +0100 Content-Length: 703 * Evolution Signed and Ciphered Subject: Test =?iso-8859-15?Q?sign=E9?= et chiffre ... Content-Type: multipart/encrypted; protocol="application/pgp-encrypted"; boundary="=-fXWByXmrap85hapbFRTd" ... Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6.301d Date: Thu, 29 Jan 2009 10:18:53 +0100 Content-Length: 1535 ... -- Christian P\ufffdlissier