amavis-user April 2014 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: amavisd-new-2.7+ and KLMS 8

amavisd-new-2.7+ and KLMS 8

From: Andreas Schulze via amavis-users <amavis-users_at_nospam>
Date: Wed Apr 16 2014 - 19:53:26 GMT
To: Alexander Dalloz <>

Am 15.04.2014 14:39 schrieb Alexander Dalloz via amavis-users:
> I have some questions about the interoperability between amavisd-new and
> helper tools like the Kaspersky anti-virus solution. I am facing problems
> which I have already summarized in a post on the Kaspersky forum:
> Unfortunately it hadn't much response and in fact no solution.
but now:

accessing KLMS from Amavis is very easy if you know where to change uids

1. stop any kaspersy process
2. there is a file /var/opt/kaspersky/apps/1463
   change the Group to the same as amavis run:
   # [credentials]
   # user=whatever_kasperky_setup_selected
   # group= amavis
3. in /etc/group
4. chgrp amavis /var/run/klms
5. don't forget a license file for klms

in amavis.conf
push (@av_scanners,
    \&ask_daemon, ["nCONTSCAN {}\n", "/var/run/klms/rds_av"],
    qr/\bOK$/m, qr/\bFOUND$/m,
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ]


-- Andreas Schulze Internetdienste | P252 DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info | Internet Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Dr. Robert Mayr Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen