summaryrefslogtreecommitdiff
path: root/test/scripts/4500-DKIM/4520
blob: f7fafb3e4bc03a8f28e7d4f5ae849d725fe613cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# DKIM signing
#
exim -bd -DSERVER=server -oX PORT_D
****
#
# single header signed
exim -DOPT=From -odf a@test.ex
From: nobody@example.com
From: second@example.com

content
****
#
# single header, oversigned
exim -DOPT=From:From -odf b@test.ex
From: nobody@example.com

content
****
#
# no header, multi-sign
exim -DOPT=From:=X-Mine -odf b10@test.ex
From: nobody@example.com

content
****
#
# double header, multi-sign
exim -DOPT=From:=X-Mine -odf b12@test.ex
From: nobody@example.com
X-mine: one
X-mine: two

content
****
#
#
# no header, always-oversign
exim -DOPT=+X-Mine -odf b20@test.ex
From: nobody@example.com

content
****
#
# double header, always-oversign
exim -DOPT=+X-Mine -odf b22@test.ex
From: nobody@example.com
X-mine: one
X-mine: two

content
****
#
## default header set
# cannot test that as it includes Date: so results in a varying signature
#exim -DHEADERS_MAXSIZE=y -odf c@test.ex
#From: nobody@example.com
#
#content
#****
##
# check that on signing we warn in debug mode about verify problems
exim -d-all+acl -DOPT=From -DSELECTOR=sel_bad -odf d@test.ex
From: nobody@example.com

content
****
#
# check that an empty dkim_privatekey overrides dkim_strict
exim -DOPT=From -DSTRICT=true -DSELECTOR=none -odf a@test.ex
From: nobody@example.com

content
****
#
millisleep 500
killdaemon
no_msglog_check