Commit | Line | Data |
---|---|---|
69a70afa JH |
1 | # DKIM signing |
2 | # | |
3 | exim -bd -DSERVER=server -oX PORT_D | |
4 | **** | |
8ef02a06 JH |
5 | # |
6 | # single header signed | |
ab9152ff | 7 | exim -DOPT=From -odf a@test.ex |
8ef02a06 | 8 | From: nobody@example.com |
ab9152ff | 9 | From: second@example.com |
8ef02a06 JH |
10 | |
11 | content | |
12 | **** | |
13 | # | |
2bc0f45e JH |
14 | # single header, oversigned, with timestamps |
15 | exim -DOPT=From:From -DTIMES=10 -odf b@test.ex | |
8ef02a06 JH |
16 | From: nobody@example.com |
17 | ||
484cc1a9 JH |
18 | content |
19 | **** | |
20 | # | |
21 | # no header, multi-sign | |
22 | exim -DOPT=From:=X-Mine -odf b10@test.ex | |
23 | From: nobody@example.com | |
24 | ||
25 | content | |
26 | **** | |
27 | # | |
28 | # double header, multi-sign | |
29 | exim -DOPT=From:=X-Mine -odf b12@test.ex | |
30 | From: nobody@example.com | |
31 | X-mine: one | |
32 | X-mine: two | |
33 | ||
34 | content | |
35 | **** | |
36 | # | |
37 | # | |
38 | # no header, always-oversign | |
39 | exim -DOPT=+X-Mine -odf b20@test.ex | |
40 | From: nobody@example.com | |
41 | ||
42 | content | |
43 | **** | |
44 | # | |
45 | # double header, always-oversign | |
46 | exim -DOPT=+X-Mine -odf b22@test.ex | |
47 | From: nobody@example.com | |
48 | X-mine: one | |
49 | X-mine: two | |
50 | ||
8ef02a06 JH |
51 | content |
52 | **** | |
53 | # | |
6bf688e9 JH |
54 | ## default header set |
55 | # cannot test that as it includes Date: so results in a varying signature | |
56 | #exim -DHEADERS_MAXSIZE=y -odf c@test.ex | |
57 | #From: nobody@example.com | |
cd1a5fe0 | 58 | # |
6bf688e9 JH |
59 | #content |
60 | #**** | |
61 | ## | |
cd1a5fe0 | 62 | # check that on signing we warn in debug mode about verify problems |
9e70917d | 63 | exim -d-all+acl -DOPT=From -DSELECTOR=sel_bad -odf d@test.ex |
cd1a5fe0 JH |
64 | From: nobody@example.com |
65 | ||
9fa4d5b4 RJ |
66 | content |
67 | **** | |
68 | # | |
69 | # check dkim_strict results in a defer (even with an expansion) | |
70 | exim -DOPT=From '-DSTRICT=${if ={1}{1}{true}}' '-DTIMES=${bogus}' -odf '-f<>' e0@test.ex | |
71 | From: nobody@example.com | |
72 | ||
0b8f4f1a JH |
73 | content |
74 | **** | |
75 | # | |
76 | # check that an empty dkim_privatekey overrides dkim_strict | |
49e56fb3 | 77 | exim -DOPT=From -DSTRICT=true -DSELECTOR=none -odf e@test.ex |
0b8f4f1a JH |
78 | From: nobody@example.com |
79 | ||
cd1a5fe0 JH |
80 | content |
81 | **** | |
82 | # | |
49e56fb3 JH |
83 | # single header signed, body line starting with dot |
84 | exim -DOPT=From -odf f@test.ex | |
85 | From: nobody@example.com | |
86 | ||
87 | ..content | |
88 | **** | |
89 | # | |
2592e6c0 | 90 | millisleep 500 |
69a70afa JH |
91 | killdaemon |
92 | no_msglog_check |