I'm using ClamAV 0.67-1, currently using Unix sockets.

I'm not too familiar with UNIX sockets, but I'm comfortable with TCP sockets
and communication.  Is clamd any more/less reliable when running over TCP?

I started clamd briefly using TCP and was able to connect and PING it, but I
can't get it to interface appropriately with amavisd-new.  The following is
an excerpt from my amavisd.conf:

### http://clamav.elektrapro.com/
### Old socket name '/var/amavis/clamd'
['Clam Antivirus-clamd',
  \&ask_daemon, ["CONTSCAN {}\n", '/var/run/clamd/clamd.sock'],
#  \&ask_daemon, ["CONTSCAN {}\n", '127.0.0.1:3310'],
  qr/\bOK$/, qr/\bFOUND$/,
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

The commented CONTSCAN line didn't work, but a similar one is found under
OAV and other TCP based scanners.  Is this a correct syntax here? I can't
find an example on either Amavisd-new's site or ClamAV's for using
amavisd.conf with TCP connections.

Maillog entry when using UNIX sockets:
Mar  3 11:01:09 gabriel amavis[24627]: (24627-07) Clam Antivirus-clamd:
Sending
CONTSCAN /var/amavisd/tmp/amavis-20040303T103239-24627/parts\\n to UNIX
socket /
var/run/clamd/clamd.sock

Maillog entry when using TCP sockets:
Mar  3 10:27:48 gabriel amavis[8201]: (08201-01) Clam Antivirus-clamd:
Connectin
g to socket /var/amavisd 127.0.0.1:3310
Mar  3 10:27:48 gabriel amavis[8201]: (08201-01) Clam Antivirus-clamd: Can't
con
nect to INET socket 127.0.0.1:3310: Connection refused, retrying (1)

Thanks,
Seth



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to