Define MIN and MAX for Solaris
[users/heiko/exim.git] / test / scripts / 4000-scanning / 4003
1 # content scan interface: fsecure
2 # also testing alternate list separator for malware= args
3 #
4 server 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 #
22 exim -odi -bs -DOPT=
23 ehlo test.ex
24 mail from:<>
25 rcpt to:<userx@test.ex>
26 data
27 Date: Fri, 17 Dec 2004 14:35:01 +0100
28 Subject: message should be accepted
29
30 .
31 quit
32 ****
33 #
34 #
35 #
36 server 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 #
53 exim -odi -bs -DOPT=
54 ehlo test.ex
55 mail from:<>
56 rcpt to:<userx@test.ex>
57 data
58 Date: Fri, 17 Dec 2004 14:35:01 +0100
59 Subject: message should be rejected
60
61 .
62 quit
63 ****
64 #
65 #
66 #
67 server DIR/eximdir/fsec_sock
68 *sleep 3
69 ****
70 #
71 #
72 #
73 exim -odi -bs -DOPT=";tmo=2s"
74 ehlo test.ex
75 mail from:<>
76 rcpt to:<userx@test.ex>
77 data
78 Date: Fri, 17 Dec 2004 14:35:01 +0100
79 Subject: message should be tmp-rejected due to timeout
80
81 .
82 quit
83 ****
84 #
85 #
86 #
87 server DIR/eximdir/fsec_sock
88 *sleep 3
89 ****
90 #
91 #
92 #
93 exim -odi -bs -DOPT=";defer_ok;tmo=2s"
94 ehlo test.ex
95 mail from:<>
96 rcpt to:<userx@test.ex>
97 data
98 Date: Fri, 17 Dec 2004 14:35:01 +0100
99 Subject: message should be accepted despite timeout
100
101 .
102 quit
103 ****
104 #
105 #
106 #
107 server 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 #
124 exim -odi -bs -DOPT="; defer_ok ; tmo=5h"
125 ehlo test.ex
126 mail from:<>
127 rcpt to:<userx@test.ex>
128 data
129 Date: Fri, 17 Dec 2004 14:35:01 +0100
130 Subject: message should be rejected as the options are not relevant
131
132 .
133 quit
134 ****