Summary: | app-antivirus/clamav-0.95: clamav-milter won't start with default config | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robert S <robert.spam.me.senseless> |
Component: | Current packages | Assignee: | Antivirus Team <antivirus> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | net-mail+disabled, spamtrap+gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Robert S
2009-04-05 10:23:04 UTC
I assume it's the same for 0.95.1 right? (In reply to comment #1) > I assume it's the same for 0.95.1 right? > Yes. It just requires a few simple changes to the config file. added some sed magic (similar to ones for clamd.conf and freshclam.conf) to 0.95.1 ebuild (will prolly remove 0.95 soonish) .. Line 85 of /etc/clamav-milter.conf should be as such: ClamdSocket unix:/var/run/clamav/clamd.sock Not ClamdSocket /var/run/clamav/clamd.sock I've actually discovered that messages are not being passed to clamav-milter. I've copied my sendmail config from another server (which has clamav-0.94 installed and works OK) and it still doesn't work. My logs show no evidence that messages have been scanned and there are no headers in the messages. I've tried using the unix: and tcp: sockets - no joy. I've just downgraded back to 0.94.2 and everything works OK now. hmm not sure if that has anything to do with that original bug report .. I don't use clamav-milter .. did you try upstream? (In reply to comment #5) > I've actually discovered that messages are not being passed to clamav-milter. > I've copied my sendmail config from another server (which has clamav-0.94 > installed and works OK) and it still doesn't work. My logs show no evidence > that messages have been scanned and there are no headers in the messages. I've > tried using the unix: and tcp: sockets - no joy. > > I've just downgraded back to 0.94.2 and everything works OK now. > Robert, I'm seeing messages hitting clamav-milter ok, but not being passed to clamd at all. It tells me that: No clamd server appears to be available And then rejects them. I get this for both the local unix socket and the tcp one even after configuring clamd to listen on both for the machine. Is this what you were referring to? I've just reinstalled 0.95.1. I've sent myself one of the clamav test files and it gets correctly identified as being infected and dealt with (quarantine in my case). However, there is no logging of clean messages, and no "X-Virus-Scanned:" headers appearing in the message. There is some discussion of this at http://www.nabble.com/clamav-milter-0.95.1-logging-deficiencies-td23063251.html if i understand this right then this isn'T really a gentoo bug right? No its not. I've put a query on the clamav ML about this. OK, my problem was different in the end. Just to watch out for, this comment section in the clamav-milter.conf file, isn't strictly right: # Waiting for data from clamd will timeout after this time (seconds). # Value of 0 disables the timeout. # # Default: 120 #ReadTimeout 300 Setting the ReadTimeout to 0 no longer disables the timeout. It will actually timeout after 0 seconds. This is why I was seeing the "No clamd server appears to be available" message as it was timing out trying to connect to the local socket (or rather, it basically didn't even have time to try and connect). I have fixed my problem by adding this to the end of /etc/clamav-milter.conf AddHeader yes I think that this should be added to the default config to match the behaviour of the old version. It appears that everything is working now. |