<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>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. <br>
      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. <br>
      Or you can perhaps configure klms to run via a localhost port
      instead of a socket, then there will be no permission issues. <br>
    </p>
    <p>JC <br>
    </p>
    <div class="moz-cite-prefix">Am 23.05.2023 um 03:48 schrieb Olivier:<br>
    </div>
    <blockquote type="cite"
      cite="mid:wu7sfbnbyxt.fsf@banyan.cs.ait.ac.th">
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Has anyone integrated Kaspersky Security with amavis?

This is the url I followed.

<a class="moz-txt-link-freetext" href="https://support.kaspersky.com/KLMS/8.2/en-US/62460.htm">https://support.kaspersky.com/KLMS/8.2/en-US/62460.htm</a> 

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
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
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,

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Anyway, Has anyone integrated any other commercial antivirus guard such as
sophos or whatever with amavis?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
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

</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <table id="zs-output-sig"
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;
        width:590px;" cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td>
              <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                cellspacing="0" cellpadding="0" border="0">
                <tbody>
                  <tr>
                    <td>
                      <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                        cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                          <tr>
                            <td>
                              <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                                cellspacing="0" cellpadding="0"
                                border="0">
                                <tbody>
                                  <tr>
                                    <td
                                      style="border-collapse:collapse;font-family:Calibri,
                                      Helvetica,
sans-serif;font-size:15.0px;font-style:normal;line-height:17px;font-weight:bold;color:#303590;">
                                      <span style="font-family:Calibri,
                                        Helvetica,
sans-serif;font-size:15.0px;font-style:normal;line-height:17px;font-weight:bold;color:#303590;display:inline;">Jakob
                                        Curdes</span> </td>
                                  </tr>
                                  <tr>
                                    <td
                                      style="border-collapse:collapse;padding-bottom:7px;height:7px;">
                                      <br>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                  <tr>
                    <td width="144" valign="top"> <img alt=""
src="https://mail.info-systems.de/skins/standard/images/is-logo-login.png"
                        width="144" height="64" border="0"> </td>
                    <td style="border-collapse:collapse;padding-right:
                      10px;width: 10px;" width="10"> <br>
                    </td>
                    <td
                      style="border-collapse:collapse;background-color:#dddddd;width:
                      1px;" width="1"> <br>
                    </td>
                    <td style="border-collapse:collapse;padding-right:
                      10px;width:10px;" width="10"> <br>
                    </td>
                    <td>
                      <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                        cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                          <tr>
                            <td>
                              <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                                cellspacing="0" cellpadding="0"
                                border="0">
                                <tbody>
                                  <tr>
                                    <td
                                      style="border-collapse:collapse;font-family:Calibri,
                                      Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:bold;color:#999999;">
                                      <span style="font-family:Calibri,
                                        Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:19px;font-weight:bold;color:#999999;display:inline;">Anschrift</span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td
                                      style="border-collapse:collapse;padding-bottom:3px;height:3px;">
                                      <br>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                                cellspacing="0" cellpadding="0"
                                border="0">
                                <tbody>
                                  <tr>
                                    <td>
                                      <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                                        cellspacing="0" cellpadding="0"
                                        border="0">
                                        <tbody>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#303590;display:inline;">iS
                                                information systems oHG</span>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;padding-bottom:5px;height:5px;">
                                              <br>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;">Donnerschweer
                                                Str. 89-91</span> </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;">D-26123
                                                Oldenburg</span> </td>
                                          </tr>
                                          <tr>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;">Tel.:
                                                (0)441 - 92 31 99 0</span>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;">Fax:
                                                (0)441 - 92 31 99 99</span>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                    <td style="border-collapse:collapse;padding-right:
                      10px;width: 10px;" width="10"> <br>
                    </td>
                    <td
                      style="border-collapse:collapse;background-color:#dddddd;width:
                      1px;" width="1"> <br>
                    </td>
                    <td style="border-collapse:collapse;padding-right:
                      10px;width:10px;" width="10"> <br>
                    </td>
                    <td>
                      <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                        cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                          <tr>
                            <td>
                              <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                                cellspacing="0" cellpadding="0"
                                border="0">
                                <tbody>
                                  <tr>
                                    <td
                                      style="border-collapse:collapse;font-family:Calibri,
                                      Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:bold;color:#999999;">
                                      <span style="font-family:Calibri,
                                        Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:19px;font-weight:bold;color:#999999;display:inline;"></span>
                                      <br>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td
                                      style="border-collapse:collapse;padding-bottom:3px;height:3px;">
                                      <br>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                                cellspacing="0" cellpadding="0"
                                border="0">
                                <tbody>
                                  <tr>
                                    <td>
                                      <table
style="font-family:Arial,Helvetica,sans-serif;line-height:0px;font-size:1px;padding:0px;border-spacing:0px;margin:0px;border-collapse:collapse;"
                                        cellspacing="0" cellpadding="0"
                                        border="0">
                                        <tbody>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;"></span>
                                              <br>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;"></span>
                                              <br>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;padding-bottom:5px;height:5px;">
                                              <br>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;"> </span>
                                            </td>
                                          </tr>
                                          <tr>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;"> </span>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td
                                              style="border-collapse:collapse;font-family:Calibri,
                                              Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;">
                                              <span
                                                style="font-family:Calibri,
                                                Helvetica,
sans-serif;font-size:13.0px;font-style:normal;line-height:15px;font-weight:normal;color:#999999;display:inline;">Web:
                                                <a
                                                  href="https://www.info-systems.de">www.info-systems.de</a></span>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
          <tr>
            <td
              style="border-collapse:collapse;padding-bottom:20px;height:20px;">
              <br>
            </td>
          </tr>
          <tr>
            <td style="border-collapse:collapse;font-family:Calibri,
              Helvetica,
sans-serif;font-size:10.0px;font-style:normal;line-height:11px;font-weight:normal;color:#999999;">
              <span style="font-family:Calibri, Helvetica,
sans-serif;font-size:10.0px;font-style:normal;line-height:11px;font-weight:normal;color:#999999">Firmierung
                und Handelsregisterangaben finden Sie unter diesem Link:
                <a href="https://www.info-systems.de/legal/"
                  target="_blank" rel="nofollow"
                  style="font-family:Arial, Helvetica,
sans-serif;font-size:10.0px;font-style:normal;line-height:11px;font-weight:normal;color:#777777;">Firmendaten</a>
              </span></td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>