diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2014-12-21 21:32:13 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2014-12-21 21:36:47 +0000 |
commit | a60f6c07eea74e79b88828295a191e79595d8960 (patch) | |
tree | 0bbb7f0cf598a4da9c31124ddbf146a3a8784ffb /test/scripts/4000-scanning | |
parent | 21bc4865a31e8fba169d6da095890f842fc0643a (diff) |
Testsuite: cases for malware= interfaces to f-protd, aveserver, fsecure, soophie & clamav
There are running against scripts not the rea thing
so only useful for spotting gross breakage.
Diffstat (limited to 'test/scripts/4000-scanning')
-rw-r--r-- | test/scripts/4000-scanning/4001 | 50 | ||||
-rw-r--r-- | test/scripts/4000-scanning/4002 | 75 | ||||
-rw-r--r-- | test/scripts/4000-scanning/4003 | 62 | ||||
-rw-r--r-- | test/scripts/4000-scanning/4004 | 65 | ||||
-rw-r--r-- | test/scripts/4000-scanning/4005 | 67 |
5 files changed, 319 insertions, 0 deletions
diff --git a/test/scripts/4000-scanning/4001 b/test/scripts/4000-scanning/4001 new file mode 100644 index 000000000..0234a3d5d --- /dev/null +++ b/test/scripts/4000-scanning/4001 @@ -0,0 +1,50 @@ +# content scan interface: f-protd +# +server PORT_S +<GET +< +><summary code="11"> +>*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server PORT_S +<GET +< +> +> +> +><detected type="foo"> +><name>wibble</name> +><summary code="11"> +>*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** diff --git a/test/scripts/4000-scanning/4002 b/test/scripts/4000-scanning/4002 new file mode 100644 index 000000000..201fdf197 --- /dev/null +++ b/test/scripts/4000-scanning/4002 @@ -0,0 +1,75 @@ +# content scan interface: aveserver +# +server DIR/eximdir/aveserver_sock +>200 ready +<SCAN +>200 done +<quit +>200 ready +*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/aveserver_sock +>2xx ready +<SCAN +>5xx defer +<quit +>2xx ready +*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one + +. +quit +**** +# +# +# +server DIR/eximdir/aveserver_sock +>2xx ready +<SCAN +>322 VNAME found +>2xx ready +<quit +>2xx ready +*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** diff --git a/test/scripts/4000-scanning/4003 b/test/scripts/4000-scanning/4003 new file mode 100644 index 000000000..0bfa14e9e --- /dev/null +++ b/test/scripts/4000-scanning/4003 @@ -0,0 +1,62 @@ +# content scan interface: fsecure +# +server DIR/eximdir/fsec_sock +<CONFIGURE +>ignored_response +<CONFIGURE +>ignored_response +<CONFIGURE +>ignored_response +<CONFIGURE +>ignored_response +<SCAN +>LF>random ignored line +>LF>random ignored line 2 +>LF>OK Scan ok. +*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/fsec_sock +<CONFIGURE +>ignored_response +<CONFIGURE +>ignored_response +<CONFIGURE +>ignored_response +<CONFIGURE +>ignored_response +<SCAN +>LF>xxxINFECTED blah VNAME blah +>LF>OK Scan ok. +*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** diff --git a/test/scripts/4000-scanning/4004 b/test/scripts/4000-scanning/4004 new file mode 100644 index 000000000..e6a142930 --- /dev/null +++ b/test/scripts/4000-scanning/4004 @@ -0,0 +1,65 @@ +# content scan interface: sophie +# +server DIR/eximdir/sophie_sock +</ +>0 no problems mate +*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +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 +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +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 +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** diff --git a/test/scripts/4000-scanning/4005 b/test/scripts/4000-scanning/4005 new file mode 100644 index 000000000..32a281b03 --- /dev/null +++ b/test/scripts/4000-scanning/4005 @@ -0,0 +1,67 @@ +# content scan interface: clamav +# +# SCAN command interface, on a unix socket, only. No ExtendedDetectionInfo. +# +server DIR/eximdir/clam_sock +<SCAN +>LF>scanned_file_name: OK +<*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be accepted + +. +quit +**** +# +# +# +server DIR/eximdir/clam_sock +<SCAN +>LF>scanned_file_name: 666 ERROR +<*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one + +. +quit +**** +# +# +# +server DIR/eximdir/clam_sock +<SCAN +>LF>scanned_file_name: VNAME FOUND +<*eof +**** +# +# +# +exim -odi -bs +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** |