Today I installed Exim (https://help.directadmin.com/item.php?id=51). Everything works but it is not blocking harmful attachements. So I found this: https://help.directadmin.com/item.php?id=370 and tried that. The problem is that i cannot find the part "find "check_message:", and add this code below it:" in exim.conf.
I think the exim.conf is updated since this tutorial but do not know what to do next. I have seen that there is a part in exim.conf dat tries to include another file:
#EDIT#46:
.include_if_exists /etc/exim.clamav.conf
My guess is that I somehow have to add something to this file to get it working. I have tried some things but every time it breaks mail delivery. The contents are (by default):
------------------------------------------------------------
#1.2
deny
message = This message contains a virus or other harmful content ($malware_name)
malware = */defer_ok/tmo=10s
log_message = Message from $sender_host_address denied - virus of harmful content ($malware_name)
warn
message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
------------------------------------------------------------
Anyone can help me to get this working?
I think the exim.conf is updated since this tutorial but do not know what to do next. I have seen that there is a part in exim.conf dat tries to include another file:
#EDIT#46:
.include_if_exists /etc/exim.clamav.conf
My guess is that I somehow have to add something to this file to get it working. I have tried some things but every time it breaks mail delivery. The contents are (by default):
------------------------------------------------------------
#1.2
deny
message = This message contains a virus or other harmful content ($malware_name)
malware = */defer_ok/tmo=10s
log_message = Message from $sender_host_address denied - virus of harmful content ($malware_name)
warn
message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
------------------------------------------------------------
Anyone can help me to get this working?