From 743c4c9f5a8ecd10fb91fff283d949ca9d12e2fb Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 2 Jan 2018 19:57:15 +0000 Subject: Testsuite: SPF testcases. Bug 1789 --- test/confs/4600 | 40 ++++++++++++++++++++++++++++++++++++++++ test/confs/4601 | 13 +++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 test/confs/4600 create mode 100644 test/confs/4601 (limited to 'test/confs') diff --git a/test/confs/4600 b/test/confs/4600 new file mode 100644 index 000000000..ba2135943 --- /dev/null +++ b/test/confs/4600 @@ -0,0 +1,40 @@ +# Exim test configuration 4600 + +SERVER= + +.include DIR/aux-var/std_conf_prefix + +primary_hostname = myhost.test.ex + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + +queue_only +queue_run_in_order + + +begin acl + +check_rcpt: + accept hosts = HOSTIPV4 + spf_guess = pass + logwrite = spf_result $spf_result + logwrite = spf_header_comment $spf_header_comment + logwrite = spf_smtp_comment $spf_smtp_comment + logwrite = spf_received $spf_received + + accept hosts = 127.0.0.1 + spf = pass : softfail : neutral + logwrite = spf_result $spf_result + logwrite = spf_header_comment $spf_header_comment + logwrite = spf_smtp_comment $spf_smtp_comment + logwrite = spf_received $spf_received + + deny + logwrite = spf_result $spf_result + logwrite = spf_header_comment $spf_header_comment + logwrite = spf_smtp_comment $spf_smtp_comment + logwrite = spf_received $spf_received + +# End diff --git a/test/confs/4601 b/test/confs/4601 new file mode 100644 index 000000000..00731d5ed --- /dev/null +++ b/test/confs/4601 @@ -0,0 +1,13 @@ +# Exim test configuration 4601 + +.include DIR/aux-var/std_conf_prefix + +primary_hostname = myhost.test.ex + +# ----- Main settings ----- + +acl_smtp_rcpt = \ + accept logwrite = $sender_address [$sender_host_address] \ + ${lookup {$sender_address} spf {$sender_host_address} \ + {lookup: '$value'}{FAILED}} +# End -- cgit v1.2.3