Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Allow MailScanner to use Clamavconnector

chirpy shared this idea 8 years ago
Completed

I would like to request a small modification to /usr/local/cpanel/Cpanel/Exim.pm to allow MailScanner to use the cPanel provided ClamAV Plugin, Clamavconnector. At present this is not possible as on exim.conf rebuild if Clamavconnector is installed then "av_scanner = clamd:/var/clamd" is always added to /etc/exim.conf which we do not want with MailScanner which handles virus scanning itself and also prevents to populating of /etc/exim_outgoing.conf via /usr/local/cpanel/scripts/mailscannerupdate.


The change I propose would be the use of a disable file such as /etc/exiscandisable and a change to /usr/local/cpanel/Cpanel/Exim.pm (as of v11.57.9999.62) as follows:


  1. # diff Exim.pm.original Exim.pm
  2. 63c63
  3. < if ( -x $clamd_path ) {
  4. ---
  5. > if ( -x $clamd_path && !-e "/etc/exiscandisable") {

This then stops /usr/local/cpanel/scripts/buildeximconf from automatically adding the av_scanner setting but otherwise still allows cPanel full use of Clamavconnector.

Replies have been locked on this page!