diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/4012 | 29 | ||||
-rw-r--r-- | test/scripts/4000-scanning/4012 | 45 |
2 files changed, 74 insertions, 0 deletions
diff --git a/test/confs/4012 b/test/confs/4012 new file mode 100644 index 000000000..9afd4a07c --- /dev/null +++ b/test/confs/4012 @@ -0,0 +1,29 @@ +# Exim test configuration 4012 +# Content-scan: sock interface + +.include DIR/aux-var/std_conf_prefix + +primary_hostname = myhost.test.ex + +av_scanner = sock : 127.0.0.1 PORT_S : : BAD : NAME:: (\w+) + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = c_data + +begin acl + +c_data: + accept !malware = * OPT + deny logwrite = $callout_address malware_name $malware_name + +# ----- Routers ----- + +begin routers + +r: + driver = redirect + data = :blackhole: + +# End diff --git a/test/scripts/4000-scanning/4012 b/test/scripts/4000-scanning/4012 new file mode 100644 index 000000000..42d108c86 --- /dev/null +++ b/test/scripts/4000-scanning/4012 @@ -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:<userx@test.ex> +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:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +due to the server response (above) +. +quit +**** |