da17c30a12d4159182a7788cb872c0f4ec246c2e
[exim.git] / test / scripts / 4520-TLS-DKIM / 4521
1 # DKIM verify, simple canonicalisation, with spaces
2 #
3 exim -DSERVER=server -bd -oX PORT_D
4 ****
5 #
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
10 ??? 220
11 EHLO test
12 ??? 250-
13 ??? 250-
14 ??? 250-
15 ??? 250-
16 ??? 250-
17 ??? 250
18 STARTTLS
19 ??? 220
20 HELO xxx
21 ??? 250
22 MAIL FROM:<pass@bloggs.com>
23 ??? 250
24 RCPT TO:<a@test.ex>
25 ??? 250
26 DATA
27 ??? 354
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=
33 From: mrgus@test.ex
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
38
39 This is a test of simple with spaces.
40
41    
42
43 End of content (spaced line two lines down).
44 .
45 ??? 250
46 QUIT
47 ??? 221
48 ****
49 #
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
53 ??? 220
54 EHLO test
55 ??? 250-
56 ??? 250-
57 ??? 250-
58 ??? 250-
59 ??? 250-
60 ??? 250
61 STARTTLS
62 ??? 220
63 HELO xxx
64 ??? 250
65 MAIL FROM:<fail@bloggs.com>
66 ??? 250
67 RCPT TO:<a@test.ex>
68 ??? 250
69 DATA
70 ??? 354
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=
76 From: mrgus@test.ex
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
81
82 This is a test of simple with spaces.
83
84    
85
86 End of content (spaced line two lines down).
87
88     
89
90 .
91 ??? 250
92 QUIT
93 ??? 221
94 ****
95 #
96 killdaemon
97 no_stdout_check
98 no_msglog_check