Tested on DirectAdmin v1.26.3.
0) Of course, login using SSH as root.
1) Install ClamAV suite:
apt-get install clamav-daemon clamav-freshclam
2) Modify clamav user group permissions:
usermod -G clamav,amavis,mail clamav
3) Restart deamons:
/etc/init.d/clamav-freshclam restart
/etc/init.d/clamav-daemon restart
4) Edit /etc/exim.conf using Your favorite editor (if you don't know how, see bottom of this post):
4.1) below 'system_filter = /etc/system_filter.exim' add folowing line:
av_scanner = clamd:/var/run/clamav/clamd.ctl
4.2) find:
# ACL that is used after the DATA command
check_message:
accept
and replace with:
# ACL that is used after the DATA command
check_message:
deny message = Virus found: $malware_name
malware = *
accept
5) Restart exim:
/etc/init.d/exim restart
6) Test your setup using Eicar Antivirus Test file:
http://eicar.com/anti_virus_test_file.htm
(please, note: you propably will need to disable antivirus software on your desktop, so be carefull, i cannot be responsible for any damages that your computer occur in this moment, but eicar.com is not in fact a real virus, it's just dummy data that most of antivirus software recognize as a test file)
You should get error message like '550 Virus found: Eicar-Test-Signature'.
That's all.
Good luck!
Regards.
PS. If you don't have any idea how to edit exim.conf file, you can use Midnight Commander file manager, which is simmilar to good old Norton Commander. Type 'mc' to run it. If your system lacks of mc, try 'apt-get install mc' to install mc, and then, once again run mc. Then, go to /etc directory, find exim.conf file, and like in old good NC, press F4 (or 'Escape' and after that '4' if F4 doesn't work) to edit file, after that, F10 to quit.
0) Of course, login using SSH as root.
1) Install ClamAV suite:
apt-get install clamav-daemon clamav-freshclam
2) Modify clamav user group permissions:
usermod -G clamav,amavis,mail clamav
3) Restart deamons:
/etc/init.d/clamav-freshclam restart
/etc/init.d/clamav-daemon restart
4) Edit /etc/exim.conf using Your favorite editor (if you don't know how, see bottom of this post):
4.1) below 'system_filter = /etc/system_filter.exim' add folowing line:
av_scanner = clamd:/var/run/clamav/clamd.ctl
4.2) find:
# ACL that is used after the DATA command
check_message:
accept
and replace with:
# ACL that is used after the DATA command
check_message:
deny message = Virus found: $malware_name
malware = *
accept
5) Restart exim:
/etc/init.d/exim restart
6) Test your setup using Eicar Antivirus Test file:
http://eicar.com/anti_virus_test_file.htm
(please, note: you propably will need to disable antivirus software on your desktop, so be carefull, i cannot be responsible for any damages that your computer occur in this moment, but eicar.com is not in fact a real virus, it's just dummy data that most of antivirus software recognize as a test file)
You should get error message like '550 Virus found: Eicar-Test-Signature'.
That's all.
Good luck!
Regards.
PS. If you don't have any idea how to edit exim.conf file, you can use Midnight Commander file manager, which is simmilar to good old Norton Commander. Type 'mc' to run it. If your system lacks of mc, try 'apt-get install mc' to install mc, and then, once again run mc. Then, go to /etc directory, find exim.conf file, and like in old good NC, press F4 (or 'Escape' and after that '4' if F4 doesn't work) to edit file, after that, F10 to quit.