Help with MailScanner and remote clamd

Kevin G. Chege kevin.chege at gmail.com
Thu Jan 7 18:29:12 UTC 2021


ok thanks Shawn. I will try something else like a dedicated MailScanner +
ClamAV instance to route mail through

Kevin

On Wed, Jan 6, 2021 at 2:38 PM Shawn Iverson via MailScanner <
mailscanner at lists.mailscanner.info> wrote:

> 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)
>
> 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?
>
>
>
>
>
>
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20210107/6f43c4ee/attachment.html>


More information about the MailScanner mailing list