From 59371ea735c941334861aa5b8e1e9a06facf044f Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Tue, 7 Feb 2006 10:54:33 +0000 Subject: Hopefully the final lot of test files. --- test/scripts/9400-local_scan/9400 | 360 ++++++++++++++++++++++++++++++++++++++ test/scripts/9400-local_scan/9401 | 14 ++ test/scripts/9400-local_scan/9402 | 36 ++++ 3 files changed, 410 insertions(+) create mode 100644 test/scripts/9400-local_scan/9400 create mode 100644 test/scripts/9400-local_scan/9401 create mode 100644 test/scripts/9400-local_scan/9402 (limited to 'test/scripts/9400-local_scan') diff --git a/test/scripts/9400-local_scan/9400 b/test/scripts/9400-local_scan/9400 new file mode 100644 index 000000000..aa5bc9214 --- /dev/null +++ b/test/scripts/9400-local_scan/9400 @@ -0,0 +1,360 @@ +# local_scan() miscellaneous tests +exim -odi -bs +mail from: +rcpt to: +data +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: reject +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: reject this message isn't wanted +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: reject this message isn't wanted + and we tell it on two lines +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: tempreject +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: tempreject this message isn't wanted just now +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: sendto +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: sendto usery@test.ex +Testing, testing, was originally to userx. +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: sendto *this is a blackhole message* +Testing, testing, was originally to userx. +. +quit +**** +1 +exim -odi -f test-local-scan@y userx@test.ex +local-scan: reject this message isn't wanted +Testing, testing, local message (1) +. +**** +exim -odi -oee -f test-local-scan@y userx@test.ex +local-scan: reject this message isn't wanted +Testing, testing, local message (2) +. +**** +1 +exim -odi -oep -f test-local-scan@y userx@test.ex +local-scan: reject this message isn't wanted +Testing, testing, local message (3) +. +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: accept A=orses b=mutton +Testing, testing +. +quit +**** +1 +exim -odi -bs +mail from: +rcpt to: +data +local-scan:timeout +test test +. +quit +**** +1 +exim -odi -oep -f test-local-scan@y userx@test.ex +local-scan: timeout +test test +. +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: sendto bounce@test.ex exbounce@test.ex +Testing, testing, was originally to userx. +Sent to bounce@test.ex; bounce should go to exbounce. +. +quit +**** +2 +exim -odi -bS +mail from: +rcpt to: +data +local-scan: reject not wanted -bS +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: accept A=orses b=mutton + c=forthighlanders + some newlines in here +Testing, testing +. +quit +**** +exim -odi -N -d-all+receive -bs +mail from: +rcpt to: +data +. +quit +**** +exim -odi -N -d-all+local_scan -bs +mail from: +rcpt to: +data +. +quit +**** +2 +exim -odi -bS +mail from: +rcpt to: +data +local-scan: reject_nologhdr not wanted -bS +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: tempreject_nologhdr +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: accept_expand sender=$sender_address +Testing, testing +. +mail from: +rcpt to: +data +local-scan: accept_expand sender=$rhubarb +Testing, testing +. +quit +**** +exim -bP local_scan +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: accept_freeze +Testing, testing +. +mail from: +rcpt to: +data +local-scan: accept_queue +Testing, testing +. +quit +**** +exim -bp +**** +exim -d-all+local_scan -bh 1.2.3.4 +mail from: +rcpt to: +data +local-scan: accept_freeze +Testing, testing +. +quit +**** +exim -d-all+local_scan -bh 1.2.3.4 +mail from: +rcpt to: +data +local-scan: accept_test_lists +Testing, testing +. +quit +**** +1 +exim -d-all+local_scan -odi -bs +mail from: +rcpt to: +data +local-scan: crash +Testing, testing +. +quit +**** +ls DIR/spool/input +exim -odq -bs +mail from: +rcpt to: +data +local-scan: sendto unqualified +Testing, testing, was originally to userx. +Sent to unqualified address +. +quit +**** +exim -bp +**** +exim -M $msg3 +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: header_remove 2 remove-me +remove-me: this is the first one +remove-me : this is the second one +remove-me : this is the third one + +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: header_remove 0 remove-me +remove-me: this is the first one +remove-me : this is the second one +remove-me : this is the third one + +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: header_add_at_position TT received X-new: added + +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: header_add_at_position FT received X-new: added + +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: header_add_at_position FT From X-new: added + +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: header_add_at_position FT Non-exist X-new: added + +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: remove userx@test.ex + +Testing, testing +. +quit +**** +exim -odi -bs +mail from: +rcpt to: +data +local-scan: remove abcd@test.ex + +Testing, testing +. +quit +**** +no_msglog_check diff --git a/test/scripts/9400-local_scan/9401 b/test/scripts/9400-local_scan/9401 new file mode 100644 index 000000000..c310d09a4 --- /dev/null +++ b/test/scripts/9400-local_scan/9401 @@ -0,0 +1,14 @@ +# -R and spool pollution +exim -odq -f test-local-scan@test.ex userx +local-scan: accept This is text for the local scan returned header + and I am going to make sure that it is quite long +**** +exim -odq userx +Message 2 +. +**** +exim -Rf userx +**** +sudo perl DIR/aux-fixed/9401.perl +**** +no_msglog_check diff --git a/test/scripts/9400-local_scan/9402 b/test/scripts/9400-local_scan/9402 new file mode 100644 index 000000000..a4345acce --- /dev/null +++ b/test/scripts/9400-local_scan/9402 @@ -0,0 +1,36 @@ +# local_scan() smtp_printf() and smtp_fflush() +need_ipv4 +# +exim -DSERVER=server -bd -oX PORT_D +**** +client -t2 127.0.0.1 PORT_D +??? 220 +ehlo foobar +??? 250- +??? 250- +??? 250- +??? 250 +mail from: +??? 250 +rcpt to: +??? 250 +data +??? 354 +local-scan: reject rhubarb rhubarb +. +??? 550 +mail from: +??? 250 +rcpt to: +??? 250 +data +??? 354 +local-scan: teergrube +. +??? 550- +??? 550- +**** +# Wait because of the teergrube +sleep 3 +killdaemon +no_msglog_check -- cgit v1.2.3