testcases for value return
[exim.git] / test / scripts / 4010_scan_fsecure / 4010
CommitLineData
c11d665d
JH
1# content scan interface: fsecure
2# also testing alternate list separator for malware= args
3#
4server DIR/eximdir/fsec_sock
5<CONFIGURE
6>ignored_response
7<CONFIGURE
8>ignored_response
9<CONFIGURE
10>ignored_response
11<CONFIGURE
12>ignored_response
13<SCAN
14>LF>random ignored line
15>LF>random ignored line 2
16>LF>OK Scan ok.
17*eof
18****
19#
20#
21#
22exim -odi -bs -DOPT=
23ehlo test.ex
24mail from:<>
25rcpt to:<userx@test.ex>
26data
27Date: Fri, 17 Dec 2004 14:35:01 +0100
28Subject: message should be accepted
29
30.
31quit
32****
33#
34#
35#
36server DIR/eximdir/fsec_sock
37<CONFIGURE
38>ignored_response
39<CONFIGURE
40>ignored_response
41<CONFIGURE
42>ignored_response
43<CONFIGURE
44>ignored_response
45<SCAN
46>LF>xxxINFECTED blah VNAME blah
47>LF>OK Scan ok.
48*eof
49****
50#
51#
52#
53exim -odi -bs -DOPT=
54ehlo test.ex
55mail from:<>
56rcpt to:<userx@test.ex>
57data
58Date: Fri, 17 Dec 2004 14:35:01 +0100
59Subject: message should be rejected
60
61.
62quit
63****
64#
65#
66#
67server DIR/eximdir/fsec_sock
68*sleep 3
69****
70#
71#
72#
73exim -odi -bs -DOPT=";tmo=2s"
74ehlo test.ex
75mail from:<>
76rcpt to:<userx@test.ex>
77data
78Date: Fri, 17 Dec 2004 14:35:01 +0100
79Subject: message should be tmp-rejected due to timeout
80
81.
82quit
83****
84#
85#
86#
87server DIR/eximdir/fsec_sock
88*sleep 3
89****
90#
91#
92#
93exim -odi -bs -DOPT=";defer_ok;tmo=2s"
94ehlo test.ex
95mail from:<>
96rcpt to:<userx@test.ex>
97data
98Date: Fri, 17 Dec 2004 14:35:01 +0100
99Subject: message should be accepted despite timeout
100
101.
102quit
103****
104#
105#
106#
107server DIR/eximdir/fsec_sock
108<CONFIGURE
109>ignored_response
110<CONFIGURE
111>ignored_response
112<CONFIGURE
113>ignored_response
114<CONFIGURE
115>ignored_response
116<SCAN
117>LF>xxxINFECTED blah VNAME blah
118>LF>OK Scan ok.
119*eof
120****
121#
122#
123#
124exim -odi -bs -DOPT="; defer_ok ; tmo=5h"
125ehlo test.ex
126mail from:<>
127rcpt to:<userx@test.ex>
128data
129Date: Fri, 17 Dec 2004 14:35:01 +0100
130Subject: message should be rejected as the options are not relevant
131
132.
133quit
134****