Help with MailScanner and remote clamd
Shawn Iverson
shawniverson at summitgrid.com
Wed Jan 6 11:38:40 UTC 2021
I'm afraid what you are trying to do is not possible. MailScanner does
not send the files to the socket for scanning. It merely calls clamd to
scan the files locally via the socket.
On 1/6/21 2:01 AM, Kevin G. Chege wrote:
> Hi,
>
> I have MailScanner installed and works ok with a locally available
> clamd socket configuration. But when I try to use a remote Clamd
> socket (an IP address of another jail on the system) with this
> configuration in MailScanner.conf:
>
> Virus Scanners = clamd
>
> Clamd Port = 3310
>
> Clamd Socket = 127.0.0.87
>
>
> I get the following error:
>
> MailScanner.conf says "Virus Scanners = clamd"
>
> Found these virus scanners installed: clamd
>
> ===========================================================================
>
> Filename Checks: Windows/DOS Executable (1 eicar.com <http://eicar.com>)
>
> Other Checks: Found 1 problems
>
> Virus and Content Scanning: Starting
>
> Clamd::ERROR:: UNKNOWN CLAMD RETURN ./lstat() failed: No such file or
> directory. ERROR :: /var/spool/MailScanner/incoming/16761
>
> Virus Scanning: Clamd found 1 infections
>
> Virus Scanning: Found 1 viruses
>
> ===========================================================================
>
>
>
> I have checked and indeed "/var/spool/MailScanner/incoming/16761" does
> not exist.
>
>
> On the machine with Clamd running on an IP and port, this is the
> message in ClamAV log file:
>
> WARNING: lstat() failed on: /var/spool/MailScanner/incoming/16761
>
>
>
> The permissions look ok to me since with a local Clamd, it is working
> well. Could someone help with the appropriate config for MailScanner
> and a remote Clam anitvirus?
>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20210106/1ea053d6/attachment.html>
More information about the MailScanner
mailing list