Table of Content

Introduction

Last Updated: 07 Apr 2010 GMT +8.

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.

Disclaimer

YOU ARE FREE TO USE THIS SCRIPT/PATCHES/GUIDE BUT I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED! YOU HAVE BEEN WARNED!!!