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