Split out hintsdb backend shims to separate files
[exim.git] / test / scripts / 4520-TLS-DKIM / 4522
1 # DKIM verify, relaxed canonicalisation
2 #
3 exim -DSERVER=server -bd -oX PORT_D
4 ****
5 #
6 # This should pass.
7 # Mail original in aux-fixed/4502.msg1.txt
8 # Sig generated by:  perl aux-fixed/dkim/sign.pl --method=relaxed/relaxed < aux-fixed/4502.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:<CALLER@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=relaxed/relaxed; d=test.ex; h=
30         message-id:date:from:mime-version:to:subject:content-type
31         :content-transfer-encoding; s=sel; bh=rn0kk3aPKyhYbxzfi3WG8dAxhN
32         M=; b=Tsi3kJtTNmIP0LAkEXR201R/alr7FwaWRAP+V9qQZf7MzAFrkfKAhkT3UQ
33         zPTJsZowOZaM1UoeeDQCvfvHG5YG8YCFwU3tuLgdDvbCmYJvR+jPNntN27BXcrVH
34         fyQLstR8eQPUopT7vmdYwsMlXz0Jv7iLM1MyxsWn6z1LTlvYA=
35 Message-ID: <564CFC9B.1040905@yahoo.com>
36 Date: Wed, 18 Nov 2015 14:32:59 -0800
37 From: Joaquin Lopez <bakawolf@test.ex>
38 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.0
39 MIME-Version: 1.0
40 To: bakawolf@yahoo.com
41 Subject: test
42 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
43 Content-Transfer-Encoding: 7bit
44 Content-Length: 13
45
46
47
48 test
49
50
51
52
53
54
55       
56
57 .
58 ??? 250
59 QUIT
60 ??? 221
61 ****
62 #
63 # This should pass.
64 # Mail original in aux-fixed/4502.msg2.txt
65 # Sig generated by:  perl aux-fixed/dkim/sign.pl --method=relaxed < aux-fixed/4502.msg2.txt
66 client-anytls 127.0.0.1 PORT_D
67 ??? 220
68 EHLO test
69 ??? 250-
70 ??? 250-
71 ??? 250-
72 ??? 250-
73 ??? 250-
74 ??? 250-
75 ??? 250
76 STARTTLS
77 ??? 220
78 HELO xxx
79 ??? 250
80 MAIL FROM:<CALLER@bloggs.com>
81 ??? 250
82 RCPT TO:<a@test.ex>
83 ??? 250
84 DATA
85 ??? 354
86 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=test.ex; h=from:to:subject
87         :date:mime-version:content-type; s=sel; bh=uoq1oCgLlTqpdDX/iUbLy
88         7J1Wic=; b=R8INFWPcNpQCsFaaflR6DMlxeSiNyJzOhC6cd56blJf1Ko4pgXnPP
89         /iZk1GVEUVvrCg/PUSQZGbXfukFf3iiPeKuq3xLtFHLZ23BcWTBUTK/mBPNQrB6p
90         YSQAYzZC/3x4DzTlkqgQgBcm78x8SkO2TdaUK/3Ja6HloNp2spUgLQ=
91 Received: from xxxxxxxx.sproing.at ([127.0.0.1]:6225 helo=xxxxxxxx.sproing.at)
92         by yyyyyyyyyy.sproing.at with esmtp (Exim 4.86)
93         (envelope-from <postmaster@sproing.at>)
94         id 1a2FuN-0007pz-HD
95         for eximdkimtest@sproing.at; Fri, 27 Nov 2015 11:05:39 +0100
96 From: <postmaster@test.ex>
97 To: <eximdkimtest@sproing.at>
98 Subject: test
99 Date: Fri, 27 Nov 2015 11:05:38 +0100
100 MIME-Version: 1.0
101 Content-Type: text/plain;
102
103
104
105
106
107
108 .
109 ??? 250
110 QUIT
111 ??? 221
112 ****
113 #
114 # This should pass.
115 # Mail original in aux-fixed/4502.msg3.txt
116 # Sig generated by:  perl aux-fixed/dkim/sign.pl --method=relaxed < aux-fixed/4502.msg3.txt
117 client-anytls 127.0.0.1 PORT_D
118 ??? 220
119 EHLO test
120 ??? 250-
121 ??? 250-
122 ??? 250-
123 ??? 250-
124 ??? 250-
125 ??? 250-
126 ??? 250
127 STARTTLS
128 ??? 220
129 HELO xxx
130 ??? 250
131 MAIL FROM:<CALLER@bloggs.com>
132 ??? 250
133 RCPT TO:<a@test.ex>
134 ??? 250
135 DATA
136 ??? 354
137 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=test.ex; h=from:to:subject
138         :date:mime-version:content-type; s=sel; bh=nlP/3EB0g/eKjl7+VInpZ
139         PDwELc=; b=TDZikuksDQgvVnkU+ZD7XZFhkfuf73WV9NcLRp7R/ADkBh2ZWzoKc
140         1wST+dRBSt9m27BPx3EeUy1rZHryChKoTDy9XzLqo4mLOH4dC5pU5MWGD+bdtdeC
141         s3kEaYt3+l+7fsVdHFTu+2WwQUcQlvmUbENRn1k8sbpe9CGPrtvcAg=
142 Received: from xxxxxxxx.sproing.at ([127.0.0.1]:6225 helo=xxxxxxxx.sproing.at)
143         by yyyyyyyyyy.sproing.at with esmtp (Exim 4.86)
144         (envelope-from <postmaster@sproing.at>)
145         id 1a2FuN-0007pz-HD
146         for eximdkimtest@sproing.at; Fri, 27 Nov 2015 11:05:39 +0100
147 From: <postmaster@test.ex>
148 To: <eximdkimtest@sproing.at>
149 Subject: test
150 Date: Fri, 27 Nov 2015 11:05:38 +0100
151 MIME-Version: 1.0
152 Content-Type: text/plain;
153
154 Some content, then two blank lines.
155
156
157 .
158 ??? 250
159 QUIT
160 ??? 221
161 ****
162 #
163 # This should fail, due to an extra \ in the DNS record.
164 # Mail original in aux-fixed/4502.msg1.txt
165 # Sig generated by:  perl aux-fixed/dkim/sign.pl --method=relaxed/relaxed --selector=sel_bad < aux-fixed/4502.msg1.txt
166 client-anytls 127.0.0.1 PORT_D
167 ??? 220
168 EHLO test
169 ??? 250-
170 ??? 250-
171 ??? 250-
172 ??? 250-
173 ??? 250-
174 ??? 250-
175 ??? 250
176 STARTTLS
177 ??? 220
178 HELO xxx
179 ??? 250
180 MAIL FROM:<CALLER@bloggs.com>
181 ??? 250
182 RCPT TO:<a@test.ex>
183 ??? 250
184 DATA
185 ??? 354
186 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=test.ex; h=
187         message-id:date:from:mime-version:to:subject:content-type
188         :content-transfer-encoding; s=sel_bad; bh=rn0kk3aPKyhYbxzfi3WG8d
189         AxhNM=; b=kXWfssgeNTAHmr9u2U6VZvb8uXuzoeLtZqgxySmUERKBsjk9sV31yv
190         3rEMCwdtM38yBNFK9zuLsoBUO6M7fGnpfgbGv7BnDHx8AJcsPc1Ay/7JbLKhiCxo
191         zMTFil/4pj1s3bQGLCCOcN688IgerUUFqNBM5vq0nIOKzj2dwhQC8=
192 Message-ID: <564CFC9B.1040905@yahoo.com>
193 Date: Wed, 18 Nov 2015 14:32:59 -0800
194 From: Joaquin Lopez <bakawolf@test.ex>
195 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.0
196 MIME-Version: 1.0
197 To: bakawolf@yahoo.com
198 Subject: test
199 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
200 Content-Transfer-Encoding: 7bit
201 Content-Length: 13
202
203
204
205 test
206
207
208
209
210
211
212       
213
214 .
215 ??? 250
216 QUIT
217 ??? 221
218 ****
219 killdaemon
220 no_stdout_check
221 no_msglog_check