Page 1 of 1

uninstall clamd fix for broken mail server config exim4.conf.templat

Posted: Sat Oct 08, 2016 2:55 pm
by anthonyrossbach
This is at least on Ubuntu, after following guide at viewtopic.php?f=12&t=11279#p43123 to remove clamd I ran into a problem, setting "CLAMD = no" in exim4.conf.template did not work, as it still has propertys later on. You will need to comment out the following chunks.

Code: Select all

.ifdef CLAMD
#av_scanner = clamd: /var/run/clamav/clamd.ctl
.endif

#.ifdef CLAMD
#  warn    set acl_m0    = no
#
#  warn    condition     = ${if exists {/etc/exim4/domains/$domain/antivirus}{yes}{no}}
#          set acl_m0    = yes
#.endif

#.ifdef CLAMD
#  deny   message        = Message contains a virus ($malware_name) and has been rejected
#         malware        = *
#         condition      = ${if eq{$acl_m0}{yes}{yes}{no}}
#.endif
Otherwise the server will still try and connect to AV. I would have added to the topic listed but it was locked.

I hope this helps as I had a 4 hour stumper as every guide and article is to fix clamd not remove it.