View Single Post
  #13  
Old 19th April 2010, 17:45
jariasca jariasca is offline
Member
 
Join Date: Jan 2010
Posts: 43
Thanks: 2
Thanked 8 Times in 4 Posts
Default

I think I finally got it reading in google I got the answer to this error

in amavisd.conf I change the deamon to var/run/clamav/clamd.ctl

# ### http://www.clamav.net/
['ClamAV-clamd',
#\&ask_daemon, ["CONTSCAN {}\n", "/var/spool/amavisd/clamd.sock"],
\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],


and in the clamd.conf I change the deamon to var/run/clamav/clamd.ctl

# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
#LocalSocket /tmp/clamd.socket
LocalSocket /var/run/clamav/clamd.ctl

now look at my log

Apr 19 09:34:54 mail amavis[3073]: (03073-01) lookup_re("MAIL"), no matches
Apr 19 09:34:54 mail amavis[3073]: (03073-01) lookup [keep_decoded_original] => undef, "MAIL" does not match
Apr 19 09:34:54 mail amavis[3073]: (03073-01) Calling virus scanners, 2 files to scan in /var/spool/amavisd/tmp/amavis-20100419T093454-03073/parts
Apr 19 09:34:54 mail amavis[3073]: (03073-01) run_av (ClamAV-clamd): query template(1,1): CONTSCAN {}\n
Apr 19 09:34:54 mail amavis[3073]: (03073-01) prolong_timer run_av: timer set to 480 s
Apr 19 09:34:54 mail amavis[3073]: (03073-01) prolong_timer run_av: timer set to 384 s
Apr 19 09:34:54 mail amavis[3073]: (03073-01) ask_av Using (ClamAV-clamd): CONTSCAN /var/spool/amavisd/tmp/amavis-20100419T093454-03073/parts\n
Apr 19 09:34:54 mail amavis[3073]: (03073-01) ask_daemon_internal: timer set to 10 s (was 384 s)
Apr 19 09:34:54 mail amavis[3073]: (03073-01) ClamAV-clamd: Connecting to socket /var/run/clamav/clamd.ctl
Apr 19 09:34:54 mail amavis[3073]: (03073-01) creating socket by IO::Socket::UNIX to /var/run/clamav/clamd.ctl
Apr 19 09:34:54 mail amavis[3073]: (03073-01) ClamAV-clamd: Sending CONTSCAN /var/spool/amavisd/tmp/amavis-20100419T093454-03073/parts\n to UNIX socket /var/run/clamav/clamd.ctl
Apr 19 09:34:54 mail amavis[3073]: (03073-01) prolong_timer ask_daemon_internal: timer set to 307 s
Apr 19 09:34:55 mail amavis[3073]: (03073-01) prolong_timer ask_daemon_internal: timer set to 383 s
Apr 19 09:34:55 mail amavis[3073]: (03073-01) prolong_timer ask_av: timer set to 479 s
Apr 19 09:34:55 mail amavis[3073]: (03073-01) ask_av (ClamAV-clamd) result: /var/spool/amavisd/tmp/amavis-20100419T093454-03073/parts: OK\n
Apr 19 09:34:55 mail amavis[3073]: (03073-01) run_av (ClamAV-clamd): CLEAN
Apr 19 09:34:55 mail amavis[3073]: (03073-01) run_av (ClamAV-clamd) result: clean
Apr 19 09:34:55 mail amavis[3073]: (03073-01) wbl: checking sender <moancB@reuters.com>
Apr 19 09:34:55

Thanks for the help I will monitor my log to see what happends.
Reply With Quote