Bug 246723

Summary: security/clamav: exim can not read from clmilter socket
Product: Ports & Packages Reporter: Igor Konov <montblanc>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Feedback Timeout    
Severity: Affects Only Me CC: fernape, igorz, lwhsu, yasu
Priority: --- Keywords: needs-patch
Version: LatestFlags: bugzilla: maintainer-feedback? (yasu)
fernape: merge-quarterly?
Hardware: Any   
OS: Any   

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 freebsd_committer freebsd_triage 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.
Comment 2 Igor Zabelin 2021-10-05 17:40:54 UTC
(In reply to Igor Konov from comment #0)

Exim does not support the milter protocol.
Use av_scanner = clamd:/var/run/clamav/clamd.sock
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2021-12-14 01:51:19 UTC
(In reply to Igor Konov from comment #0)

Have you tried the advice in comment #2?