We used to have Kaspersky working, but ceased to use it in February
2022. We also had a working avast! solution, but that was on centos 6,
cannot tell how it is on current OS.
I think your error is related to the user the klms daemon is running
under. Try to make that fit the amavis user, or the other way round.
Or you can perhaps configure klms to run via a localhost port instead of
a socket, then there will be no permission issues.
JC
Am 23.05.2023 um 03:48 schrieb Olivier:
Has anyone integrated Kaspersky Security with amavis?
This is the url I followed.
https://support.kaspersky.com/KLMS/8.2/en-US/62460.htm
I did it. But I get below erros.
2023 May 22 08:04:56 server amavis[1769]:(01769-04) (!)connect to
/var/run/klms/rds_av failed, attempt #1: Can't connect to a UNIX socket
/var/run/klms/rds_av: Permission denied
2023 May 22 08:04:57 server amavis[1769]:(01769-04) (!)Kaspersky Security
8.0 for Linux Mail Server: All attempts (1) failed connecting to
/var/run/klms/rds_av, retrying (2)
2023 May 22 08:11:57 server amavis[1768]:(01768-05) (!)Kaspersky Security
8.0 for Linux Mail Server av-scanner FAILED: run_av error: Too many retries to
talk to /var/run/klms/rds_av (All attempts (1) failed connecting to
/var/run/klms/rds_av) at (eval 132) line 659.\n
Here is the permission.
ls -al /var/run/klms/rds_av
srw-rw---- 1 kluser klusers 0 May 17 01:35 /var/run/klms/rds_av
I used to run Kaspersky when it was available under FreeBSD. Because
their daemons runs exclusively under the user kluser, I resolved to have
my full amavis+clamav run under that same user.
You can try to manually send a file to Kaspersky daemon, from the user
amavis and from the user kluser and confirm which one works.
It worked well until it did not, I never managed to run it with the
Linux compatibility on FreeBSD so I dropped Kaspersky (plus their
customer service in Thailand was a headache).
But I still have amavis and clamav running under user kluser...
Hope that helps,
Anyway, Has anyone integrated any other commercial antivirus guard such as
sophos or whatever with amavis?
No, because the FreeBSD thing :) If I am going to pay for a piece of
software, it can, at least, run on what OS I want and not the contrary.
Olivier
--
Jakob Curdes
Anschrift
iS information systems oHG
Donnerschweer Str. 89-91
D-26123 Oldenburg
Tel.: (0)441 - 92 31 99 0
Fax: (0)441 - 92 31 99 99
Web: www.info-systems.de <https://www.info-systems.de>
Firmierung und Handelsregisterangaben finden Sie unter diesem Link:
Firmendaten <https://www.info-systems.de/legal/>