Török Edwin wrote:
> Check permissions on /tmp/clamd.socket

seems to be OK
$ ls -lart /tmp/clamd.socket
srwxrwxrwx 1 clamav clamav 0 Dec 28 09:15 /tmp/clamd.socket


> Just set TCPSocket, and not TCPAddr. Does it work?

OK - updated config is below*.  Now listening on ANY interface
and TCP:3310.  Still does not appear to work.  I can run
clamdcscan as regular user and get results as needed.  Seems
that procmail is having a problem.


$ cat /tmp/clamd.log
--------------------------------------
WARNING: Can't connect to clamd.


$ echo foo | clamdscan --verbose -
stream: OK

----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.003 sec (0 m 0 s)



$ netstat -topnavel | grep clam
tcp        0      0 0.0.0.0:3310                0.0.0.0:*                   
LISTEN      100        39452      12651/clamd         off (0.00/0/0)

$ telnet localhost 3310
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.


[*]
$ cat /etc/clamd.conf | grep -v \# | grep -v ^$
LogFile /var/log/clamav/clamd.log
LogTime yes
LogSyslog yes
LogVerbose yes
PidFile /var/run/clamav/clamd.pid
TemporaryDirectory /var/tmp
DatabaseDirectory /var/clamav
LocalSocket /tmp/clamd.socket
FixStaleSocket yes
TCPSocket 3310
MaxConnectionQueueLength 30
MaxThreads 50
ReadTimeout 300
User clamav
AllowSupplementaryGroups yes
Debug yes
ScanPE yes
ScanELF yes
DetectBrokenExecutables yes
ScanOLE2 yes
ScanMail yes
ScanArchive yes
ArchiveMaxCompressionRatio 300
ArchiveBlockEncrypted no
ArchiveBlockMax no

-- 

Flambeau Inc. Technology Center - Baraboo, WI
Email    : [EMAIL PROTECTED]
Keyserver: http://pgp.mit.edu KeyID: 0x00E9EC2C
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to