Le 30 sept. 08 à 10:34, Török Edwin a écrit :

> On 2008-09-30 10:14, Bruno Richard wrote:
>> Hi all,
>>
>> I have sparc servers with solaris that use clamav-milter and sendmail
>> and
>> that run without any problem.
>>
>> For 2 or 3 days, I try to use clamav-milter on a debian box without
>> any success.
>> I try version 0.93 and 0.94 for the same result.
>>
>> I have error messages:
>>
>> With version 0.93:
>>
>> Sep 29 16:45:09 chico sendmail[8423]: m8TEfsMd008423:
>> milter_sys_read(clmilter): cmd read returned 0, expecting 5
>> Sep 29 16:51:03 chico sendmail[8449]: m8TEl3a0008449: Milter
>> (clmilter): timeout before data read, where=body
>>
>> With version 0.94:
>>
>> Sep 29 17:33:18 chico sendmail[8507]: m8TFVwIO008507: Milter
>> (clmilter): read returned -1: Connection reset by xxxxxxxxx
>> Sep 29 17:33:18 chico sendmail[8507]: m8TFVwIO008507: Milter
>> (clmilter): to error state
>> Sep 29 17:33:18 chico sendmail[8507]: m8TFVwIO008507: Milter
>> (clmilter): init failed to open
>> Sep 29 17:33:18 chico sendmail[8507]: m8TFVwIO008507: Milter
>> (clmilter): to error state
>>
>>
>> When I try to send a mail, it looks like clamav would catch the mail
>> and I should wait 4 minutes
>> to get the mail (not tagged by clamav). Moreover when I start  
>> clamav I
>> have 4 processes. After sending the mail
>> a have only one.
>>
>> does someone have any idea ? any clue ?
>>
>
> clamav-milter has a debug mode, you need to compile with --enable- 
> debug,
> and then use --debug --debug-level 15 when starting clamav-milter, and
> set 'Foreground yes' in clamd.conf.
>
> If there is nothing indicating what is wrong in the Debug output,  
> open a
> bugreport and attach the debug output.
>
> Best regards,
> --Edwin
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml


Thanks for your answer.

I recompiled clamav with the debug parameters and I got the following  
output :

----------------

LibClamAV debug: watchdog wakes
LibClamAV debug: Stat()ing files in /var/lib/clamav
LibClamAV debug: watchdog sleeps
clamfi_connect: connexion from xxx [xxx]HELO 'xxxx'
LibClamAV debug: Saving message to /tmp/clamav- 
c4d86c23f55e164e4d3d927e2c017d77/msg.BGuYPq to scan later
LibClamAV debug: 10:56:53 clamfi_send: len=116 bufsiz=8192, fd=8
LibClamAV debug: connect2clamd: serverNumber = 0
LibClamAV debug: 10:56:53 clamfi_send: len=56 bufsiz=8192, fd=8
LibClamAV debug: 10:56:53 clamfi_send: len=60 bufsiz=8192, fd=8
LibClamAV debug: 10:56:53 clamfi_send: len=32 bufsiz=8192, fd=8
LibClamAV debug: 10:56:53 clamfi_send: len=1 bufsiz=8192, fd=8
LibClamAV debug: 10:56:53 clamfi_send: len=379 bufsiz=8192, fd=8
LibClamAV debug: Recognized Raw mail file
LibClamAV debug: Starting cli_scanmail(), recursion = 1
LibClamAV debug: in mbox()
LibClamAV debug: parseEmailFile
LibClamAV debug: parseEmailFile: check 'Received: by clamav-milter'  
fullline (nil)
LibClamAV debug: parseEmailFile: check 'From: Bruno Richard  
<[EMAIL PROTECTED]>' fullline (nil)
LibClamAV debug: parseEmailFile: check 'To: [EMAIL PROTECTED]'  
fullline (nil)
LibClamAV debug: parseEmailFile: check 'From: Bruno Richard  
<[EMAIL PROTECTED]>' fullline (nil)
LibClamAV debug: parseEmailFile: check 'Content-Type: text/plain;  
charset=ISO-8859-1; format=flowed' fullline (nil)
LibClamAV debug: tableFind: Cost of 'Content-Type' = 1
LibClamAV debug: parseEmailHeader 'Content-Type: text/plain;  
charset=ISO-8859-1; format=flowed'
LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' text/ 
plain; charset=ISO-8859-1; format=flowed'
LibClamAV debug: tableFind: Cost of 'Content-Type' = 1
LibClamAV debug: messageSetMimeType: 'text'
LibClamAV debug: tableFind: Cost of 'text' = 1
LibClamAV debug: mimeArgs = ' charset=ISO-8859-1'
LibClamAV debug: Add arguments ' charset=ISO-8859-1'
LibClamAV debug: messageAddArgument, arg='charset=ISO-8859-1'
LibClamAV debug: Discarding unwanted argument 'charset=ISO-8859-1'
LibClamAV debug: mimeArgs = ' format=flowed'
LibClamAV debug: Add arguments ' format=flowed'
LibClamAV debug: messageAddArgument, arg='format=flowed'
LibClamAV debug: Discarding unwanted argument 'format=flowed'
LibClamAV debug: parseEmailFile: check 'Content-Transfer-Encoding:  
8bit' fullline (nil)
LibClamAV debug: tableFind: Cost of 'Content-Transfer-Encoding' = 2
LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: 8bit'
LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding',  
arg=' 8bit'
LibClamAV debug: tableFind: Cost of 'Content-Transfer-Encoding' = 2
LibClamAV debug: messageSetEncoding: '8bit'
LibClamAV debug: Encoding type 1 is "8bit"
LibClamAV debug: parseEmailFile: check '' fullline (nil)
LibClamAV debug: End of header information
LibClamAV debug: newline_in_header, check "-- "
LibClamAV debug: parseEmailFile: return
LibClamAV debug: in parseEmailBody, 0 files saved so far
LibClamAV debug: Parsing mail file
LibClamAV debug: tableFind: Cost of 'plain' = 1
LibClamAV debug: text/plain: Assume no attachements
LibClamAV debug: Not a mime encoded message
LibClamAV debug: messageToText: export transfer method 0 = 3
LibClamAV debug: Saving text part to scan, rc = 1
LibClamAV debug: messageAddArgument, arg='filename=textportion'
LibClamAV debug: messageToFileblob
LibClamAV debug: blobCreate
LibClamAV debug: messageExport: numberOfEncTypes == 1
LibClamAV debug: messageExport: enctype 0 is 3
LibClamAV debug: messageFindArgument: compare 8 bytes of filename with  
filename=textportion
LibClamAV debug: blobSetFilename: textportion
LibClamAV debug: fileblobSetFilename: file textportion saved to /tmp/ 
clamav-2d5a8bb736b518e9dbc8f507502d380a/clamav- 
d809de29bb6aa6f709525fc2205597dc
LibClamAV debug: Exported 366 bytes using enctype 3
LibClamAV debug: Saving main message
LibClamAV debug: in cli_scanscript()
LibClamAV debug: /tmp/clamav-2d5a8bb736b518e9dbc8f507502d380a/clamav- 
d809de29bb6aa6f709525fc2205597dc is clean
LibClamAV debug: fileblobDestructiveDestroy: /tmp/ 
clamav-2d5a8bb736b518e9dbc8f507502d380a/clamav- 
d809de29bb6aa6f709525fc2205597dc
LibClamAV debug: parseEmailBody() returning 1
LibClamAV debug: cli_mbox returning 0
Bus error

---------------
Should I open a bug report or does someone have a solution ?

thanks again.
Bruno

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to