Date: 2005-02-25T04:17:47 Editor: VincenzoGianferrari Wiki: Apache James Wiki Page: ClamAVScan URL: http://wiki.apache.org/james/ClamAVScan
no comment Change Log: ------------------------------------------------------------------------------ @@ -18,7 +18,7 @@ * '''<port>''': the port on which CLAMD listens. The default is ''3310''. * '''<maxPings>''': the maximum number of connection retries during startup. If the value is ''0'' no startup test will be done. The default is ''6''. * '''<pingIntervalMilli>''': the interval between each connection retry during startup. The default is ''30000'' (30 seconds). - * '''<streamBufferSize>''': the BufferedOutputStream buffer size to use when writing to the ''stream connection''. The default is ''8192''. + * '''<streamBufferSize>''': the B''''''ufferedOutputStream buffer size to use when writing to the ''stream connection''. The default is ''8192''. = Behaviour = @@ -37,22 +37,22 @@ 1. sends a "STREAM" request; 1. parses the "PORT ''streamPort''" answer obtaining the port number; 1. makes a second connection (the ''stream connection'') to CLAMD at the same host (or IP) on the ''streamPort'' just obtained; - 1. sends the MimeMessage to CLAMD (using MimeMessage#writeTo(OutputStream)) through the ''stream connection''; + 1. sends the M''''''imeMessage to CLAMD (using M''''''imeMessage#writeTo(O''''''utputStream)) through the ''stream connection''; 1. closes the ''stream connection''; 1. gets the "OK" or "... FOUND" answer from the main connection; 1. closes the main connection; 1. sets the "org.apache.james.infected" ''mail attribute'' to either "true" or "false"; - 1. adds the "X-MessageIsInfected" ''header'' to either "true" or "false", depending on the results of the scan. + 1. adds the "X-M''''''essageIsInfected" ''header'' to either "true" or "false", depending on the results of the scan. = ClamAV configuration notes = The following parameters are required in '''clamav.conf''': - * '''LocalSocket''' must be commented out - * '''TCPSocket''' must be set to a port# (typically 3310) - * '''StreamMaxLength''' must be >= the James config.xml parameter <maxmessagesize> in SMTP <handler> - * '''MaxThreads''' should? be >= the James config.xml parameter <threads> in <spoolmanager> - * '''ScanMail''' must be uncommented + * '''L''''''ocalSocket''' must be commented out + * '''T''''''CPSocket''' must be set to a port# (typically 3310) + * '''S''''''treamMaxLength''' must be >= the James config.xml parameter <maxmessagesize> in SMTP <handler> + * '''M''''''axThreads''' should? be >= the James config.xml parameter <threads> in <spoolmanager> + * '''S''''''canMail''' must be uncommented = A James config.xml example = @@ -105,4 +105,4 @@ }}} -The reason for the ''onMailetException="ignore"'' entry in the ClamAVScan mailet "call" is to avoid losing the message if an Exception is unlikely thrown, but it is just my choice, as I have a "second line" defense blocking "bad extensions" with an "AttachmentFileNameIs=" call. +The reason for the ''onMailetException="ignore"'' entry in the ClamAVScan mailet "call" is to avoid losing the message if an Exception is unlikely thrown, but it is just my choice, as I have a "second line" defense blocking "bad extensions" with an "A''''''ttachmentFileNameIs=" call.