Bug 246723 - security/clamav: exim can not read from clmilter socket
Summary: security/clamav: exim can not read from clmilter socket
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2020-05-25 17:40 UTC by Igor Konov
Modified: 2020-07-09 20:41 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (yasu)
fernape: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Konov 2020-05-25 17:40:29 UTC
Milter starts with messages:

Mon May 25 20:02:17 2020 -> +++ Started at Mon May 25 20:02:17 2020
Mon May 25 20:02:17 2020 -> Local socket unix:/var/run/clamav/clamd.sock added to the pool (slot 1)
Mon May 25 20:02:18 2020 -> Probe for slot 1 returned: success


$ ls -l /var/run/clamav
total 2
-rw-rw-r--  1 clamav  clamav  6 May 25 20:02 clamav-milter.pid
-rw-rw-r--  1 clamav  clamav  6 May 25 20:00 clamd.pid
srw-rw-rw-  1 clamav  clamav  0 May 25 20:00 clamd.sock
srwxrwxrwx  1 clamav  clamav  0 May 25 20:02 clmilter.sock


In Exim configuration:

acl_smtp_data =         acl_check_data

av_scanner = clamd:/var/run/clamav/clmilter.sock

acl_check_data:

  deny    malware    = *
          message    = This message contains a virus ($malware_name).


In Exim logging:
2020-05-25 20:10:18 1jdGcE-0004o2-Dq malware acl condition: clamd /var/run/clamav/clmilter.sock : unable to read from socket (EOF)
Comment 1 Yasuhiro KIMURA 2020-07-09 20:41:42 UTC
(In reply to Igor Konov from comment #0)

I think this is configuration issue of exim. So you should first consult exim support such as mailing list.