1 # content scan interface: clamav
3 # SCAN command interface, on a unix socket, only. No ExtendedDetectionInfo.
6 server DIR/eximdir/clam_sock
8 >LF>scanned_file_name: OK
14 exim -odi -bs -DSRV=DIR/eximdir/clam_sock -DOPT=
17 rcpt to:<userx@test.ex>
19 Date: Fri, 17 Dec 2004 14:35:01 +0100
20 Subject: message should be accepted
29 server DIR/eximdir/clam_sock
31 >LF>scanned_file_name: 666 ERROR
37 exim -odi -bs -DSRV=DIR/eximdir/clam_sock -DOPT=
40 rcpt to:<userx@test.ex>
42 Date: Fri, 17 Dec 2004 14:35:01 +0100
43 Subject: defer this one due to scanner error
52 server DIR/eximdir/clam_sock
54 >LF>scanned_file_name: VNAME FOUND
60 exim -odi -bs -DSRV=DIR/eximdir/clam_sock -DOPT=/defer_ok
63 rcpt to:<userx@test.ex>
65 Date: Fri, 17 Dec 2004 14:35:01 +0100
66 Subject: message should be rejected
75 server DIR/eximdir/clam_sock
81 exim -odi -bs -DSRV=DIR/eximdir/clam_sock -DOPT="/ tmo=2s"
84 rcpt to:<userx@test.ex>
86 Date: Fri, 17 Dec 2004 14:35:01 +0100
87 Subject: defer this one due to timeout
96 server DIR/eximdir/clam_sock
102 exim -odi -bs -DSRV=DIR/eximdir/clam_sock -DOPT="/ tmo=2s / defer_ok"
105 rcpt to:<userx@test.ex>
107 Date: Fri, 17 Dec 2004 14:35:01 +0100
108 Subject: accept this one despite timeout
117 # connect-fail (server not initially listenting), retry
118 server -i 2 DIR/eximdir/clam_sock
120 >LF>scanned_file_name: OK
124 exim -odi -bs -DSRV=DIR/eximdir/clam_sock -DCONTROL="retry=4s"
127 rcpt to:<userx@test.ex>
129 Date: Fri, 17 Dec 2004 14:35:01 +0100
130 Subject: message should be accepted after a retry
136 ################################################################################
138 # TCP clamd server connection, default protocol
139 # only checks the protocol header, filesize element and start of eml file lines;
140 # not the post-file protocol mark
143 <zINSTREAM\x00\x00\x00\x01\xe5From MAILER-DAEMON
145 <X-Envelope-To: userx@test.ex
147 <\x09by myhost.test.ex with local-esmtp
148 <\x09(envelope-from <
150 <\x09for userx@test.ex;
153 <Subject: message should be accepted
158 >LF>scanned_file_name: OK
162 exim -odi -bs -DSRV="127.0.0.1 PORT_D" -DOPT=
165 rcpt to:<userx@test.ex>
167 Date: Fri, 17 Dec 2004 14:35:01 +0100
168 Subject: message should be accepted