In /etc/exim4/exim4.conf.template I uncommented # CLAMD = yes
But in the exim4 mainlog i get:
2025-12-10 12:26:14 1vTIKk-XXX-1QwI malware acl condition: clamd /run/clamav/clamd.ctl : unable to connect to UNIX socket (/run/clamav/clamd.ctl): No such file or directory
2025-12-10 12:27:09 1vTILc-XXX-3ZIP malware acl condition: clamd /run/clamav/clamd.ctl : unable to connect to UNIX socket (/run/clamav/clamd.ctl): No such file or directory
2025-12-10 12:27:59 1vTIMR-XXX-0TCf malware acl condition: clamd /run/clamav/clamd.ctl : unable to connect to UNIX socket (/run/clamav/clamd.ctl): No such file or directory
UNIT FILE STATE PRESET
clamav-clamonacc.service disabled enabled
clamav-daemon.service disabled enabled
clamav-freshclam-once.service disabled enabled
clamav-freshclam.service enabled enabled
And did some testing sending emails. No more exim mainlog errors like these: malware acl condition: clamd /run/clamav/clamd.ctl : unable to connect to UNIX socket (/run/clamav/clamd.ctl): No such file or directory Thanks!
It doesn’t matter what text you assign to the CLAMD variable in Exim, it only checks whether the variable is defined or not. So the only way is to comment out that line… or remove it
You don’t need to comment out those lines but it won’t hurt
I would disable freshclam too, if clamav is disabled, you shouldn’t have the freshclam service enabled.
Good to know, i read it in the same post but at least now it’s very clear that ifdef CLAMD is not active
Thanks that you mention that clamav-freshclam.service shouldn’t be enabled. I thought i leave it for now just in case i want to reenable ClamAV in a short time. I’ll disable it too.