Testsuite: the munge for SRS must accept a variable-length timestamp element
[users/heiko/exim.git] / test / scripts / 4500-DKIM / 4501
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 127.0.0.1 PORT_D
10 ??? 220
11 HELO xxx
12 ??? 250
13 MAIL FROM:<pass@bloggs.com>
14 ??? 250
15 RCPT TO:<a@test.ex>
16 ??? 250
17 DATA
18 ??? 354
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=
24 From: mrgus@test.ex
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
29
30 This is a test of simple with spaces.
31
32    
33
34 End of content (spaced line two lines down).
35 .
36 ??? 250
37 QUIT
38 ??? 221
39 ****
40 #
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
44 ??? 220
45 HELO xxx
46 ??? 250
47 MAIL FROM:<fail@bloggs.com>
48 ??? 250
49 RCPT TO:<a@test.ex>
50 ??? 250
51 DATA
52 ??? 354
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=
58 From: mrgus@test.ex
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
63
64 This is a test of simple with spaces.
65
66    
67
68 End of content (spaced line two lines down).
69
70     
71
72 .
73 ??? 250
74 QUIT
75 ??? 221
76 ****
77 #
78 killdaemon
79 no_stdout_check
80 no_msglog_check