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-anytls 127.0.0.1 PORT_D
22 MAIL FROM:<pass@bloggs.com>
28 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
29 :date:message-id:subject; s=sel; bh=pdsXC6mnKSmAYjraebHb2Tt2xqw=; b=
30 bE9pnPdz5eDwz58PFMAsiFqpcsel33p5+pnvhwY5D6B6suGFbvku+LC1pi77z3lq
31 45mFRxT4Dr4rW4612jYi5WpNk8ed28BkNMowUCgkM2TDoktiRClFpXTUX00hCico
32 KWcgcvORf6L8txhtICsHsl94ERKXxgptXHQk8XwMEuU=
34 To: bakawolf@yahoo.com
35 Date: Thu, 19 Nov 2015 17:00:07 -0700
36 Message-ID: <qwerty1234@disco-zombie.net>
37 Subject: simple space test
39 This is a test of simple with spaces.
43 End of content (spaced line two lines down).
50 # this should fail verification
51 # Same message and sig as above, but body extended with (emptyline) (line with only spaces) (emptyline)
52 client-anytls 127.0.0.1 PORT_D
65 MAIL FROM:<fail@bloggs.com>
71 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
72 :date:message-id:subject; s=sel; bh=pdsXC6mnKSmAYjraebHb2Tt2xqw=; b=
73 bE9pnPdz5eDwz58PFMAsiFqpcsel33p5+pnvhwY5D6B6suGFbvku+LC1pi77z3lq
74 45mFRxT4Dr4rW4612jYi5WpNk8ed28BkNMowUCgkM2TDoktiRClFpXTUX00hCico
75 KWcgcvORf6L8txhtICsHsl94ERKXxgptXHQk8XwMEuU=
77 To: bakawolf@yahoo.com
78 Date: Thu, 19 Nov 2015 17:00:07 -0700
79 Message-ID: <qwerty1234@disco-zombie.net>
80 Subject: simple space test
82 This is a test of simple with spaces.
86 End of content (spaced line two lines down).