summaryrefslogtreecommitdiff
path: root/test/confs
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-01-02 19:57:15 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2018-01-02 21:21:57 +0000
commit743c4c9f5a8ecd10fb91fff283d949ca9d12e2fb (patch)
treeb784c0190facf6e09432857c618be5a97f41f029 /test/confs
parenteb52e2cbbe8672b28541e30a05cc9fabba1510df (diff)
Testsuite: SPF testcases. Bug 1789
Diffstat (limited to 'test/confs')
-rw-r--r--test/confs/460040
-rw-r--r--test/confs/460113
2 files changed, 53 insertions, 0 deletions
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