safer coding of router toplevel
[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 ??? 250
19 STARTTLS
20 ??? 220
21 HELO xxx
22 ??? 250
23 MAIL FROM:<pass@bloggs.com>
24 ??? 250
25 RCPT TO:<a@test.ex>
26 ??? 250
27 DATA
28 ??? 354
29 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
30         :date:message-id:subject; s=sel; bh=pdsXC6mnKSmAYjraebHb2Tt2xqw=; b=
31         bE9pnPdz5eDwz58PFMAsiFqpcsel33p5+pnvhwY5D6B6suGFbvku+LC1pi77z3lq
32         45mFRxT4Dr4rW4612jYi5WpNk8ed28BkNMowUCgkM2TDoktiRClFpXTUX00hCico
33         KWcgcvORf6L8txhtICsHsl94ERKXxgptXHQk8XwMEuU=
34 From: mrgus@test.ex
35 To: bakawolf@yahoo.com
36 Date: Thu, 19 Nov 2015 17:00:07 -0700
37 Message-ID: <qwerty1234@disco-zombie.net>
38 Subject: simple space test
39
40 This is a test of simple with spaces.
41
42    
43
44 End of content (spaced line two lines down).
45 .
46 ??? 250
47 QUIT
48 ??? 221
49 ****
50 #
51 # this should fail verification
52 # Same message and sig as above, but body extended with (emptyline) (line with only spaces) (emptyline)
53 client-anytls 127.0.0.1 PORT_D
54 ??? 220
55 EHLO test
56 ??? 250-
57 ??? 250-
58 ??? 250-
59 ??? 250-
60 ??? 250-
61 ??? 250-
62 ??? 250
63 STARTTLS
64 ??? 220
65 HELO xxx
66 ??? 250
67 MAIL FROM:<fail@bloggs.com>
68 ??? 250
69 RCPT TO:<a@test.ex>
70 ??? 250
71 DATA
72 ??? 354
73 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
74         :date:message-id:subject; s=sel; bh=pdsXC6mnKSmAYjraebHb2Tt2xqw=; b=
75         bE9pnPdz5eDwz58PFMAsiFqpcsel33p5+pnvhwY5D6B6suGFbvku+LC1pi77z3lq
76         45mFRxT4Dr4rW4612jYi5WpNk8ed28BkNMowUCgkM2TDoktiRClFpXTUX00hCico
77         KWcgcvORf6L8txhtICsHsl94ERKXxgptXHQk8XwMEuU=
78 From: mrgus@test.ex
79 To: bakawolf@yahoo.com
80 Date: Thu, 19 Nov 2015 17:00:07 -0700
81 Message-ID: <qwerty1234@disco-zombie.net>
82 Subject: simple space test
83
84 This is a test of simple with spaces.
85
86    
87
88 End of content (spaced line two lines down).
89
90     
91
92 .
93 ??? 250
94 QUIT
95 ??? 221
96 ****
97 #
98 killdaemon
99 no_stdout_check
100 no_msglog_check