diff options
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/0000-Basic/0580 | 156 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0581 | 264 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0582 | 56 | ||||
-rw-r--r-- | test/scripts/2000-GnuTLS/2035 | 26 | ||||
-rw-r--r-- | test/scripts/2000-GnuTLS/2036 | 70 | ||||
-rw-r--r-- | test/scripts/2000-GnuTLS/2037 | 31 | ||||
-rw-r--r-- | test/scripts/2100-OpenSSL/2135 | 25 | ||||
-rw-r--r-- | test/scripts/2100-OpenSSL/2136 | 71 | ||||
-rw-r--r-- | test/scripts/2100-OpenSSL/2137 | 30 |
9 files changed, 729 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0580 b/test/scripts/0000-Basic/0580 new file mode 100644 index 000000000..8d8a11751 --- /dev/null +++ b/test/scripts/0000-Basic/0580 @@ -0,0 +1,156 @@ +# callout lazy-close, -bs send +need_ipv4 +# +# a recipient verify and continued-delivery +# cmdline -bs send +server PORT_S +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +exim -bs +mail from:<userx@ok.example> +rcpt to:<usery@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +# +# +# multiple recipients +# 1st callout result is cached (above); should not activate LCC +server PORT_S 2 +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +QUIT +221 Bye +*eof +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +RCPT TO +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +exim -bs +mail from:<userx@ok.example> +rcpt to:<usery@test.ex> +rcpt to:<usery2@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +# +# +# 2nd callout result is cached (above); should not activate LCC +server PORT_S 2 +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +QUIT +221 Bye +*eof +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +RCPT TO +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +exim -bs +mail from:<userx@ok.example> +rcpt to:<usery3@test.ex> +rcpt to:<usery@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +# +# +# no cache hits; should do LCC +server PORT_S +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +RCPT TO +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +exim -bs +mail from:<userx@ok.example> +rcpt to:<usery4@test.ex> +rcpt to:<usery5@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/0000-Basic/0581 b/test/scripts/0000-Basic/0581 new file mode 100644 index 000000000..f0ce3bcd7 --- /dev/null +++ b/test/scripts/0000-Basic/0581 @@ -0,0 +1,264 @@ +# callout lazy-close, smtp send +need_ipv4 +# +# a recipient verify and continued-delivery +# smtp send +server PORT_S +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +exim -DSERVER=server -bd -oX PORT_D +**** +# +client 127.0.0.1 PORT_D +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<userc@ok.example> +??? 250 +RCPT TO:<userd@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +killdaemon +# +# +# smtp send, deliver_drop_priv +server PORT_S +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +exim -DSERVER=server -DOPT=deliver_drop_privilege -bd -oX PORT_D +**** +# +client 127.0.0.1 PORT_D +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<usere@ok.example> +??? 250 +RCPT TO:<userf@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +killdaemon +# +# +# multiple recipients +# 1st callout result is cached (above); should not activate LCC +# smtp send +server PORT_S 2 +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO:<userd2@test.ex> +250 OK +QUIT +221 Bye +*eof +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO:<userd@test.ex> +250 OK +RCPT TO:<userd2@test.ex> +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +exim -DSERVER=server -bd -oX PORT_D +**** +# +client 127.0.0.1 PORT_D +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<userc@ok.example> +??? 250 +RCPT TO:<userd@test.ex> +??? 250 +RCPT TO:<userd2@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +# +# +# 2nd callout result is cached (above); should not activate LCC +# smtp send +server PORT_S 2 +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO:<userd3@test.ex> +250 OK +QUIT +221 Bye +*eof +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO:<userd3@test.ex> +250 OK +RCPT TO:<userd2@test.ex> +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +client 127.0.0.1 PORT_D +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<userc@ok.example> +??? 250 +RCPT TO:<userd3@test.ex> +??? 250 +RCPT TO:<userd2@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +# +# +# no cache hits; should do LCC +# smtp send +server PORT_S 2 +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO:<userd4@test.ex> +250 OK +RCPT TO:<userd5@test.ex> +250 OK +DATA +354 hit me +. +250 yeah got that message +QUIT +221 Bye +**** +# +client 127.0.0.1 PORT_D +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<userc@ok.example> +??? 250 +RCPT TO:<userd4@test.ex> +??? 250 +RCPT TO:<userd5@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +killdaemon +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/0000-Basic/0582 b/test/scripts/0000-Basic/0582 new file mode 100644 index 000000000..3eefcc979 --- /dev/null +++ b/test/scripts/0000-Basic/0582 @@ -0,0 +1,56 @@ +# callout lazy-close, defers +need_ipv4 +# +# a recipient verify and continued-delivery +# cmdline -bs send, rcpt-time defer +server PORT_S +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +451 not right now +QUIT +221 Bye +**** +# +exim -bs +mail from:<userg@ok.example> +rcpt to:<userg@test.ex> +quit +**** +sleep 1 +# +# cmdline -bs send, data-time defer +server PORT_S +220 Welcome +EHLO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +DATA +354 hit me +. +451 not right now +QUIT +221 Bye +**** +# +exim -bs +mail from:<userh@ok.example> +rcpt to:<userh@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/2000-GnuTLS/2035 b/test/scripts/2000-GnuTLS/2035 new file mode 100644 index 000000000..cb227868c --- /dev/null +++ b/test/scripts/2000-GnuTLS/2035 @@ -0,0 +1,26 @@ +# client: callout lazy-close, -bs send +gnutls +need_ipv4 +# +# a tls-capable target for the verify/delivery connection +exim -bd -DSERVER=server -oX PORT_D +**** +# +# a recipient verify and continued-delivery +# cmdline -bs send +exim -bs +mail from:<usera@ok.example> +rcpt to:<userb@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +killdaemon +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/2000-GnuTLS/2036 b/test/scripts/2000-GnuTLS/2036 new file mode 100644 index 000000000..1891d2fe8 --- /dev/null +++ b/test/scripts/2000-GnuTLS/2036 @@ -0,0 +1,70 @@ +# client: callout lazy-close, smtp send +gnutls +need_ipv4 +# +# smtp send +# a tls-capable target for the verify/delivery connection on PORT_D +# plus a daemon under test on PORT_S +exim -bd -DSERVER=server -oX PORT_D:PORT_S +**** +# +client 127.0.0.1 PORT_S +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<userc@ok.example> +??? 250 +RCPT TO:<userd@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +killdaemon +# +# +# smtp send, deliver_drop_priv +exim -bd -DSERVER=server -DOPT=deliver_drop_privilege -oX PORT_D:PORT_S +**** +# +client 127.0.0.1 PORT_S +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<usere@ok.example> +??? 250 +RCPT TO:<userf@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +killdaemon +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/2000-GnuTLS/2037 b/test/scripts/2000-GnuTLS/2037 new file mode 100644 index 000000000..8dca68114 --- /dev/null +++ b/test/scripts/2000-GnuTLS/2037 @@ -0,0 +1,31 @@ +# client: callout lazy-close, defers +gnutls +need_ipv4 +# +exim -bd -DSERVER=server -oX PORT_D +**** +# cmdline -bs send, rcpt-time defer +exim -bs +mail from:<userg@ok.example> +rcpt to:<rcpt_defer@test.ex> +quit +**** +sleep 1 +# +# cmdline -bs send, data-time defer +exim -bs +mail from:<userh@ok.example> +rcpt to:<data_defer@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +killdaemon +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/2100-OpenSSL/2135 b/test/scripts/2100-OpenSSL/2135 new file mode 100644 index 000000000..e521c45e3 --- /dev/null +++ b/test/scripts/2100-OpenSSL/2135 @@ -0,0 +1,25 @@ +# client: callout lazy-close, -bs send +need_ipv4 +# +# a tls-capable target for the verify/delivery connection +exim -bd -DSERVER=server -oX PORT_D +**** +# +# a recipient verify and continued-delivery +# cmdline -bs send +exim -bs +mail from:<usera@ok.example> +rcpt to:<userb@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +killdaemon +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/2100-OpenSSL/2136 b/test/scripts/2100-OpenSSL/2136 new file mode 100644 index 000000000..aa13114d5 --- /dev/null +++ b/test/scripts/2100-OpenSSL/2136 @@ -0,0 +1,71 @@ +# client: callout lazy-close, smtp send +need_ipv4 +# +# a recipient verify and continued-delivery +# smtp send +# a tls-capable target for the verify/delivery connection on PORT_D +# plus a daemon under test on PORT_S +exim -bd -DSERVER=server -oX PORT_D:PORT_S +**** +# +client 127.0.0.1 PORT_S +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<userc@ok.example> +??? 250 +RCPT TO:<userd@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +killdaemon +# +# +# smtp send, deliver_drop_priv +exim -bd -DSERVER=server -DOPT=deliver_drop_privilege -oX PORT_D:PORT_S +**** +# +client 127.0.0.1 PORT_S +??? 220 +EHLO test.ex +??? 250- +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +MAIL FROM:<usere@ok.example> +??? 250 +RCPT TO:<userf@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +sleep 1 +killdaemon +# +# +# +no_stdout_check +no_msglog_check diff --git a/test/scripts/2100-OpenSSL/2137 b/test/scripts/2100-OpenSSL/2137 new file mode 100644 index 000000000..ec9a964a2 --- /dev/null +++ b/test/scripts/2100-OpenSSL/2137 @@ -0,0 +1,30 @@ +# client: callout lazy-close, defers +need_ipv4 +# +exim -bd -DSERVER=server -oX PORT_D +**** +# cmdline -bs send, rcpt-time defer +exim -bs +mail from:<> +rcpt to:<rcpt_defer@test.ex> +quit +**** +sleep 1 +# +# cmdline -bs send, data-time defer +exim -bs +mail from:<> +rcpt to:<data_defer@test.ex> +data +Subject: test + +body +. +quit +**** +sleep 1 +killdaemon +# +# +no_stdout_check +no_msglog_check |