Add support for IKARUS scan.server in @av_scanners as compatible Clamd AV engine (via Unix/TCP socket)
I obtained a one-month trial license for IKARUS scan.server (scanserver-6.1.6l64) and am testing the integration in Amavis. I still haven't managed to make it work with the configuration proposed in amavis.conf considered obsolete by IKARUS according to the document from here, section Legacy XML endpoints (kept for backwards compatibility). I will come back with another issue for this.
IKARUS scan.server offers compatibility with clamd via unix socket and here I managed to make it work.
Change the line:
"clam_socket": "/tmp/ikarus.socket", // if you want clamd via unix socket, here it is
in /opt/scanserver/conf/scanserver.json and everything is functional even if the permissions for ikarus.socket need to be modified after those for clamd.socket
This code will be added in amavisd.conf after the existing IKARUS scan.server section:
['IKARUS scan.server-clamd compatible AV engine',
\&ask_daemon, ["CONTSCAN {}/*\n", "/tmp/ikarus.socket"],
qr/\bOK$/m, qr/\bFOUND$/m,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
Result:
A virus was found: EICAR-Test-File
Scanner detecting a virus: IKARUS scan.server-clamd compatible AV engine
Content type: Virus
...
Virus scanner output:
p004: EICAR-Test-File FOUND
p003: EICAR-Test-File FOUND