diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-12-02 16:48:26 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-12-02 17:11:31 +0000 |
commit | c14470c30aa0d41ef018c35043616c703b01f80a (patch) | |
tree | a20563227860c1006cd6e9d81dc09ef303e83b65 /test | |
parent | abe1010cc7d7d02629e1c9ca4a00240a44fe041e (diff) |
DKIM: fix simple body verify for trailing empty lines after text
Diffstat (limited to 'test')
-rw-r--r-- | test/aux-fixed/4502.msg3.txt | 15 | ||||
-rw-r--r-- | test/log/4502 | 3 | ||||
-rw-r--r-- | test/scripts/4500-Domain-Keys-Identified-Mail/4502 | 39 |
3 files changed, 57 insertions, 0 deletions
diff --git a/test/aux-fixed/4502.msg3.txt b/test/aux-fixed/4502.msg3.txt new file mode 100644 index 000000000..6ca081c25 --- /dev/null +++ b/test/aux-fixed/4502.msg3.txt @@ -0,0 +1,15 @@ +Received: from xxxxxxxx.sproing.at ([127.0.0.1]:6225 helo=xxxxxxxx.sproing.at) + by yyyyyyyyyy.sproing.at with esmtp (Exim 4.86) + (envelope-from <postmaster@sproing.at>) + id 1a2FuN-0007pz-HD + for eximdkimtest@sproing.at; Fri, 27 Nov 2015 11:05:39 +0100 +From: <postmaster@test.ex> +To: <eximdkimtest@sproing.at> +Subject: test +Date: Fri, 27 Nov 2015 11:05:38 +0100 +MIME-Version: 1.0 +Content-Type: text/plain; + +Some content, then two blank lines. + + diff --git a/test/log/4502 b/test/log/4502 index 8745884d5..ab5273ad0 100644 --- a/test/log/4502 +++ b/test/log/4502 @@ -7,3 +7,6 @@ 1999-03-02 09:44:33 10HmaY-0005vi-00 DKIM: d=test.ex s=sel c=relaxed/simple a=rsa-sha1 b=1024 [verification succeeded] 1999-03-02 09:44:33 10HmaY-0005vi-00 signer: test.ex bits: 1024 1999-03-02 09:44:33 10HmaY-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss +1999-03-02 09:44:33 10HmaZ-0005vi-00 DKIM: d=test.ex s=sel c=relaxed/simple a=rsa-sha1 b=1024 [verification succeeded] +1999-03-02 09:44:33 10HmaZ-0005vi-00 signer: test.ex bits: 1024 +1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss diff --git a/test/scripts/4500-Domain-Keys-Identified-Mail/4502 b/test/scripts/4500-Domain-Keys-Identified-Mail/4502 index 25ebadde3..5e63f129f 100644 --- a/test/scripts/4500-Domain-Keys-Identified-Mail/4502 +++ b/test/scripts/4500-Domain-Keys-Identified-Mail/4502 @@ -91,6 +91,45 @@ QUIT ??? 221 **** # +# This should pass. +# Mail original in aux-fixed/4502.msg3.txt +# Sig generated by: perl aux-fixed/dkim/sign.pl --method=relaxed < aux_fixed/4502.msg3.txt +client 127.0.0.1 PORT_D +??? 220 +HELO xxx +??? 250 +MAIL FROM:<CALLER@bloggs.com> +??? 250 +RCPT TO:<a@test.ex> +??? 250 +DATA +??? 354 +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=test.ex; h=from:to:subject + :date:mime-version:content-type; s=sel; bh=nlP/3EB0g/eKjl7+VInpZ + PDwELc=; b=TDZikuksDQgvVnkU+ZD7XZFhkfuf73WV9NcLRp7R/ADkBh2ZWzoKc + 1wST+dRBSt9m27BPx3EeUy1rZHryChKoTDy9XzLqo4mLOH4dC5pU5MWGD+bdtdeC + s3kEaYt3+l+7fsVdHFTu+2WwQUcQlvmUbENRn1k8sbpe9CGPrtvcAg= +Received: from xxxxxxxx.sproing.at ([127.0.0.1]:6225 helo=xxxxxxxx.sproing.at) + by yyyyyyyyyy.sproing.at with esmtp (Exim 4.86) + (envelope-from <postmaster@sproing.at>) + id 1a2FuN-0007pz-HD + for eximdkimtest@sproing.at; Fri, 27 Nov 2015 11:05:39 +0100 +From: <postmaster@test.ex> +To: <eximdkimtest@sproing.at> +Subject: test +Date: Fri, 27 Nov 2015 11:05:38 +0100 +MIME-Version: 1.0 +Content-Type: text/plain; + +Some content, then two blank lines. + + +. +??? 250 +QUIT +??? 221 +**** +# killdaemon no_stdout_check no_msglog_check |