This is an old revision of the document!
Plugin allows to use ClamAV with i-MSCP.
This plugin will not check for an existing milter configuration in the Postfix main.cf file. If you need to add an extra milter, please ask in our forum!
1. Install needed Debian/Ubuntu packages if not already done
1.1 Install the clamav packages
# aptitude update # aptitude install clamav clamav-base clamav-daemon clamav-freshclam clamav-milter
1.2 Stop the clamav-freshclam daemon if it is running
# service clamav-freshclam stop
1.3 Update the virus database
# freshclam
1.4 Start the clamav-freshclam daemon
# service clamav-freshclam start
1.5 Restart the clamav-daemon
# service clamav-daemon restart
2. Get the plugin from github
# cd /usr/local/src # git clone git://github.com/i-MSCP/plugins.git
3. Create new Plugin archive
# cd plugins # tar cvzf ClamAV.tar.gz ClamAV
4. Plugin upload and installation
1. Get the plugin from github
# cd /usr/local/src # git clone git://github.com/i-MSCP/plugins.git
2. Create new Plugin archive
# cd plugins # tar cvzf ClamAV.tar.gz ClamAV
3. Backup your current plugin config
# plugins/ClamAV/config.php
4. Plugin upload and update
For the different configuration options please check the plugin config file.
# plugins/ClamAV/config.php
After you made your config changes, don't forget to update the plugin list.
Eicar-Test-Signature
Send yourself a mail from another account (e.g. gmail or any other freemailer) with the following content in the message:
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
Note that this should be reproduced in one line, without whitespace or line breaks.