X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=test%2Fscripts%2F4500-DKIM%2F4520;h=f073be9d368638dd04df51901c427d35bfde9003;hb=456d70ec89d9ba122871f1f035bb308f4771016f;hp=3e58799729613ce5db6d1dadd03f619cb068d152;hpb=9e70917d0aa5e51f584b2af69ce80df458ac5c79;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/test/scripts/4500-DKIM/4520 b/test/scripts/4500-DKIM/4520 index 3e5879972..f073be9d3 100644 --- a/test/scripts/4500-DKIM/4520 +++ b/test/scripts/4500-DKIM/4520 @@ -11,20 +11,54 @@ From: second@example.com content **** # -# single header, oversigned -exim -DOPT=From:From -odf b@test.ex +# single header, oversigned, with timestamps +exim -DOPT=From:From -DTIMES=10 -odf b@test.ex From: nobody@example.com content **** # -# default header set -exim -DHEADERS_MAXSIZE=y -odf c@test.ex +# 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 @@ -32,6 +66,27 @@ From: nobody@example.com content **** # +# check dkim_strict results in a defer (even with an expansion) +exim -DOPT=From '-DSTRICT=${if ={1}{1}{true}}' '-DTIMES=${bogus}' -odf '-f<>' e0@test.ex +From: nobody@example.com + +content +**** +# +# check that an empty dkim_privatekey overrides dkim_strict +exim -DOPT=From -DSTRICT=true -DSELECTOR=none -odf e@test.ex +From: nobody@example.com + +content +**** +# +# single header signed, body line starting with dot +exim -DOPT=From -odf f@test.ex +From: nobody@example.com + +..content +**** +# millisleep 500 killdaemon no_msglog_check