From 0fd10b75e3343a5b7ee0c6bb7845710363808dfa Mon Sep 17 00:00:00 2001 From: korgoth1 Date: Thu, 5 Dec 2019 21:52:33 +0300 Subject: [Test] SPF PERMFAIL REDIRECT WITHOUT SPF --- test/functional/cases/117_spf.robot | 5 +++++ test/functional/messages/dmarc/bad_dkim4.eml | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/functional/messages/dmarc/bad_dkim4.eml (limited to 'test') diff --git a/test/functional/cases/117_spf.robot b/test/functional/cases/117_spf.robot index 2ac6997b6..309a0aaef 100644 --- a/test/functional/cases/117_spf.robot +++ b/test/functional/cases/117_spf.robot @@ -122,6 +122,11 @@ SPF PTRS #... -i 98.138.91.168 -F foo@crazyspf.cacophony.za.org #Check Rspamc ${result} R_SPF_ALLOW +SPF PERMFAIL REDIRECT WITHOUT SPF + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim4.eml + ... -i 192.0.2.1 -F a@fail1.org.org.za + Check Rspamc ${result} R_SPF_PERMFAIL + *** Keywords *** SPF Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/dmarc.conf diff --git a/test/functional/messages/dmarc/bad_dkim4.eml b/test/functional/messages/dmarc/bad_dkim4.eml new file mode 100644 index 000000000..6d57aaf5b --- /dev/null +++ b/test/functional/messages/dmarc/bad_dkim4.eml @@ -0,0 +1,17 @@ +Date: Tue, 09 Aug 2016 10:01:27 +0200 +Message-ID: <20160809100127@rspamd.tk> +From: Rspamd +To: foo@rspamd.tk +Subject: hello +Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes +MIME-Version: 1.0 +Content-Disposition: inline +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoni.za.org; s=testdkim1; + t=1470729879; h=from:subject:date:message-id:to:mime-version:content-type; + bh=7HkRgYnNru3SR2EWfgWU8yhM0MOH6ZZrPoEIgNIh8wc=; + b=kTIV4jcgv9sWFh2JFrS/+PcNxiloituqjmHHqeJOTfa+/9C+Er8BjnMysTJyYVq36Gnv0OZDgLr3Yy4YP5Lzbt1M9ZdN5cJqO7yn1N7wyaGfkt++b09rIYBy5Dkk7OWyP3cDThqDzv8C9heSvqBSEsirFsbt3Wx2g/hWiJlnjew= + + +hello + + -- cgit v1.2.3