This is a patch to enable fail safe feature for mailfrontclamav plugin. This plugin scans messages against a ClamAV server. If the message data is detected as having a virus, the message is rejected, and the error response contains the virus name as detected by ClamAV. This scanner only operates over TCP/IP sockets (either remotely or locally).
When the ClamAV server is unavailable, this plugin will defer all mails at SMTP delivery including authorized users until the ClamAV server is restored. This patch will give the system administrators the flexibility to enable fail safe for this plugin by setting the environment variable $CLAMAV_FAILSAFE. If this environment variable is set and when the ClamAV server is unavailable, mails will be passed and warning messages will be logged.
YOU ARE FREE TO USE THIS SCRIPT/PATCHES/GUIDE BUT I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED! YOU HAVE BEEN WARNED!!!
The above patch should support mailfront version 1.16 or later.
tar xvfz mailfront-1.16.tar.gz
patch -p1 < ../mailfront-1.16-plugin-clamav.patch
Line 1: Change current working directory to /usr/local/src
Line 2: Download mailfront version 1.16 source
Line 3: Download mailfront-1.16-plugin-clamav.patch
Line 4: Unpack mailfront version 1.16 source
Line 5: Change current working directory to the newly unpacked mailfront source
Line 6: Apply mailfront-1.16-plugin-clamav.patch patch
Configure and compile and install as usual which I am not going to cover here.
Portal Log In/Sign In