Merge branch 'master' into 4.next
[users/heiko/exim.git] / test / scripts / 4500-DKIM / 4506
1 # DKIM verify, errors
2 #
3 exim -DSERVER=server -bd -oX PORT_D
4 ****
5 #
6 # This should fail verify (missing header hash in sig header)
7 #  - sha1, 1024b
8 # Mail original in aux-fixed/4500.msg1.txt
9 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
10 client 127.0.0.1 PORT_D
11 ??? 220
12 HELO xxx
13 ??? 250
14 MAIL FROM:<CALLER@bloggs.com>
15 ??? 250
16 RCPT TO:<a@test.ex>
17 ??? 250
18 DATA
19 ??? 354
20 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
21         :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=;
22 From: mrgus@text.ex
23 To: bakawolf@yahoo.com
24 Date: Thu, 19 Nov 2015 17:00:07 -0700
25 Message-ID: <qwerty1234@disco-zombie.net>
26 Subject: simple test
27
28 This is a simple test.
29 .
30 ??? 250
31 QUIT
32 ??? 221
33 ****
34 #
35 #
36 # This should fail verify (missing body hash in sig header)
37 #  - sha1, 1024b
38 # Mail original in aux-fixed/4500.msg1.txt
39 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
40 client 127.0.0.1 PORT_D
41 ??? 220
42 HELO xxx
43 ??? 250
44 MAIL FROM:<CALLER@bloggs.com>
45 ??? 250
46 RCPT TO:<a@test.ex>
47 ??? 250
48 DATA
49 ??? 354
50 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
51         :date:message-id:subject; s=sel; b=
52         PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
53         41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
54         1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
55 From: mrgus@text.ex
56 To: bakawolf@yahoo.com
57 Date: Thu, 19 Nov 2015 17:00:07 -0700
58 Message-ID: <qwerty1234@disco-zombie.net>
59 Subject: simple test
60
61 This is a simple test.
62 .
63 ??? 250
64 QUIT
65 ??? 221
66 ****
67 #
68 #
69 # This should fail verify (missing body)
70 #  - sha1, 1024b
71 # Mail original in aux-fixed/4500.msg1.txt
72 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
73 client 127.0.0.1 PORT_D
74 ??? 220
75 HELO xxx
76 ??? 250
77 MAIL FROM:<CALLER@bloggs.com>
78 ??? 250
79 RCPT TO:<a@test.ex>
80 ??? 250
81 DATA
82 ??? 354
83 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
84         :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
85         PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
86         41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
87         1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
88 From: mrgus@text.ex
89 To: bakawolf@yahoo.com
90 Date: Thu, 19 Nov 2015 17:00:07 -0700
91 Message-ID: <qwerty1234@disco-zombie.net>
92 Subject: simple test
93 .
94 ??? 250
95 QUIT
96 ??? 221
97 ****
98 #
99 #
100 #
101 # This should refuse to do verification (over-long body line)
102 # The sig is bogus, but we don't verify it
103 write test-data 1x16386
104 ++++
105 ****
106 #
107 client 127.0.0.1 PORT_D
108 ??? 220
109 HELO xxx
110 ??? 250
111 MAIL FROM:<CALLER@bloggs.com>
112 ??? 250
113 RCPT TO:<a@test.ex>
114 ??? 250
115 DATA
116 ??? 354
117 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
118         :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
119         PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
120         41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
121         1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
122 From: mrgus@text.ex
123 To: bakawolf@yahoo.com
124 Date: Thu, 19 Nov 2015 17:00:07 -0700
125 Message-ID: <qwerty1234@disco-zombie.net>
126 Subject: simple test
127
128 <<< test-data
129 another data line
130 .
131 ??? 250
132 QUIT
133 ??? 221
134 ****
135 #
136 #
137 # This should fail as the sig on the mail uses sha1 but the dns record requires sha256
138 #
139 #  - sha256, 512b
140 # Mail original in aux-fixed/4500.msg1.txt
141 # Sig generated by: perl aux-fixed/dkim/sign.pl --keyfile=aux-fixed/dkim/dkim512.private \
142 #                       --method=simple/simple --selector=ses_sha1 < aux-fixed/4500.msg1.txt
143 # and then modifying the s= manually
144 client 127.0.0.1 PORT_D
145 ??? 220
146 HELO xxx
147 ??? 250
148 MAIL FROM:<CALLER@bloggs.com>
149 ??? 250
150 RCPT TO:<a@test.ex>
151 ??? 250
152 DATA
153 ??? 354
154 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
155         :date:message-id:subject; s=ses_sha256; bh=OB9dZVu7+5/ufs3TH9leIcE
156         pXSo=; b=hG14R3Eb/f13Pw6J0LmovHAL01KHVmVrTZ7KJrqieYTQemUaseoU2pB
157         7/g8NUwG/AsYoaw3gaAK8PqxSk2lcIQ==
158 From: mrgus@text.ex
159 To: bakawolf@yahoo.com
160 Date: Thu, 19 Nov 2015 17:00:07 -0700
161 Message-ID: <qwerty1234@disco-zombie.net>
162 Subject: simple test
163
164 This is a simple test.
165 .
166 ??? 250
167 QUIT
168 ??? 221
169 ****
170 #
171 #
172 killdaemon
173 no_stdout_check
174 no_msglog_check