diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2018-01-02 19:57:15 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2018-01-02 21:21:57 +0000 |
commit | 743c4c9f5a8ecd10fb91fff283d949ca9d12e2fb (patch) | |
tree | b784c0190facf6e09432857c618be5a97f41f029 /test/scripts | |
parent | eb52e2cbbe8672b28541e30a05cc9fabba1510df (diff) |
Testsuite: SPF testcases. Bug 1789
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/4600-SPF/4600 | 33 | ||||
-rw-r--r-- | test/scripts/4600-SPF/4601 | 33 | ||||
-rw-r--r-- | test/scripts/4600-SPF/REQUIRES | 1 |
3 files changed, 67 insertions, 0 deletions
diff --git a/test/scripts/4600-SPF/4600 b/test/scripts/4600-SPF/4600 new file mode 100644 index 000000000..3907f6861 --- /dev/null +++ b/test/scripts/4600-SPF/4600 @@ -0,0 +1,33 @@ +# acl condition and variables +# +# It is rather difficult to properly test spf. We use libspf2 to do the work, and it +# does the DNS lookups, so we cannot intercept them in the testsuite's usual fashion +# to provide values for testcases. +# +# For now just check that what should be working syntax does not cause us to fall over. +# Be careful with envelope-domains used for testcases, as real DNS lookups will be done. +# +exim -bd -DSERVER=server -oX PORT_D +**** +client HOSTIPV4 PORT_D +??? 220 +helo testclient +??? 250 +mail from:<a@example.com> +??? 250 +rcpt to:<fred@test.ex> +??? 550 +quit +**** +client 127.0.0.1 PORT_D +??? 220 +helo testclient +??? 250 +mail from:<b@example.com> +??? 250 +rcpt to:<fred@test.ex> +??? 250 +quit +**** +# +killdaemon diff --git a/test/scripts/4600-SPF/4601 b/test/scripts/4600-SPF/4601 new file mode 100644 index 000000000..096b64e24 --- /dev/null +++ b/test/scripts/4600-SPF/4601 @@ -0,0 +1,33 @@ +# lookup string-expansion +# +# It is rather difficult to properly test spf. We use libspf2 to do the work, and it +# does the DNS lookups, so we cannot intercept them in the testsuite's usual fashion +# to provide values for testcases. +# +# For now just check that what should be working syntax does not cause us to fall over. +# Be careful with envelope-domains used for testcases, as real DNS lookups will be done. +# +exim -bd -DSERVER=server -oX PORT_D +**** +client HOSTIPV4 PORT_D +??? 220 +helo testclient +??? 250 +mail from:<a@example.com> +??? 250 +rcpt to:<fred@test.ex> +??? 250 +quit +**** +client 127.0.0.1 PORT_D +??? 220 +helo testclient +??? 250 +mail from:<b@example.com> +??? 250 +rcpt to:<fred@test.ex> +??? 250 +quit +**** +# +killdaemon diff --git a/test/scripts/4600-SPF/REQUIRES b/test/scripts/4600-SPF/REQUIRES new file mode 100644 index 000000000..c4c433924 --- /dev/null +++ b/test/scripts/4600-SPF/REQUIRES @@ -0,0 +1 @@ +support Experimental_SPF |