I think you are referring to Mail Server 5.6 version?
http://www.kaspersky.com/support/linux_ ... =208279819"Because there was a major change in the services logic and implementation, it now uses a new protocol. If you have applications that talk directly to the scanning service, please write to support and ask for documentation of the new protocol. The main service binary now is named kavmd to make clean the generation difference."
It seems hard to implement. Some code can be found at
http://mta.org.ua/exim-4.69-conf/dlfunc/kav4lms/, but it looks like to me it only scans mbox type files.
I am not Kaspersky customer, but maybe you or someone can ask for the protocol documentation. It is not easily found from logs anymore. Most likely they want money for it.