[clamav-users] Amavis + ClamAV can't connect to socket

Wayne Spivak WSpivak at SBANetWeb.com
Mon Apr 24 10:14:53 UTC 2023


Thank you Damian,

 

So in Amavisd.conf I have:

 

 

@av_scanners_backup = (

 

  ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV

  ['ClamAV-clamscan', 'clamscan',

    "--stdout --no-summary -r --tempdir=$TEMPBASE {}",

    [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],

 

# ### http://www.clamav.net/ - using remote clamd scanner as a backup

# ['ClamAV-clamdscan', 'clamdscan',

#   "--stdout --no-summary --config-file=/etc/clamd-client.conf {}",

#   [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],

 

 

Do I remove the quote marks (“) out of the first group?

 

Do I turn anything else off?

 

 

From: clamav-users <clamav-users-bounces at lists.clamav.net> On Behalf Of Damian via clamav-users
Sent: Monday, April 24, 2023 2:10 AM
To: clamav-users at lists.clamav.net
Cc: Damian <clamav-users at arcsin.de>
Subject: Re: [clamav-users] Amavis + ClamAV can't connect to socket

 

Out of the box, I got this error and haven't been able to change the
behavior:
 
Apr 22 10:35:42 mcq amavis[22581]: (22581-01) (!)connect to
/run/clamd.scan/clamd.sock failed, attempt #1: Can't connect to a UNIX
socket /run/clamd.scan/clamd.sock: Permission denied
Apr 22 10:35:42 mcq amavis[22581]: (22581-01) (!)ClamAV-clamd: All attempts
(1) failed connecting to /run/clamd.scan/clamd.sock, retrying (2)

A Fedora 38 Amavis+ClamAV setup does not use "ClamAV-clamd" but "ClamAV-clamdscan" inside [1], which works out-of-the-box with the clamd at amavisd service in my local test.

[1] /etc/amavisd/amavisd.conf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20230424/7551f9c1/attachment.htm>


More information about the clamav-users mailing list