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-boun...@lists.clamav.net> On Behalf Of Damian 
via clamav-users
Sent: Monday, April 24, 2023 2:10 AM
To: clamav-users@lists.clamav.net
Cc: Damian <clamav-us...@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@amavisd service in my local test.

[1] /etc/amavisd/amavisd.conf

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat

Reply via email to