tidying
[exim.git] / test / scripts / 4520-TLS-DKIM / 4528
1 # DKIM verify, dkim_verify_signers option
2 #
3 exim -DSERVER=server -DDYNAMIC_OPTION='$dkim_signers' -bd -oX PORT_D
4 ****
5 #
6 # Same as default. This should pass.
7 #  - sha256, 1024b
8 # Mail original in aux-fixed/4500.msg1.txt
9 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
10 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
11 client-anytls 127.0.0.1 PORT_D
12 ??? 220
13 EHLO test
14 ??? 250-myhost
15 ??? 250-SIZE
16 ??? 250-LIMITS
17 ??? 250-8BITMIME
18 ??? 250-PIPELINING
19 ??? 250-STARTTLS
20 ??? 250 HELP
21 STARTTLS
22 ??? 220
23 HELO xxx
24 ??? 250
25 MAIL FROM:<CALLER@bloggs.com>
26 ??? 250
27 RCPT TO:<a@test.ex>
28 ??? 250
29 DATA
30 ??? 354
31 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
32         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
33         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
34         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
35         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
36 From: mrgus@text.ex
37 To: bakawolf@yahoo.com
38 Date: Thu, 19 Nov 2015 17:00:07 -0700
39 Message-ID: <qwerty1234@disco-zombie.net>
40 Subject: simple test
41
42 This is a simple test.
43 .
44 ??? 250
45 QUIT
46 ??? 221
47 ****
48 killdaemon
49 #
50 exim -DSERVER=server -DDYNAMIC_OPTION='' -bd -oX PORT_D
51 ****
52 # Empty.  Should avoid calling dkim ACL.
53 #  - sha256, 1024b
54 # Mail original in aux-fixed/4500.msg1.txt
55 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
56 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
57 client-anytls 127.0.0.1 PORT_D
58 ??? 220
59 EHLO test
60 ??? 250-myhost
61 ??? 250-SIZE
62 ??? 250-LIMITS
63 ??? 250-8BITMIME
64 ??? 250-PIPELINING
65 ??? 250-STARTTLS
66 ??? 250 HELP
67 STARTTLS
68 ??? 220
69 HELO xxx
70 ??? 250
71 MAIL FROM:<CALLER@bloggs.com>
72 ??? 250
73 RCPT TO:<a@test.ex>
74 ??? 250
75 DATA
76 ??? 354
77 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
78         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
79         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
80         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
81         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
82 From: mrgus@text.ex
83 To: bakawolf@yahoo.com
84 Date: Thu, 19 Nov 2015 17:00:07 -0700
85 Message-ID: <qwerty1234@disco-zombie.net>
86 Subject: simple test
87
88 This is a simple test.
89 .
90 ??? 250
91 QUIT
92 ??? 221
93 ****
94 killdaemon
95 #
96 exim -DSERVER=server -DDYNAMIC_OPTION='nothere.example.com' -bd -oX PORT_D
97 ****
98 # Different domain.  Should fail DKIM verify.
99 #  - sha256, 1024b
100 # Mail original in aux-fixed/4500.msg1.txt
101 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
102 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
103 client-anytls 127.0.0.1 PORT_D
104 ??? 220
105 EHLO test
106 ??? 250-myhost
107 ??? 250-SIZE
108 ??? 250-LIMITS
109 ??? 250-8BITMIME
110 ??? 250-PIPELINING
111 ??? 250-STARTTLS
112 ??? 250 HELP
113 STARTTLS
114 ??? 220
115 HELO xxx
116 ??? 250
117 MAIL FROM:<CALLER@bloggs.com>
118 ??? 250
119 RCPT TO:<a@test.ex>
120 ??? 250
121 DATA
122 ??? 354
123 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
124         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
125         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
126         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
127         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
128 From: mrgus@text.ex
129 To: bakawolf@yahoo.com
130 Date: Thu, 19 Nov 2015 17:00:07 -0700
131 Message-ID: <qwerty1234@disco-zombie.net>
132 Subject: simple test
133
134 This is a simple test.
135 .
136 ??? 250
137 QUIT
138 ??? 221
139 ****
140 killdaemon
141 #
142 exim -DSERVER=server -DDYNAMIC_OPTION='test.ex : different.example.com' -bd -oX PORT_D
143 ****
144 # Mixed set.  Should get one DKIM verify pass.
145 #  - sha256, 1024b
146 # Mail original in aux-fixed/4500.msg1.txt
147 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
148 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
149 client-anytls 127.0.0.1 PORT_D
150 ??? 220
151 EHLO test
152 ??? 250-myhost
153 ??? 250-SIZE
154 ??? 250-LIMITS
155 ??? 250-8BITMIME
156 ??? 250-PIPELINING
157 ??? 250-STARTTLS
158 ??? 250 HELP
159 STARTTLS
160 ??? 220
161 HELO xxx
162 ??? 250
163 MAIL FROM:<CALLER@bloggs.com>
164 ??? 250
165 RCPT TO:<a@test.ex>
166 ??? 250
167 DATA
168 ??? 354
169 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
170         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
171         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
172         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
173         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
174 From: mrgus@text.ex
175 To: bakawolf@yahoo.com
176 Date: Thu, 19 Nov 2015 17:00:07 -0700
177 Message-ID: <qwerty1234@disco-zombie.net>
178 Subject: simple test
179
180 This is a simple test.
181 .
182 ??? 250
183 QUIT
184 ??? 221
185 ****
186 killdaemon
187 #
188 no_stdout_check
189 no_msglog_check