On Sat, 10 Feb 2007 01:38:39 +0100
Mark Martinec <[EMAIL PROTECTED]> wrote:

> boricua,
> 
> > i run clamd as daemon and during the sample test i get this error when
> > sending a spam
> >
> > (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to
> > /var/run/clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd:
> > No such file or directory) at (eval 41) line 293.
> 
> Does the socket /var/run/clamav/clamd exist? Looks like it doesn't.
> The clamd and amavisd must agree on the location of clamd socket.
> 
> On the amavisd side the location of this socket is specified in
> amavisd.conf in a clamd AV entry:
> 
>   ['ClamAV-clamd',
>     \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
>     qr/\bOK$/, qr/\bFOUND$/,
>     qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
> 
> Modify it if clamd puts it somewhere else.
> 
> And don't miss the following from INSTALL file:
> 
>   If different UID is preferred for an AV scanner, a solution for
>   ClamAV is to add user clamav to the amavis group, and then add
>   AllowSupplementaryGroups to clamd.conf.
> 
> Mark

in my previous version of 2.2.1 i had 

>  ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
  ['ClamAV-clamscan', 'clamscan',
    "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

i see the new amavisd.conf shows 


# ### http://www.clamav.net/
 ['ClamAV-clamd',
   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav-milter/clamd"],   <<<<< i 
change to that b/c 
   qr/\bOK$/, qr/\bFOUND$/,
   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

bash-3.1# ps aux|grep spamd
root     20145  1.2  4.0  22876 20636 pts/2    S    19:53   0:02 
/usr/bin/perl5.8.8 -T -w /usr/bin/spamd
root     20147  0.0  4.0  22876 20640 pts/2    S    19:53   0:00 spamd child
root     20148  0.0  4.0  22876 20640 pts/2    S    19:53   0:00 spamd child
root     20168  0.0  0.1   1788   604 pts/2    S+   19:56   0:00 grep spamd

i can't find the pid now but i know its running 
how do i know where the socket is

tia

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to