How to integrate a new (ICAP) AV scanner into amavis?

[email protected]
Newsgroups gmane.mail.virus.amavis.user
Message-ID <trinity-fee5b8f6-9e07-417a-89fa-b2cb1df875c6-1592565323231@3c-app-gmx-bs03>
Hi,

could someone please explaint to me or point me to the documentation of the syntax in the amavis 15-av_scanners?

What I´m trying is to make use of the c-icap-client. So I would like to pass the email via the ICAP Client to an external ICAP Server for scanning.

My ICAP Example

# ['MY AV ICAP Server',

# '/usr/bin/c-icap-client','-s response -i 192.168.17.215 -f {}',

# [0], [2],

# qr/^Infected: (.+)/m,

# ],

It´s not working this way. Although when I execute the c-icap-client manually it works fine:

c-icap-client -s response -i 192.168.1.1 -f sample.pdf

So what I do not understand is:

Line 1: that´s just a name , OK.

Line 2: includes the path to the binary and parameters I want to pass, but what is {} ??? Is this where the file will be passed to the external application?

Line 3: What is [0], [2] doing? Should I change it? to what?

Line 4: And what should I put into the line with "infected" Is this the parsing for the output of the icap result?

I would also like to write my own script or binary, that will get emails from amavis to be scanned.

But I do not know, how the syntax in 15-av_scanners should be, so that my script or binary will be executed in the right way.

Best regards,

Benjamin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.