Hi, in version 1.2.0 is a problem with Plugin allows to use ClamAV with i-MSCP:
Imscp Version 1.2.0 on debian 7 (fresh install from today), all packets are installed as written in plugin-doku. Install in i-mscp failed, Message:
QuoteAn unexpected error occurred:
iMSCP::File::get: Unable to open /etc/default/clamav-milter: file or folder not found
Plugin::ClamAV::_modifyClamavMilterDefaultConfig: Unable to read /etc/default/clamav-milter
I've had the same problem in another installation with i-mscp ~1.1.19, the file clamav-milter doesn't exist in /etc/default/ folder.
To fix this:
1.) create a file clamav-milter in /etc/default/ with following code:
- #
- # clamav-milter init options
- #
- ## SOCKET_RWGROUP
- # by default, the socket created by the milter has permissions
- # clamav:clamav:755. SOCKET_RWGROUP changes the group and changes the
- # permissions to 775 to give read-write access to that group.
- #
- # If you are using postfix to speak to the milter, you have to give permission
- # to the postfix group to write
- #
- #SOCKET_RWGROUP=postfix
- # Begin Plugin::ClamAV
- SOCKET_RWGROUP=postfix
- # Ending Plugin::ClamAV
2.) if you had an error message during installation of clamav plugin, you must manually delete the entry for clamav in imscp-Database-Table plugin using phpmyadmin
3.) install clamav-plugin again in imscp-admin panel.
In one of the latest debian updates was something changed in packet clamav-milter, possible that the debian-packet is the error...?