amavisd-new-2.7+ and KLMS 8

Andreas Schulze via amavis-users amavis-users at amavis.org
Wed Apr 16 21:53:26 CEST 2014


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:
> 
> http://forum.kaspersky.com/index.php?showtopic=293506
> http://lists.amavis.org/pipermail/amavis-users/2014-January/002737.html
> 
> 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
   gid_kasperky_setup_selected:x:2222:UID_OF_AMAVIS,uid_kasperky_setup_selected
   amavis:x:1111:UID_OF_AMAVIS,uid_kasperky_setup_selected
4. chgrp amavis /var/run/klms
5. don't forget a license file for klms

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

Andreas

-- 
Andreas Schulze
Internetdienste | P252

DATEV eG
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
E-Mail info @datev.de | Internet www.datev.de
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


More information about the amavis-users mailing list