Testsuite: regression test for Bug 2061
[exim.git] / test / scripts / 4000-scanning / 4002
1 # content scan interface: aveserver
2 #
3 server DIR/eximdir/aveserver_sock
4 >200 ready
5 <SCAN
6 >200 done
7 <quit
8 >200 ready
9 *eof
10 ****
11 #
12 #
13 #
14 exim -odi -bs -DOPT=
15 ehlo test.ex
16 mail from:<>
17 rcpt to:<userx@test.ex>
18 data
19 Date: Fri, 17 Dec 2004 14:35:01 +0100
20 Subject: message should be accepted
21
22 .
23 quit
24 ****
25 #
26 #
27 #
28 server DIR/eximdir/aveserver_sock
29 >2xx ready
30 <SCAN
31 >5xx defer
32 <quit
33 >2xx ready
34 *eof
35 ****
36 #
37 #
38 #
39 exim -odi -bs -DOPT=
40 ehlo test.ex
41 mail from:<>
42 rcpt to:<userx@test.ex>
43 data
44 Date: Fri, 17 Dec 2004 14:35:01 +0100
45 Subject: defer this one (daemon tmp-err)
46
47 .
48 quit
49 ****
50 #
51 #
52 #
53 server DIR/eximdir/aveserver_sock
54 >2xx ready
55 <SCAN
56 >322 VNAME found
57 >2xx ready
58 <quit
59 >2xx ready
60 *eof
61 ****
62 #
63 #
64 #
65 exim -odi -bs -DOPT=
66 ehlo test.ex
67 mail from:<>
68 rcpt to:<userx@test.ex>
69 data
70 Date: Fri, 17 Dec 2004 14:35:01 +0100
71 Subject: message should be rejected (virus found)
72
73 .
74 quit
75 ****
76 #
77 #
78 #
79 server DIR/eximdir/aveserver_sock
80 *sleep 3
81 ****
82 #
83 #
84 #
85 exim -odi -bs -DOPT="/tmo=2s"
86 ehlo test.ex
87 mail from:<>
88 rcpt to:<userx@test.ex>
89 data
90 Date: Fri, 17 Dec 2004 14:35:01 +0100
91 Subject: message should be deferred due to timeout
92
93 .
94 quit
95 ****
96 #
97 #
98 #
99 server DIR/eximdir/aveserver_sock
100 *sleep 3
101 ****
102 #
103 #
104 #
105 exim -odi -bs -DOPT="/tmo=2s / defer_ok"
106 ehlo test.ex
107 mail from:<>
108 rcpt to:<userx@test.ex>
109 data
110 Date: Fri, 17 Dec 2004 14:35:01 +0100
111 Subject: message should be accepted despite timeout
112
113 .
114 quit
115 ****
116 #
117 #
118 #
119 server DIR/eximdir/aveserver_sock
120 >2xx ready
121 <SCAN
122 >5xx defer
123 <quit
124 >2xx ready
125 *eof
126 ****
127 #
128 #
129 #
130 exim -odi -bs -DOPT=" / defer_ok"
131 ehlo test.ex
132 mail from:<>
133 rcpt to:<userx@test.ex>
134 data
135 Date: Fri, 17 Dec 2004 14:35:01 +0100
136 Subject: accept this, overriding the scan daemon temp-error
137
138 .
139 quit
140 ****
141 #
142 #
143 #
144 # Recheck that defer_ok option does not affect a malware detection
145 #
146 server DIR/eximdir/aveserver_sock
147 >2xx ready
148 <SCAN
149 >322 VNAME found
150 >2xx ready
151 <quit
152 >2xx ready
153 *eof
154 ****
155 #
156 #
157 #
158 exim -odi -bs -DOPT="/defer_ok"
159 ehlo test.ex
160 mail from:<>
161 rcpt to:<userx@test.ex>
162 data
163 Date: Fri, 17 Dec 2004 14:35:01 +0100
164 Subject: message should be rejected (virus found)
165
166 .
167 quit
168 ****