Feature macros, show-supported and build-time selection for malware interfaces
[exim.git] / test / scripts / 4006_scan_clamd / 4006
CommitLineData
a60f6c07
JH
1# content scan interface: clamav
2#
3# SCAN command interface, on a unix socket, only. No ExtendedDetectionInfo.
4#
5server DIR/eximdir/clam_sock
6<SCAN
7>LF>scanned_file_name: OK
8<*eof
9****
10#
11#
12#
0f0c8159 13exim -odi -bs -DOPT=
a60f6c07
JH
14ehlo test.ex
15mail from:<>
16rcpt to:<userx@test.ex>
17data
18Date: Fri, 17 Dec 2004 14:35:01 +0100
19Subject: message should be accepted
20
21.
22quit
23****
24#
25#
26#
27server DIR/eximdir/clam_sock
28<SCAN
29>LF>scanned_file_name: 666 ERROR
30<*eof
31****
32#
33#
34#
0f0c8159 35exim -odi -bs -DOPT=
a60f6c07
JH
36ehlo test.ex
37mail from:<>
38rcpt to:<userx@test.ex>
39data
40Date: Fri, 17 Dec 2004 14:35:01 +0100
0f0c8159 41Subject: defer this one due to scanner error
a60f6c07
JH
42
43.
44quit
45****
46#
47#
48#
49server DIR/eximdir/clam_sock
50<SCAN
51>LF>scanned_file_name: VNAME FOUND
52<*eof
53****
54#
55#
56#
0f0c8159 57exim -odi -bs -DOPT=/defer_ok
a60f6c07
JH
58ehlo test.ex
59mail from:<>
60rcpt to:<userx@test.ex>
61data
62Date: Fri, 17 Dec 2004 14:35:01 +0100
63Subject: message should be rejected
64
65.
66quit
67****
0f0c8159
JH
68#
69#
70#
71server DIR/eximdir/clam_sock
72*sleep 3
73****
74#
75#
76#
77exim -odi -bs -DOPT="/ tmo=2s"
78ehlo test.ex
79mail from:<>
80rcpt to:<userx@test.ex>
81data
82Date: Fri, 17 Dec 2004 14:35:01 +0100
83Subject: defer this one due to timeout
84
85.
86quit
87****
88#
89#
90#
91server DIR/eximdir/clam_sock
92*sleep 3
93****
94#
95#
96#
97exim -odi -bs -DOPT="/ tmo=2s / defer_ok"
98ehlo test.ex
99mail from:<>
100rcpt to:<userx@test.ex>
101data
102Date: Fri, 17 Dec 2004 14:35:01 +0100
103Subject: accept this one despite timeout
104
105.
106quit
107****
108#
109#
8a512ed5
JH
110#
111#
112server -i 2 DIR/eximdir/clam_sock
113<SCAN
114>LF>scanned_file_name: OK
115<*eof
116****
117#
118exim -odi -bs -DCONTROL="retry=4s"
119ehlo test.ex
120mail from:<>
121rcpt to:<userx@test.ex>
122data
123Date: Fri, 17 Dec 2004 14:35:01 +0100
124Subject: message should be accepted after a retry
125
126.
127quit
128****
129#