From c11d665dab975691024f9231ad93c65bef7e5df4 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 1 Jan 2018 13:14:41 +0000 Subject: Feature macros, show-supported and build-time selection for malware interfaces --- test/scripts/4000-scanning/4001 | 97 ++-------- test/scripts/4000-scanning/4002 | 316 ++++++++++++++++++++------------ test/scripts/4000-scanning/4003 | 165 +++++------------ test/scripts/4000-scanning/4004 | 105 ----------- test/scripts/4000-scanning/4005 | 129 ------------- test/scripts/4000-scanning/4006 | 120 ------------ test/scripts/4000-scanning/4007 | 57 ------ test/scripts/4000-scanning/4008 | 51 ------ test/scripts/4000-scanning/4009 | 242 ------------------------ test/scripts/4000-scanning/4010 | 38 ---- test/scripts/4000-scanning/4011 | 88 --------- test/scripts/4000-scanning/4012 | 45 ----- test/scripts/4006_scan_clamd/4006 | 129 +++++++++++++ test/scripts/4006_scan_clamd/REQUIRES | 2 + test/scripts/4007_scan_avast/4007 | 120 ++++++++++++ test/scripts/4007_scan_avast/REQUIRES | 2 + test/scripts/4008_scan_cmdline/4008 | 57 ++++++ test/scripts/4008_scan_cmdline/REQUIRES | 2 + test/scripts/4009_scan_sophie/4009 | 105 +++++++++++ test/scripts/4009_scan_sophie/REQUIRES | 2 + test/scripts/4010_scan_fsecure/4010 | 134 ++++++++++++++ test/scripts/4010_scan_fsecure/REQUIRES | 2 + test/scripts/4011_scan_ave/4011 | 168 +++++++++++++++++ test/scripts/4011_scan_ave/REQUIRES | 2 + test/scripts/4012_scan_fprotd/4012 | 95 ++++++++++ test/scripts/4012_scan_fprotd/REQUIRES | 2 + test/scripts/4013_scan_fprot6d/4013 | 88 +++++++++ test/scripts/4013_scan_fprot6d/REQUIRES | 2 + test/scripts/4014_scan_sock/4014 | 45 +++++ test/scripts/4014_scan_sock/REQUIRES | 2 + 30 files changed, 1215 insertions(+), 1197 deletions(-) delete mode 100644 test/scripts/4000-scanning/4004 delete mode 100644 test/scripts/4000-scanning/4005 delete mode 100644 test/scripts/4000-scanning/4006 delete mode 100644 test/scripts/4000-scanning/4007 delete mode 100644 test/scripts/4000-scanning/4008 delete mode 100644 test/scripts/4000-scanning/4009 delete mode 100644 test/scripts/4000-scanning/4010 delete mode 100644 test/scripts/4000-scanning/4011 delete mode 100644 test/scripts/4000-scanning/4012 create mode 100644 test/scripts/4006_scan_clamd/4006 create mode 100644 test/scripts/4006_scan_clamd/REQUIRES create mode 100644 test/scripts/4007_scan_avast/4007 create mode 100644 test/scripts/4007_scan_avast/REQUIRES create mode 100644 test/scripts/4008_scan_cmdline/4008 create mode 100644 test/scripts/4008_scan_cmdline/REQUIRES create mode 100644 test/scripts/4009_scan_sophie/4009 create mode 100644 test/scripts/4009_scan_sophie/REQUIRES create mode 100644 test/scripts/4010_scan_fsecure/4010 create mode 100644 test/scripts/4010_scan_fsecure/REQUIRES create mode 100644 test/scripts/4011_scan_ave/4011 create mode 100644 test/scripts/4011_scan_ave/REQUIRES create mode 100644 test/scripts/4012_scan_fprotd/4012 create mode 100644 test/scripts/4012_scan_fprotd/REQUIRES create mode 100644 test/scripts/4013_scan_fprot6d/4013 create mode 100644 test/scripts/4013_scan_fprot6d/REQUIRES create mode 100644 test/scripts/4014_scan_sock/4014 create mode 100644 test/scripts/4014_scan_sock/REQUIRES (limited to 'test/scripts') diff --git a/test/scripts/4000-scanning/4001 b/test/scripts/4000-scanning/4001 index 6f746307e..a660f6805 100644 --- a/test/scripts/4000-scanning/4001 +++ b/test/scripts/4000-scanning/4001 @@ -1,95 +1,38 @@ -# content scan interface: f-protd -need_ipv4 -munge loopback -# -server PORT_S - ->*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# -server PORT_S - -> -> -> ->wibble -> ->*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -due to the server response (above) -. -quit -**** -# -# -# -server PORT_S - rcpt to: data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be deferred due to timeout +From: Test person +To: Me +Subject: A real test message +Date: Fri, 17 Dec 2004 16:13:04 +0100 +Message-ID: <41C2F849.3060203@projectile.test.ex> +OK, this should look like a genuine message. . quit **** -# -# -# -server PORT_S - rcpt to: data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted despite timeout +From: Test person +To: Me +Subject: A real test message +Date: Fri, 17 Dec 2004 16:13:04 +0100 +Message-ID: <41C2F849.3060203@projectile.test.ex> +FakeReject: test fakereject +OK, this should look like a genuine message, but +it will trip on THIS gazornenplaz REGEX. . quit **** diff --git a/test/scripts/4000-scanning/4002 b/test/scripts/4000-scanning/4002 index 4754609c0..d9849c341 100644 --- a/test/scripts/4000-scanning/4002 +++ b/test/scripts/4000-scanning/4002 @@ -1,168 +1,242 @@ -# content scan interface: aveserver -# -server DIR/eximdir/aveserver_sock ->200 ready -200 done -200 ready +# content scan interface: spamassassin +# +# The spooled file for scanning includes the test-runner's user name +# hence size varies. Munge that. +munge scanfile_size +# +# +# A good-comms test, returning not-spam. +# (we could use a second one that returns is-spam...) +server 7833 +SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> *eof **** -# -# -# -exim -odi -bs -DOPT= +exim -odi -oMt fromuser -bs ehlo test.ex -mail from:<> +mail from: rcpt to: data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted +Content-type: text/plain +test . quit **** # # # -server DIR/eximdir/aveserver_sock ->2xx ready -5xx defer -2xx ready -*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: defer this one (daemon tmp-err) - -. -quit -**** -# -# # -server DIR/eximdir/aveserver_sock ->2xx ready -322 VNAME found ->2xx ready -2xx ready +# Server spec line with timeout option, not exercised +# (could we cut down the massive content?) +server 7833 +SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> *eof **** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected (virus found) - -. -quit -**** -# -# -# -server DIR/eximdir/aveserver_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPT="/tmo=2s" +exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=10s' ehlo test.ex -mail from:<> +mail from: rcpt to: data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be deferred due to timeout +Content-type: text/plain +test . quit **** # # # -server DIR/eximdir/aveserver_sock -*sleep 3 +# Server spec line with timeout option, exercised +server -i 2 7833 +SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> +*eof **** -# -# -# -exim -odi -bs -DOPT="/tmo=2s / defer_ok" +exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=4s' ehlo test.ex -mail from:<> +mail from: rcpt to: data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted despite timeout +Content-type: text/plain +test . quit **** # # # -server DIR/eximdir/aveserver_sock ->2xx ready -5xx defer -2xx ready +# Multiple servers, prioritised, with timeout spec; first one fails +# List separator changed +server 7833 +SPAMD/1.1 0 EX_OK +>Spam: False ; 4.5 / 5.0 +> +>Spam detection software, running on the system "demo", +>has NOT identified this incoming email as spam. The original +>message has been attached to this so you can view it or label +>similar future email. If you have any questions, see +>@@CONTACT_ADDRESS@@ for details. +> +>Content preview: test [...] +> +>Content analysis details: (4.5 points, 5.0 required) +> +> pts rule name description +>---- ---------------------- -------------------------------------------------- +>-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP +> 1.2 MISSING_HEADERS Missing To: header +> 1.0 MISSING_FROM Missing From: header +> 1.8 MISSING_SUBJECT Missing Subject: header +> 1.4 MISSING_DATE Missing Date: header +> 0.1 MISSING_MID Missing Message-Id: header +> *eof **** -# -# -# -exim -odi -bs -DOPT=" / defer_ok" +exim -odi -oMt fromuser -bs -DOPT='<; 127.0.0.1 7833 ; HOSTIPV4 7834 pri=2 tmo=2s' ehlo test.ex -mail from:<> +mail from: rcpt to: data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: accept this, overriding the scan daemon temp-error +Content-type: text/plain +test . quit **** # # -# -# Recheck that defer_ok option does not affect a malware detection -# -server DIR/eximdir/aveserver_sock ->2xx ready -322 VNAME found ->2xx ready -2xx ready -*eof -**** -# -# -# -exim -odi -bs -DOPT="/defer_ok" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected (virus found) - -. -quit -**** diff --git a/test/scripts/4000-scanning/4003 b/test/scripts/4000-scanning/4003 index 49d331bf1..e5a7c9492 100644 --- a/test/scripts/4000-scanning/4003 +++ b/test/scripts/4000-scanning/4003 @@ -1,134 +1,51 @@ -# content scan interface: fsecure -# also testing alternate list separator for malware= args -# -server DIR/eximdir/fsec_sock -ignored_response -ignored_response -ignored_response -ignored_response -LF>random ignored line ->LF>random ignored line 2 ->LF>OK Scan ok. -*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# -server DIR/eximdir/fsec_sock -ignored_response -ignored_response -ignored_response -ignored_response -LF>xxxINFECTED blah VNAME blah ->LF>OK Scan ok. -*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -. -quit -**** -# -# -# -server DIR/eximdir/fsec_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPT=";tmo=2s" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be tmp-rejected due to timeout - -. -quit -**** -# -# -# -server DIR/eximdir/fsec_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPT=";defer_ok;tmo=2s" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted despite timeout - -. -quit -**** -# -# -# -server DIR/eximdir/fsec_sock -ignored_response -ignored_response -ignored_response -ignored_response -LF>xxxINFECTED blah VNAME blah ->LF>OK Scan ok. +# content scan interface: rspamd +# +# The spooled file for scanning includes the test-runner's user name +# hence size varies. Munge that. +munge scanfile_size +# +server 11333 +RSPAMD/1.3 0 EX_OK +>Metric: default; True; 15.00 / 15.00 / 0.0 +>Action: reject +>Symbol: FAKE_SYMBOL_A(15.00) +>Symbol: FAKE_SYMBOL_B(0.00) +>Message-ID: undef *eof **** -# -# -# -exim -odi -bs -DOPT="; defer_ok ; tmo=5h" +exim -odi -bs ehlo test.ex mail from:<> rcpt to: data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected as the options are not relevant +From: MAILER_DAEMON <> +Content-type: text/plain +test . quit **** diff --git a/test/scripts/4000-scanning/4004 b/test/scripts/4000-scanning/4004 deleted file mode 100644 index 956f04507..000000000 --- a/test/scripts/4000-scanning/4004 +++ /dev/null @@ -1,105 +0,0 @@ -# content scan interface: sophie -# -server DIR/eximdir/sophie_sock -0 no problems mate -*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# -server DIR/eximdir/sophie_sock --1 oops, internal error in scanner -*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: defer this one - -. -quit -**** -# -# -# -server DIR/eximdir/sophie_sock -LF>1 VNAME -*eof -**** -# -# -# -exim -odi -bs -DOPT=/defer_ok -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -. -quit -**** -# -# -# -server DIR/eximdir/sophie_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPT=/tmo=2s -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be tmp-rejected due to timeout - -. -quit -**** -# -# -# -server DIR/eximdir/sophie_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPT=/tmo=2s/defer_ok -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted destpite timeout - -. -quit -**** diff --git a/test/scripts/4000-scanning/4005 b/test/scripts/4000-scanning/4005 deleted file mode 100644 index d251c1a1f..000000000 --- a/test/scripts/4000-scanning/4005 +++ /dev/null @@ -1,129 +0,0 @@ -# content scan interface: clamav -# -# SCAN command interface, on a unix socket, only. No ExtendedDetectionInfo. -# -server DIR/eximdir/clam_sock -LF>scanned_file_name: OK -<*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# -server DIR/eximdir/clam_sock -LF>scanned_file_name: 666 ERROR -<*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: defer this one due to scanner error - -. -quit -**** -# -# -# -server DIR/eximdir/clam_sock -LF>scanned_file_name: VNAME FOUND -<*eof -**** -# -# -# -exim -odi -bs -DOPT=/defer_ok -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -. -quit -**** -# -# -# -server DIR/eximdir/clam_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPT="/ tmo=2s" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: defer this one due to timeout - -. -quit -**** -# -# -# -server DIR/eximdir/clam_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPT="/ tmo=2s / defer_ok" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: accept this one despite timeout - -. -quit -**** -# -# -# -# -server -i 2 DIR/eximdir/clam_sock -LF>scanned_file_name: OK -<*eof -**** -# -exim -odi -bs -DCONTROL="retry=4s" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted after a retry - -. -quit -**** -# diff --git a/test/scripts/4000-scanning/4006 b/test/scripts/4000-scanning/4006 deleted file mode 100644 index a58188c95..000000000 --- a/test/scripts/4000-scanning/4006 +++ /dev/null @@ -1,120 +0,0 @@ -# content scan interface: avast -# -server DIR/eximdir/avast_sock ->LF>220 ready -LF>210 FLAGS DATA ->LF>200 FLAGS OK -LF>210 SCAN DATA ->LF>blah [+] ->LF>200 SCAN OK - -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# -server DIR/eximdir/avast_sock ->LF>220 ready -LF>210 SCAN DATA ->LF>blah [E] ->LF>200 SCAN OK - -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: defer this one, the scanner had an error - -. -quit -**** -# -# -# -server DIR/eximdir/avast_sock ->LF>220 ready -LF>210 SCAN DATA ->LF>b\\ l\\ a\\ h [L]9.9 9 VNAME ->LF>200 SCAN OK - -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -. -quit -**** -# -# -# -server DIR/eximdir/avast_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPTION= -DINSERT="/tmo=2s" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be tmp-rejected due to timeout - -. -quit -**** -# -# -# -server DIR/eximdir/avast_sock -*sleep 3 -**** -# -# -# -exim -odi -bs -DOPTION= -DINSERT="/tmo=2s/defer_ok" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted despite timeout - -. -quit -**** diff --git a/test/scripts/4000-scanning/4007 b/test/scripts/4000-scanning/4007 deleted file mode 100644 index 9684056a0..000000000 --- a/test/scripts/4000-scanning/4007 +++ /dev/null @@ -1,57 +0,0 @@ -# content scan interface: cmdline -# -# -exim -DOPT=accept -odi -bs -DINSERT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# the defer_ok should not prevent rejection -# -exim -DOPT=reject -odi -bs -DINSERT="/defer_ok" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -. -quit -**** -# -# -# -exim -DOPT=pause3 -odi -bs -DINSERT="/tmo=2s" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be tmp-rejected due to timeout - -. -quit -**** -# -# -# -exim -DOPT=pause3 -odi -bs -DINSERT="/tmo=2s/defer_ok" -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted despite a timeout - -. -quit -**** diff --git a/test/scripts/4000-scanning/4008 b/test/scripts/4000-scanning/4008 deleted file mode 100644 index e5a7c9492..000000000 --- a/test/scripts/4000-scanning/4008 +++ /dev/null @@ -1,51 +0,0 @@ -# content scan interface: rspamd -# -# The spooled file for scanning includes the test-runner's user name -# hence size varies. Munge that. -munge scanfile_size -# -server 11333 -RSPAMD/1.3 0 EX_OK ->Metric: default; True; 15.00 / 15.00 / 0.0 ->Action: reject ->Symbol: FAKE_SYMBOL_A(15.00) ->Symbol: FAKE_SYMBOL_B(0.00) ->Message-ID: undef -*eof -**** -exim -odi -bs -ehlo test.ex -mail from:<> -rcpt to: -data -From: MAILER_DAEMON <> -Content-type: text/plain - -test -. -quit -**** diff --git a/test/scripts/4000-scanning/4009 b/test/scripts/4000-scanning/4009 deleted file mode 100644 index d9849c341..000000000 --- a/test/scripts/4000-scanning/4009 +++ /dev/null @@ -1,242 +0,0 @@ -# content scan interface: spamassassin -# -# The spooled file for scanning includes the test-runner's user name -# hence size varies. Munge that. -munge scanfile_size -# -# -# A good-comms test, returning not-spam. -# (we could use a second one that returns is-spam...) -server 7833 -SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -*eof -**** -exim -odi -oMt fromuser -bs -ehlo test.ex -mail from: -rcpt to: -data -Content-type: text/plain - -test -. -quit -**** -# -# -# -# -# Server spec line with timeout option, not exercised -# (could we cut down the massive content?) -server 7833 -SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -*eof -**** -exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=10s' -ehlo test.ex -mail from: -rcpt to: -data -Content-type: text/plain - -test -. -quit -**** -# -# -# -# Server spec line with timeout option, exercised -server -i 2 7833 -SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -*eof -**** -exim -odi -oMt fromuser -bs -DOPT='127.0.0.1 7833 retry=4s' -ehlo test.ex -mail from: -rcpt to: -data -Content-type: text/plain - -test -. -quit -**** -# -# -# -# Multiple servers, prioritised, with timeout spec; first one fails -# List separator changed -server 7833 -SPAMD/1.1 0 EX_OK ->Spam: False ; 4.5 / 5.0 -> ->Spam detection software, running on the system "demo", ->has NOT identified this incoming email as spam. The original ->message has been attached to this so you can view it or label ->similar future email. If you have any questions, see ->@@CONTACT_ADDRESS@@ for details. -> ->Content preview: test [...] -> ->Content analysis details: (4.5 points, 5.0 required) -> -> pts rule name description ->---- ---------------------- -------------------------------------------------- ->-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -> 1.2 MISSING_HEADERS Missing To: header -> 1.0 MISSING_FROM Missing From: header -> 1.8 MISSING_SUBJECT Missing Subject: header -> 1.4 MISSING_DATE Missing Date: header -> 0.1 MISSING_MID Missing Message-Id: header -> -*eof -**** -exim -odi -oMt fromuser -bs -DOPT='<; 127.0.0.1 7833 ; HOSTIPV4 7834 pri=2 tmo=2s' -ehlo test.ex -mail from: -rcpt to: -data -Content-type: text/plain - -test -. -quit -**** -# -# diff --git a/test/scripts/4000-scanning/4010 b/test/scripts/4000-scanning/4010 deleted file mode 100644 index a660f6805..000000000 --- a/test/scripts/4000-scanning/4010 +++ /dev/null @@ -1,38 +0,0 @@ -# ACL regex= test -# -# These tests are copies from testcase 4000; -# they should be removed from there but I don't -# run spamassassin so can't verify the change. -# -exim -odi -bs -ehlo test.ex -mail from:<> -rcpt to: -data -From: Test person -To: Me -Subject: A real test message -Date: Fri, 17 Dec 2004 16:13:04 +0100 -Message-ID: <41C2F849.3060203@projectile.test.ex> - -OK, this should look like a genuine message. -. -quit -**** -exim -odi -bs -ehlo test.ex -mail from:<> -rcpt to: -data -From: Test person -To: Me -Subject: A real test message -Date: Fri, 17 Dec 2004 16:13:04 +0100 -Message-ID: <41C2F849.3060203@projectile.test.ex> -FakeReject: test fakereject - -OK, this should look like a genuine message, but -it will trip on THIS gazornenplaz REGEX. -. -quit -**** diff --git a/test/scripts/4000-scanning/4011 b/test/scripts/4000-scanning/4011 deleted file mode 100644 index 20e6ab2b8..000000000 --- a/test/scripts/4000-scanning/4011 +++ /dev/null @@ -1,88 +0,0 @@ -# content scan interface: f-prot6d -need_ipv4 -munge loopback -# -server PORT_S -0 ->*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# -server PORT_S -0 DIR/spool/scan/1clxBT-0003I9-8y/1clxBT-0003I9-8y.eml ->*eof -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -due to the server response (above) -. -quit -**** -# -# -# -server PORT_S - -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be deferred due to timeout - -. -quit -**** -# -# -# -server PORT_S - -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted despite timeout - -. -quit -**** diff --git a/test/scripts/4000-scanning/4012 b/test/scripts/4000-scanning/4012 deleted file mode 100644 index 42d108c86..000000000 --- a/test/scripts/4000-scanning/4012 +++ /dev/null @@ -1,45 +0,0 @@ -# content scan interface: sock -need_ipv4 -munge loopback -# -server PORT_S -/ ->LF>RESULT: OK -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be accepted - -. -quit -**** -# -# -# -server PORT_S -/ ->LF>RESULT: BAD ->LF>NAME: wibble -**** -# -# -# -exim -odi -bs -DOPT= -ehlo test.ex -mail from:<> -rcpt to: -data -Date: Fri, 17 Dec 2004 14:35:01 +0100 -Subject: message should be rejected - -due to the server response (above) -. -quit -**** diff --git a/test/scripts/4006_scan_clamd/4006 b/test/scripts/4006_scan_clamd/4006 new file mode 100644 index 000000000..d251c1a1f --- /dev/null +++ b/test/scripts/4006_scan_clamd/4006 @@ -0,0 +1,129 @@ +# content scan interface: clamav +# +# SCAN command interface, on a unix socket, only. No ExtendedDetectionInfo. +# +server DIR/eximdir/clam_sock +LF>scanned_file_name: OK +<*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/clam_sock +LF>scanned_file_name: 666 ERROR +<*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one due to scanner error + +. +quit +**** +# +# +# +server DIR/eximdir/clam_sock +LF>scanned_file_name: VNAME FOUND +<*eof +**** +# +# +# +exim -odi -bs -DOPT=/defer_ok +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** +# +# +# +server DIR/eximdir/clam_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT="/ tmo=2s" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one due to timeout + +. +quit +**** +# +# +# +server DIR/eximdir/clam_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT="/ tmo=2s / defer_ok" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: accept this one despite timeout + +. +quit +**** +# +# +# +# +server -i 2 DIR/eximdir/clam_sock +LF>scanned_file_name: OK +<*eof +**** +# +exim -odi -bs -DCONTROL="retry=4s" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted after a retry + +. +quit +**** +# diff --git a/test/scripts/4006_scan_clamd/REQUIRES b/test/scripts/4006_scan_clamd/REQUIRES new file mode 100644 index 000000000..0a1e8374e --- /dev/null +++ b/test/scripts/4006_scan_clamd/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware clamd diff --git a/test/scripts/4007_scan_avast/4007 b/test/scripts/4007_scan_avast/4007 new file mode 100644 index 000000000..a58188c95 --- /dev/null +++ b/test/scripts/4007_scan_avast/4007 @@ -0,0 +1,120 @@ +# content scan interface: avast +# +server DIR/eximdir/avast_sock +>LF>220 ready +LF>210 FLAGS DATA +>LF>200 FLAGS OK +LF>210 SCAN DATA +>LF>blah [+] +>LF>200 SCAN OK + +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/avast_sock +>LF>220 ready +LF>210 SCAN DATA +>LF>blah [E] +>LF>200 SCAN OK + +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one, the scanner had an error + +. +quit +**** +# +# +# +server DIR/eximdir/avast_sock +>LF>220 ready +LF>210 SCAN DATA +>LF>b\\ l\\ a\\ h [L]9.9 9 VNAME +>LF>200 SCAN OK + +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** +# +# +# +server DIR/eximdir/avast_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPTION= -DINSERT="/tmo=2s" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be tmp-rejected due to timeout + +. +quit +**** +# +# +# +server DIR/eximdir/avast_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPTION= -DINSERT="/tmo=2s/defer_ok" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted despite timeout + +. +quit +**** diff --git a/test/scripts/4007_scan_avast/REQUIRES b/test/scripts/4007_scan_avast/REQUIRES new file mode 100644 index 000000000..d5a69793c --- /dev/null +++ b/test/scripts/4007_scan_avast/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware avast diff --git a/test/scripts/4008_scan_cmdline/4008 b/test/scripts/4008_scan_cmdline/4008 new file mode 100644 index 000000000..9684056a0 --- /dev/null +++ b/test/scripts/4008_scan_cmdline/4008 @@ -0,0 +1,57 @@ +# content scan interface: cmdline +# +# +exim -DOPT=accept -odi -bs -DINSERT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# the defer_ok should not prevent rejection +# +exim -DOPT=reject -odi -bs -DINSERT="/defer_ok" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** +# +# +# +exim -DOPT=pause3 -odi -bs -DINSERT="/tmo=2s" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be tmp-rejected due to timeout + +. +quit +**** +# +# +# +exim -DOPT=pause3 -odi -bs -DINSERT="/tmo=2s/defer_ok" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted despite a timeout + +. +quit +**** diff --git a/test/scripts/4008_scan_cmdline/REQUIRES b/test/scripts/4008_scan_cmdline/REQUIRES new file mode 100644 index 000000000..975694bc3 --- /dev/null +++ b/test/scripts/4008_scan_cmdline/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware cmdline diff --git a/test/scripts/4009_scan_sophie/4009 b/test/scripts/4009_scan_sophie/4009 new file mode 100644 index 000000000..956f04507 --- /dev/null +++ b/test/scripts/4009_scan_sophie/4009 @@ -0,0 +1,105 @@ +# content scan interface: sophie +# +server DIR/eximdir/sophie_sock +0 no problems mate +*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/sophie_sock +-1 oops, internal error in scanner +*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one + +. +quit +**** +# +# +# +server DIR/eximdir/sophie_sock +LF>1 VNAME +*eof +**** +# +# +# +exim -odi -bs -DOPT=/defer_ok +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** +# +# +# +server DIR/eximdir/sophie_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT=/tmo=2s +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be tmp-rejected due to timeout + +. +quit +**** +# +# +# +server DIR/eximdir/sophie_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT=/tmo=2s/defer_ok +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted destpite timeout + +. +quit +**** diff --git a/test/scripts/4009_scan_sophie/REQUIRES b/test/scripts/4009_scan_sophie/REQUIRES new file mode 100644 index 000000000..0da03b09d --- /dev/null +++ b/test/scripts/4009_scan_sophie/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware sophie diff --git a/test/scripts/4010_scan_fsecure/4010 b/test/scripts/4010_scan_fsecure/4010 new file mode 100644 index 000000000..49d331bf1 --- /dev/null +++ b/test/scripts/4010_scan_fsecure/4010 @@ -0,0 +1,134 @@ +# content scan interface: fsecure +# also testing alternate list separator for malware= args +# +server DIR/eximdir/fsec_sock +ignored_response +ignored_response +ignored_response +ignored_response +LF>random ignored line +>LF>random ignored line 2 +>LF>OK Scan ok. +*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/fsec_sock +ignored_response +ignored_response +ignored_response +ignored_response +LF>xxxINFECTED blah VNAME blah +>LF>OK Scan ok. +*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** +# +# +# +server DIR/eximdir/fsec_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT=";tmo=2s" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be tmp-rejected due to timeout + +. +quit +**** +# +# +# +server DIR/eximdir/fsec_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT=";defer_ok;tmo=2s" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted despite timeout + +. +quit +**** +# +# +# +server DIR/eximdir/fsec_sock +ignored_response +ignored_response +ignored_response +ignored_response +LF>xxxINFECTED blah VNAME blah +>LF>OK Scan ok. +*eof +**** +# +# +# +exim -odi -bs -DOPT="; defer_ok ; tmo=5h" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected as the options are not relevant + +. +quit +**** diff --git a/test/scripts/4010_scan_fsecure/REQUIRES b/test/scripts/4010_scan_fsecure/REQUIRES new file mode 100644 index 000000000..3b8b57b2c --- /dev/null +++ b/test/scripts/4010_scan_fsecure/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware fsecure diff --git a/test/scripts/4011_scan_ave/4011 b/test/scripts/4011_scan_ave/4011 new file mode 100644 index 000000000..4754609c0 --- /dev/null +++ b/test/scripts/4011_scan_ave/4011 @@ -0,0 +1,168 @@ +# content scan interface: aveserver +# +server DIR/eximdir/aveserver_sock +>200 ready +200 done +200 ready +*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/aveserver_sock +>2xx ready +5xx defer +2xx ready +*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one (daemon tmp-err) + +. +quit +**** +# +# +# +server DIR/eximdir/aveserver_sock +>2xx ready +322 VNAME found +>2xx ready +2xx ready +*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected (virus found) + +. +quit +**** +# +# +# +server DIR/eximdir/aveserver_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT="/tmo=2s" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be deferred due to timeout + +. +quit +**** +# +# +# +server DIR/eximdir/aveserver_sock +*sleep 3 +**** +# +# +# +exim -odi -bs -DOPT="/tmo=2s / defer_ok" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted despite timeout + +. +quit +**** +# +# +# +server DIR/eximdir/aveserver_sock +>2xx ready +5xx defer +2xx ready +*eof +**** +# +# +# +exim -odi -bs -DOPT=" / defer_ok" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: accept this, overriding the scan daemon temp-error + +. +quit +**** +# +# +# +# Recheck that defer_ok option does not affect a malware detection +# +server DIR/eximdir/aveserver_sock +>2xx ready +322 VNAME found +>2xx ready +2xx ready +*eof +**** +# +# +# +exim -odi -bs -DOPT="/defer_ok" +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected (virus found) + +. +quit +**** diff --git a/test/scripts/4011_scan_ave/REQUIRES b/test/scripts/4011_scan_ave/REQUIRES new file mode 100644 index 000000000..3cfac9b6b --- /dev/null +++ b/test/scripts/4011_scan_ave/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware aveserver diff --git a/test/scripts/4012_scan_fprotd/4012 b/test/scripts/4012_scan_fprotd/4012 new file mode 100644 index 000000000..6f746307e --- /dev/null +++ b/test/scripts/4012_scan_fprotd/4012 @@ -0,0 +1,95 @@ +# content scan interface: f-protd +need_ipv4 +munge loopback +# +server PORT_S + +>*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server PORT_S + +> +> +> +>wibble +> +>*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +due to the server response (above) +. +quit +**** +# +# +# +server PORT_S + +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be deferred due to timeout + +. +quit +**** +# +# +# +server PORT_S + +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted despite timeout + +. +quit +**** diff --git a/test/scripts/4012_scan_fprotd/REQUIRES b/test/scripts/4012_scan_fprotd/REQUIRES new file mode 100644 index 000000000..819b11337 --- /dev/null +++ b/test/scripts/4012_scan_fprotd/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware f-protd diff --git a/test/scripts/4013_scan_fprot6d/4013 b/test/scripts/4013_scan_fprot6d/4013 new file mode 100644 index 000000000..20e6ab2b8 --- /dev/null +++ b/test/scripts/4013_scan_fprot6d/4013 @@ -0,0 +1,88 @@ +# content scan interface: f-prot6d +need_ipv4 +munge loopback +# +server PORT_S +0 +>*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server PORT_S +0 DIR/spool/scan/1clxBT-0003I9-8y/1clxBT-0003I9-8y.eml +>*eof +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +due to the server response (above) +. +quit +**** +# +# +# +server PORT_S + +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be deferred due to timeout + +. +quit +**** +# +# +# +server PORT_S + +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted despite timeout + +. +quit +**** diff --git a/test/scripts/4013_scan_fprot6d/REQUIRES b/test/scripts/4013_scan_fprot6d/REQUIRES new file mode 100644 index 000000000..5389d9509 --- /dev/null +++ b/test/scripts/4013_scan_fprot6d/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware f-prot6d diff --git a/test/scripts/4014_scan_sock/4014 b/test/scripts/4014_scan_sock/4014 new file mode 100644 index 000000000..42d108c86 --- /dev/null +++ b/test/scripts/4014_scan_sock/4014 @@ -0,0 +1,45 @@ +# content scan interface: sock +need_ipv4 +munge loopback +# +server PORT_S +/ +>LF>RESULT: OK +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server PORT_S +/ +>LF>RESULT: BAD +>LF>NAME: wibble +**** +# +# +# +exim -odi -bs -DOPT= +ehlo test.ex +mail from:<> +rcpt to: +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +due to the server response (above) +. +quit +**** diff --git a/test/scripts/4014_scan_sock/REQUIRES b/test/scripts/4014_scan_sock/REQUIRES new file mode 100644 index 000000000..3450a21a2 --- /dev/null +++ b/test/scripts/4014_scan_sock/REQUIRES @@ -0,0 +1,2 @@ +support Content_Scanning +malware sock -- cgit v1.2.3