commit def24b4: [Test] SPF for relay
korgoth1
vladislav.stakhov at gmail.com
Sat Dec 7 20:56:06 UTC 2019
Author: korgoth1
Date: 2019-12-06 22:55:51 +0300
URL: https://github.com/rspamd/rspamd/commit/def24b4f413443761fa5174e478fe3c98024b95c
[Test] SPF for relay
lualib/rspamadm/dns_tool.lua | 2 +-
src/libserver/spf.c | 37 ++++++++++++++++++++++++++-----------
src/libserver/spf.h | 9 ++++++---
src/libutil/logger.c | 36 ++++++++++++++++++++++++++++++++++++
src/libutil/logger.h | 8 +++++++-
src/lua/lua_spf.c | 29 +++++++++++++++++------------
test/functional/cases/117_spf.robot | 2 +-
7 files changed, 94 insertions(+), 29 deletions(-)
diff --combined test/functional/cases/117_spf.robot
index 99e50075b,bfb56065f..7e1f80f24
--- a/test/functional/cases/117_spf.robot
+++ b/test/functional/cases/117_spf.robot
@@@ -125,13 -125,8 +125,13 @@@ SPF PTR
SPF PERMFAIL REDIRECT WITHOUT SPF
${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim4.eml
... -i 192.0.2.1 -F a at fail1.org.org.za
- Check Rspamc ${result} R_SPF_PERMFAIL
+ Check Rspamc ${result} R_SPF_DNSFAIL
+SPF EXTERNAL RELAY
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/external_relay.eml
+ ... -F root at trusted.client
+ Check Rspamc ${result} R_SPF_PERMFAIL
+
*** Keywords ***
SPF Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/dmarc.conf
More information about the Commits
mailing list