Testsuite: testcase for DKIM bug 2029
[exim.git] / test / scripts / 4500-DKIM / 4506
CommitLineData
2a27d0e4
JH
1# DKIM verify, errors
2#
3exim -d-all+acl -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
10client 127.0.0.1 PORT_D
11??? 220
12HELO xxx
13??? 250
14MAIL FROM:<CALLER@bloggs.com>
15??? 250
16RCPT TO:<a@test.ex>
17??? 250
18DATA
19??? 354
20DKIM-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=;
22From: mrgus@text.ex
23To: bakawolf@yahoo.com
24Date: Thu, 19 Nov 2015 17:00:07 -0700
25Message-ID: <qwerty1234@disco-zombie.net>
26Subject: simple test
27
28This is a simple test.
29.
30??? 250
31QUIT
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
40client 127.0.0.1 PORT_D
41??? 220
42HELO xxx
43??? 250
44MAIL FROM:<CALLER@bloggs.com>
45??? 250
46RCPT TO:<a@test.ex>
47??? 250
48DATA
49??? 354
50DKIM-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=
55From: mrgus@text.ex
56To: bakawolf@yahoo.com
57Date: Thu, 19 Nov 2015 17:00:07 -0700
58Message-ID: <qwerty1234@disco-zombie.net>
59Subject: simple test
60
61This is a simple test.
62.
63??? 250
64QUIT
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
73client 127.0.0.1 PORT_D
74??? 220
75HELO xxx
76??? 250
77MAIL FROM:<CALLER@bloggs.com>
78??? 250
79RCPT TO:<a@test.ex>
80??? 250
81DATA
82??? 354
83DKIM-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=
88From: mrgus@text.ex
89To: bakawolf@yahoo.com
90Date: Thu, 19 Nov 2015 17:00:07 -0700
91Message-ID: <qwerty1234@disco-zombie.net>
92Subject: simple test
93.
94??? 250
95QUIT
96??? 221
97****
98#
99#
100#
101#
102#
103killdaemon
104no_stdout_check
105no_msglog_check