Re: [Clamav-users] milter in error state
On Wed, 20 Apr 2005, Pete Sherwin S. Villanueva wrote: I installed clamav on redhat 9 and also the clamav milter so that it will scan all mail coming in and out, and i also run the clamscan, it will detect virus. now my problem is milter is not communicating with sendmail (its not scanning mails). in the sendmail log file this message will came out: [10079]: j3K69E9C010079: Milter (clmilter): write(O) returned -1, expected 12: Broken pipe [10079]: j3K69E9C010079: Milter (clmilter): to error state [10079]: j3K69E9C010079: Milter (clmilter): init failed to open [10079]: j3K69E9C010079: Milter (clmilter): to error state please help me How are you defining the milter in sendmail.mc? The docs say that you should add a define('confINPUT_MAIL_FILTERS','clmilter) after INPUT_MAIL_FILTER(clmilter',...) if you did this - remove the define entry - it is redefines the milter and causes problems. -- -sg ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] milter in error state
On Thu, 21 Apr 2005, Pete Sherwin S. Villanueva wrote: i did add this line to my sendmail.mc and recompile it. INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock, F=, T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `clmilter') The INPUT_MAIL_FILTER should be one line (assuming email wrap) Delete the define(.. entry It effectively remove the defininition from the line above. not what you want. (ref: http://www.sendmail.org/m4/adding_mailfilters.html) recompile sendmail.mc and restart sendmail. The clamav-milter docs need to be updated. -- -sg ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] milter in error state
does the path to the socket match between sendmail and clamav-milter ? permissions on socket? On Thu, 21 Apr 2005, Pete Sherwin S. Villanueva wrote: The INPUT_MAIL_FILTER is in one line.i comment out this line define(`confINPUT_MAIL_FILTERS', `clmilter') but still error occured. - Original Message - From: Subhendu Ghosh [EMAIL PROTECTED] To: ClamAV users ML clamav-users@lists.clamav.net Sent: Thursday, April 21, 2005 7:38 AM Subject: Re: [Clamav-users] milter in error state On Thu, 21 Apr 2005, Pete Sherwin S. Villanueva wrote: i did add this line to my sendmail.mc and recompile it. INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock, F=, T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `clmilter') The INPUT_MAIL_FILTER should be one line (assuming email wrap) Delete the define(.. entry It effectively remove the defininition from the line above. not what you want. (ref: http://www.sendmail.org/m4/adding_mailfilters.html) recompile sendmail.mc and restart sendmail. The clamav-milter docs need to be updated. -- -sg ___ http://lurker.clamav.net/list/clamav-users.html ___ http://lurker.clamav.net/list/clamav-users.html -- ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] milter in error state
clamd and clamav-milter both need to run as the same user I think. On Thu, 21 Apr 2005, Pete Sherwin S. Villanueva wrote: i didn't run clamd as clamav user. do i need to change the permission of the socket and run as clamav user? - Original Message - From: Subhendu Ghosh [EMAIL PROTECTED] To: ClamAV users ML clamav-users@lists.clamav.net Sent: Thursday, April 21, 2005 8:20 AM Subject: Re: [Clamav-users] milter in error state does the path to the socket match between sendmail and clamav-milter ? permissions on socket? On Thu, 21 Apr 2005, Pete Sherwin S. Villanueva wrote: The INPUT_MAIL_FILTER is in one line.i comment out this line define(`confINPUT_MAIL_FILTERS', `clmilter') but still error occured. - Original Message - From: Subhendu Ghosh [EMAIL PROTECTED] To: ClamAV users ML clamav-users@lists.clamav.net Sent: Thursday, April 21, 2005 7:38 AM Subject: Re: [Clamav-users] milter in error state On Thu, 21 Apr 2005, Pete Sherwin S. Villanueva wrote: i did add this line to my sendmail.mc and recompile it. INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock, F=, T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `clmilter') The INPUT_MAIL_FILTER should be one line (assuming email wrap) Delete the define(.. entry It effectively remove the defininition from the line above. not what you want. (ref: http://www.sendmail.org/m4/adding_mailfilters.html) recompile sendmail.mc and restart sendmail. The clamav-milter docs need to be updated. -- -sg ___ http://lurker.clamav.net/list/clamav-users.html ___ http://lurker.clamav.net/list/clamav-users.html -- ___ http://lurker.clamav.net/list/clamav-users.html ___ http://lurker.clamav.net/list/clamav-users.html -- ___ http://lurker.clamav.net/list/clamav-users.html
[Clamav-users] document update?
In the current docs on clamav-milter (http://clamav.net/doc/latest/html/node19.html) the example uses INPUT_MAIL_FILTER followed by define('confINPUT_MAIL_FILTERS', ... According to the sendmail docs the second entry will invalidate the first. (http://www.sendmail.org/m4/adding_mailfilters.html) Should probably remove the reference to confINPUT_MAIL_FILTERS After spend a day scratching my head on milter error state... -- -sg ___ http://lurker.clamav.net/list/clamav-users.html