Re: [Clamav-users] attempting to use clamav from svn...

2008-12-30 Thread aCaB
Steve Holdoway wrote:
 Hi Listers,
 
 I'm having reliability problems with 0.94.2, and, as I run on a fairly 
 memory-limited server, suspect that this is the core of the problem. 
 Following on from anothe suggestion, I downloaded and built up the current 
 svn snapshot to see if there was any improvement.
[...]
 I run debian linux, and start clamav-milter as follows:
 /usr/local/sbin/clamav-milter --local --sendmail-cf=/etc/mail/sendmail.cf 
 --outgoing --sign --timeout 0 --postmaster=st...@greengecko.co.nz 
 --quarantine=st...@greengecko.co.nz --max-children 15 
 unix:/var/run/clamav/clmilter.sock

Hi Steve,
The milter in SVN is slightly changed and it won't take those command
line options any more.
At the moment the manpage hasn't been updated yet. But the example
clamav-milter.conf is well commented.

See http://lurker.clamav.net/message/20081205.152347.a7d7c9ee.en.html
for more details.

Cheers,
-aCaB

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


[Clamav-users] Mandriva 2009 and ClamAv

2008-12-30 Thread Chris
I'm working on updating my old Mandrake 10.1 system to Mandriva 2009, what 
a pain, anyway, using urpmi I installed 94.2. When trying to start it I got a 
'command not found' and noticed that in /usr/bin there is no clamd file. There 
is a clamdscan and a freshclam which in fact is getting updates. Is there any 
reason why there would be no clamd executable included with a Mandriva 
package? There was always one when I rolled my own for 10.1.

Thanks
Chris

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


Re: [Clamav-users] Mandriva 2009 and ClamAv

2008-12-30 Thread Noel Jones
Chris wrote:
 I'm working on updating my old Mandrake 10.1 system to Mandriva 2009, what 
 a pain, anyway, using urpmi I installed 94.2. When trying to start it I got a 
 'command not found' and noticed that in /usr/bin there is no clamd file. 
 There 
 is a clamdscan and a freshclam which in fact is getting updates. Is there any 
 reason why there would be no clamd executable included with a Mandriva 
 package? There was always one when I rolled my own for 10.1.
 

clamd is probably in /usr/sbin

-- 
Noel Jones
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Mandriva 2009 and ClamAv

2008-12-30 Thread Tomasz Kojm
On Tue, 30 Dec 2008 15:17:25 -0600
Chris cpoll...@embarqmail.com wrote:

 I'm working on updating my old Mandrake 10.1 system to Mandriva 2009, what 
 a pain, anyway, using urpmi I installed 94.2. When trying to start it I got
 a 'command not found' and noticed that in /usr/bin there is no clamd file.
 There is a clamdscan and a freshclam which in fact is getting updates. Is
 there any reason why there would be no clamd executable included with a
 Mandriva package? There was always one when I rolled my own for 10.1.

clamd as a system service should be located in /usr/sbin so try this one
instead of /usr/bin

-- 
   oo. Tomasz Kojm tk...@clamav.net
  (\/)\. http://www.ClamAV.net/gpg/tkojm.gpg
 \..._ 0DCA5A08407D5288279DB43454822DC8985A444B
   //\   /\  Tue Dec 30 22:27:00 CET 2008
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Mandriva 2009 and ClamAv

2008-12-30 Thread Chris
Tomasz Kojm wrote:
 On Tue, 30 Dec 2008 15:17:25 -0600
 Chris cpoll...@embarqmail.com wrote:
 
 I'm working on updating my old Mandrake 10.1 system to Mandriva 2009, what 
 a pain, anyway, using urpmi I installed 94.2. When trying to start it I got
 a 'command not found' and noticed that in /usr/bin there is no clamd file.
 There is a clamdscan and a freshclam which in fact is getting updates. Is
 there any reason why there would be no clamd executable included with a
 Mandriva package? There was always one when I rolled my own for 10.1.
 
 clamd as a system service should be located in /usr/sbin so try this one
 instead of /usr/bin
 
Not there either Tomasz. I would have thought it should be located in 
the same folder as freshclam, I'm pretty sure on the old system it was 
in /usr/bin. I'm wondering now if I should just go ahead and roll one 
for 2009 to make sure I have everything. Clamd doesn't even shouw up on 
a list of services when chkconfig --list is run whereas freshclam does.

Chris

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


Re: [Clamav-users] Mandriva 2009 and ClamAv

2008-12-30 Thread Dennis Peterson
Chris wrote:
 I'm working on updating my old Mandrake 10.1 system to Mandriva 2009, what 
 a pain, anyway, using urpmi I installed 94.2. When trying to start it I got a 
 'command not found' and noticed that in /usr/bin there is no clamd file. 
 There 
 is a clamdscan and a freshclam which in fact is getting updates. Is there any 
 reason why there would be no clamd executable included with a Mandriva 
 package? There was always one when I rolled my own for 10.1.
 
 Thanks
 Chris

Does that package come separate client and server distributions? I've 
lost track of all the ways all the different Linuxes deal with services 
vs client installations, but I have a recollection that some Linuxes 
need more than one RPM installed to get it all. You have all the client 
software, for exemple, but not the server software (clamd, and probably 
clamav-milter).

dp ... just thinking out loud

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


Re: [Clamav-users] attempting to use clamav from svn...

2008-12-30 Thread Steve Holdoway
Thanks for the suggestions. I've written a /usr/local/etc/clamav-milter.conf, 
which seems to be parsed ok, and am now starting clamav-milter with no 
parameters. I get the error

ERROR: Failed to initiate streaming/fdpassing

and the sender is being sent a tempfail. Where should I be looking to fix this? 
Do I need to be running clamd as well, and should this be using a separate 
socket to that used for sendmail??

Cheers,

Steve

On Tue, 30 Dec 2008 14:33:06 +1300
Steve Holdoway st...@greengecko.co.nz wrote:

 Hi Listers,
 
 I'm having reliability problems with 0.94.2, and, as I run on a fairly 
 memory-limited server, suspect that this is the core of the problem. 
 Following on from anothe suggestion, I downloaded and built up the current 
 svn snapshot to see if there was any improvement.
 
 I use clamav with sendmail via clamav-milter, configured
 
 ./configure --enable-milter --disable-clamuko
 
 sendmail.mc contains ( I may disable the F=T bit... )
 INPUT_MAIL_FILTER(`clamav',`S=unix:/var/run/clamav/clmilter.sock, F=T, 
 T=S:4m;R:4m')dnl
 
 and this is the error I get when clamav-milter falls over:
 Dec 30 14:24:42 server sendmail[29856]: mBU1ObVo029856: Milter (clamav): 
 write(D) returned -1, expected 6: Broken pipe
 Dec 30 14:24:42 server sendmail[29856]: mBU1ObVo029856: Milter (clamav): to 
 error state
 Dec 30 14:24:42 server sendmail[29856]: mBU1ObVo029856: Milter: 
 helo=200-100-48-20.dial-up.telesp.net.br, reject=451 4.3.2 Please try again 
 later
 
 followed by 
 
 Dec 30 14:24:42 server sendmail[29865]: mBU1Ogwp029865: Milter (clamav): 
 error connecting to filter: Connection refused by 
 /var/run/clamav/clmilter.sock
 Dec 30 14:24:42 server sendmail[29865]: mBU1Ogwp029865: Milter (clamav): to 
 error state
 Dec 30 14:24:42 server sendmail[29865]: mBU1Ogwp029865: Milter: 
 initialization failed, temp failing commands
 
 for each following connection attempt.
 
 I run debian linux, and start clamav-milter as follows:
 /usr/local/sbin/clamav-milter --local --sendmail-cf=/etc/mail/sendmail.cf 
 --outgoing --sign --timeout 0 --postmaster=st...@greengecko.co.nz 
 --quarantine=st...@greengecko.co.nz --max-children 15 
 unix:/var/run/clamav/clmilter.sock
 
 when I try to start in this manner, it errors out: firstly on the --local 
 flag, then if I remove that, the --sendmail-cf=/etc/mail/sendmail.cf flag.
 
 I can't find any docs describing the changes needed to get the svn version to 
 start. Can anyone point them out to me... or suggest any other options to 
 improve reliability.
 
 0.94.1 was fine!
 
 Cheers,
 
 Steve
 -- 
 Steve Holdoway st...@greengecko.co.nz
 ___
 Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
 http://www.clamav.net/support/ml


-- 
Steve Holdoway st...@greengecko.co.nz
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] attempting to use clamav from svn...

2008-12-30 Thread Nathan Phillip Brink

Steve Holdoway wrote:

Thanks for the suggestions. I've written a /usr/local/etc/clamav-milter.conf, 
which seems to be parsed ok, and am now starting clamav-milter with no 
parameters. I get the error

ERROR: Failed to initiate streaming/fdpassing

and the sender is being sent a tempfail. Where should I be looking to fix this? Do I need to be running clamd as well, 
I'm pretty sure that a dev said the new version of the milter (the SVN 
one) requires clamd to be running. The reason for this was that the 
having the old milter had a lot of duplicate code from clamd and was 
outdated.

and should this be using a separate socket to that used for sendmail??
  
Um, if I understand you correctly, yes. clamav-milter wants to talk to 
clamd using a socket of some type. If clamd is running locally, then 
it'll be a named socket rather than a TCP socket. This socket would be 
different than the milter socket that sendmail uses to talk to the 
clamav-milter.

Cheers,

Steve
  






signature.asc
Description: OpenPGP digital signature
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml