Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread John Nemeth
On Dec 2, 1:22pm, "Bill Cole" wrote: } On 2 Dec 2016, at 12:01, Dianne Skoll wrote: } > On Fri, 2 Dec 2016 16:57:32 +0100 } > Benoit Panizzon wrote: } > } >> Does anyone know, if it's possible to use } >> ClamdSock = "host:port"; } >> in MIMEDefang? } > } > No; the built-in code uses IO::Socket::

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Kevin A. McGrail
That's the great thing about mimedefang. Very little you can't add. I've got some clamp code that streams to another host. Don't remember how I did it. Can you implement code if I dig it up? Regards, KAM On December 2, 2016 12:01:59 PM EST, Dianne Skoll wrote: >On Fri, 2 Dec 2016 16:57:32

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Michiel Brandenburg
Hi all > Better just to modify the Perl wrappers to use IO::Socket::INET and > use the stream-scanning clamd protocol. We extended the ClamAV::Client (CPAN) also handle zINSTREAM protocol, it has worked fine for some years now. example "code" send("zINSTREAM\0") while (read block (STREAM_BLOCK_S

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Bill Cole
On 2 Dec 2016, at 12:28, Marcus Schopen wrote: Hi Benoît, Am Freitag, den 02.12.2016, 16:57 +0100 schrieb Benoit Panizzon: Hi all Does anyone know, if it's possible to use ClamdSock = "host:port"; in MIMEDefang? I found very old posts stating, that clamd can only scan local files, thus ha

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Dianne Skoll
On Fri, 02 Dec 2016 13:22:09 -0500 "Bill Cole" wrote: > socat UNIX-LISTEN:/var/run/fakeclamd.sock,mode=777,fork > TCP:: That won't work because the MIMEDefang code uses SCAN, which gets passed a local filename. Better just to modify the Perl wrappers to use IO::Socket::INET and use the stream-

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Bill Cole
On 2 Dec 2016, at 12:01, Dianne Skoll wrote: On Fri, 2 Dec 2016 16:57:32 +0100 Benoit Panizzon wrote: Does anyone know, if it's possible to use ClamdSock = "host:port"; in MIMEDefang? No; the built-in code uses IO::Socket::UNIX and can only scan local files. You need to write your own wrap

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Marcus Schopen
Hi Benoît, Am Freitag, den 02.12.2016, 16:57 +0100 schrieb Benoit Panizzon: > Hi all > > Does anyone know, if it's possible to use > > ClamdSock = "host:port"; > > in MIMEDefang? > > I found very old posts stating, that clamd can only scan local files, > thus has to be called on the machine th

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Dianne Skoll
On Fri, 2 Dec 2016 16:57:32 +0100 Benoit Panizzon wrote: > Does anyone know, if it's possible to use > ClamdSock = "host:port"; > in MIMEDefang? No; the built-in code uses IO::Socket::UNIX and can only scan local files. You need to write your own wrapper code if you want to stream files to anot

[Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Benoit Panizzon
Hi all Does anyone know, if it's possible to use ClamdSock = "host:port"; in MIMEDefang? I found very old posts stating, that clamd can only scan local files, thus has to be called on the machine the file resides. Is still this the case, or can the content to be scanned streamed via inet socke