<div dir="ltr">Hi, <div><br></div><div>Sorry for the delay in replying. </div><div><br></div><div>I now have a little bit of progress. </div><div><br></div><div>This is the default permission. But it did not work.<br><br>ls -ld /var/run/klms/<br>drwxrwx--- 2 kluser klusers 520 May 24 15:50 /var/run/klms/<br><br>But, the below 2 commands did the job.<br><br>chmod o+rx /var/run/klms/<br>chmod 666 /var/run/klms/rds_av <br><br><br>I attached a test EICAR file. ClamAV detected. But Kaspersky did NOT.<br><br>See the log of how clamd detected.<br><br>clamd[1300]:/var/spool/amavisd/tmp/amavis-20230604T171813-16458-RYQrx2PC/parts/p003: Win.Test.EICAR_HDB-1 FOUND<br><br><br>Primary AV is Kaspersky Security. Please see below.<br><br>amavis[16978]:Using primary internal av scanner code for Kaspersky Security 8.0 for Linux Mail Server<br>amavis[16978]:Using primary internal av scanner code for ClamAV-clamd<br>amavis[16978]:Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan<br></div><div><br></div><div>Hope to hear from you.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 23, 2023 at 12:58 PM Matus UHLAR - fantomas <<a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 22.05.23 08:33, Indunil Jayasooriya wrote:<br>
>Has anyone integrated Kaspersky Security with amavis?<br>
><br>
>This is the url I followed.<br>
><br>
><a href="https://support.kaspersky.com/KLMS/8.2/en-US/62460.htm" rel="noreferrer" target="_blank">https://support.kaspersky.com/KLMS/8.2/en-US/62460.htm</a><br>
><br>
>I did it. But I get below erros.<br>
><br>
>2023 May 22 08:04:56 server amavis[1769]:(01769-04) (!)connect to<br>
>/var/run/klms/rds_av failed, attempt #1: Can't connect to a UNIX socket<br>
>/var/run/klms/rds_av: Permission denied<br>
>2023 May 22 08:04:57 server amavis[1769]:(01769-04) (!)Kaspersky Security<br>
>8.0 for Linux Mail Server: All attempts (1) failed connecting to<br>
>/var/run/klms/rds_av, retrying (2)<br>
><br>
>2023 May 22 08:11:57 server amavis[1768]:(01768-05) (!)Kaspersky Security<br>
>8.0 for Linux Mail Server av-scanner FAILED: run_av error: Too many retries<br>
>to talk to /var/run/klms/rds_av (All attempts (1) failed connecting to<br>
>/var/run/klms/rds_av) at (eval 132) line 659.\n<br>
><br>
>Here is the permission.<br>
><br>
>ls -al /var/run/klms/rds_av<br>
>srw-rw---- 1 kluser klusers 0 May 17 01:35 /var/run/klms/rds_av<br>
<br>
<br>
you must have read/execure permissions for /var/run/klms/ directory too.<br>
Run:<br>
<br>
ls -la /var/run/klms/<br>
<br>
>some additional info.<br>
><br>
># id amavis<br>
>uid=996(amavis) gid=993(amavis) groups=993(amavis),991(klusers)<br>
<br>
<br>
this should help if the /var/run/klms/ has 'rx' permissions for group <br>
klusers.<br>
<br>
<br>
-- <br>
Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk" target="_blank">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" rel="noreferrer" target="_blank">http://www.fantomas.sk/</a><br>
Warning: I wish NOT to receive e-mail advertising to this address.<br>
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br>
"The box said 'Requires Windows 95 or better', so I bought a Macintosh".<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">cat /etc/motd<br><br>Thank you<br>Indunil Jayasooriya <br><a href="http://www.theravadanet.net/" target="_blank">http://www.theravadanet.net/</a><br><br></div></div></div></div>