1 # DKIM verify, simple canonicalisation, with spaces
3 exim -DSERVER=server -bd -oX PORT_D
6 # this should pass verification
7 # Mail original in aux-fixed/4501.msg1.txt
8 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4501.msg1.txt
9 client 127.0.0.1 PORT_D
13 MAIL FROM:<pass@bloggs.com>
19 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
20 :date:message-id:subject; s=sel; bh=pdsXC6mnKSmAYjraebHb2Tt2xqw=; b=
21 bE9pnPdz5eDwz58PFMAsiFqpcsel33p5+pnvhwY5D6B6suGFbvku+LC1pi77z3lq
22 45mFRxT4Dr4rW4612jYi5WpNk8ed28BkNMowUCgkM2TDoktiRClFpXTUX00hCico
23 KWcgcvORf6L8txhtICsHsl94ERKXxgptXHQk8XwMEuU=
25 To: bakawolf@yahoo.com
26 Date: Thu, 19 Nov 2015 17:00:07 -0700
27 Message-ID: <qwerty1234@disco-zombie.net>
28 Subject: simple space test
30 This is a test of simple with spaces.
34 End of content (spaced line two lines down).
41 # this should fail verification
42 # Same message and sig as above, but body extended with (emptyline) (line with only spaces) (emptyline)
43 client 127.0.0.1 PORT_D
47 MAIL FROM:<fail@bloggs.com>
53 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
54 :date:message-id:subject; s=sel; bh=pdsXC6mnKSmAYjraebHb2Tt2xqw=; b=
55 bE9pnPdz5eDwz58PFMAsiFqpcsel33p5+pnvhwY5D6B6suGFbvku+LC1pi77z3lq
56 45mFRxT4Dr4rW4612jYi5WpNk8ed28BkNMowUCgkM2TDoktiRClFpXTUX00hCico
57 KWcgcvORf6L8txhtICsHsl94ERKXxgptXHQk8XwMEuU=
59 To: bakawolf@yahoo.com
60 Date: Thu, 19 Nov 2015 17:00:07 -0700
61 Message-ID: <qwerty1234@disco-zombie.net>
62 Subject: simple space test
64 This is a test of simple with spaces.
68 End of content (spaced line two lines down).