From 9c76079a32877e24089c96def127982a2297fe6f Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 21 Sep 2016 17:25:21 +0200 Subject: [PATCH] [Test] Some tests for SPF --- test/functional/cases/115_dmarc.robot | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/functional/cases/115_dmarc.robot b/test/functional/cases/115_dmarc.robot index 01692b4b5..2f2c51aa5 100644 --- a/test/functional/cases/115_dmarc.robot +++ b/test/functional/cases/115_dmarc.robot @@ -77,6 +77,31 @@ DKIM PERMFAIL BAD RECORD ... -i 37.48.67.26 Check Rspamc ${result} R_DKIM_PERMFAIL +SPF DNSFAIL UNRESOLVEABLE INCLUDE + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 37.48.67.26 -F x@openarena.za.net + Check Rspamc ${result} R_SPF_DNSFAIL + +SPF ALLOW UNRESOLVEABLE INCLUDE + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@openarena.za.net + Check Rspamc ${result} R_SPF_ALLOW + +SPF NA NA + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@za + Check Rspamc ${result} R_SPF_NA + +SPF NA NXDOMAIN + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@co.za + Check Rspamc ${result} R_SPF_NA + +SPF FAIL + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@example.net + Check Rspamc ${result} R_SPF_FAIL + *** Keywords *** DMARC Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/dmarc.conf -- 2.39.5