add an internal error code definition
[users/heiko/exim.git] / test / scripts / 4500-DKIM / 4508
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 127.0.0.1 PORT_D
12 ??? 220
13 HELO xxx
14 ??? 250
15 MAIL FROM:<CALLER@bloggs.com>
16 ??? 250
17 RCPT TO:<a@test.ex>
18 ??? 250
19 DATA
20 ??? 354
21 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
22         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
23         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
24         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
25         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
26 From: mrgus@text.ex
27 To: bakawolf@yahoo.com
28 Date: Thu, 19 Nov 2015 17:00:07 -0700
29 Message-ID: <qwerty1234@disco-zombie.net>
30 Subject: simple test
31
32 This is a simple test.
33 .
34 ??? 250
35 QUIT
36 ??? 221
37 ****
38 killdaemon
39 #
40 exim -DSERVER=server -DDYNAMIC_OPTION='' -bd -oX PORT_D
41 ****
42 # Empty.  Should avoid calling dkim ACL.
43 #  - sha256, 1024b
44 # Mail original in aux-fixed/4500.msg1.txt
45 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
46 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
47 client 127.0.0.1 PORT_D
48 ??? 220
49 HELO xxx
50 ??? 250
51 MAIL FROM:<CALLER@bloggs.com>
52 ??? 250
53 RCPT TO:<a@test.ex>
54 ??? 250
55 DATA
56 ??? 354
57 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
58         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
59         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
60         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
61         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
62 From: mrgus@text.ex
63 To: bakawolf@yahoo.com
64 Date: Thu, 19 Nov 2015 17:00:07 -0700
65 Message-ID: <qwerty1234@disco-zombie.net>
66 Subject: simple test
67
68 This is a simple test.
69 .
70 ??? 250
71 QUIT
72 ??? 221
73 ****
74 killdaemon
75 #
76 exim -DSERVER=server -DDYNAMIC_OPTION='nothere.example.com' -bd -oX PORT_D
77 ****
78 # Different domain.  Should fail DKIM verify.
79 #  - sha256, 1024b
80 # Mail original in aux-fixed/4500.msg1.txt
81 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
82 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
83 client 127.0.0.1 PORT_D
84 ??? 220
85 HELO xxx
86 ??? 250
87 MAIL FROM:<CALLER@bloggs.com>
88 ??? 250
89 RCPT TO:<a@test.ex>
90 ??? 250
91 DATA
92 ??? 354
93 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
94         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
95         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
96         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
97         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
98 From: mrgus@text.ex
99 To: bakawolf@yahoo.com
100 Date: Thu, 19 Nov 2015 17:00:07 -0700
101 Message-ID: <qwerty1234@disco-zombie.net>
102 Subject: simple test
103
104 This is a simple test.
105 .
106 ??? 250
107 QUIT
108 ??? 221
109 ****
110 killdaemon
111 #
112 exim -DSERVER=server -DDYNAMIC_OPTION='test.ex : different.example.com' -bd -oX PORT_D
113 ****
114 # Mixed set.  Should get one DKIM verify pass.
115 #  - sha256, 1024b
116 # Mail original in aux-fixed/4500.msg1.txt
117 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
118 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
119 client 127.0.0.1 PORT_D
120 ??? 220
121 HELO xxx
122 ??? 250
123 MAIL FROM:<CALLER@bloggs.com>
124 ??? 250
125 RCPT TO:<a@test.ex>
126 ??? 250
127 DATA
128 ??? 354
129 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
130         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
131         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
132         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
133         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
134 From: mrgus@text.ex
135 To: bakawolf@yahoo.com
136 Date: Thu, 19 Nov 2015 17:00:07 -0700
137 Message-ID: <qwerty1234@disco-zombie.net>
138 Subject: simple test
139
140 This is a simple test.
141 .
142 ??? 250
143 QUIT
144 ??? 221
145 ****
146 killdaemon
147 #
148 no_stdout_check
149 no_msglog_check