Discover and Learn the Endless Tech Innovations

Mailfront Plugin SpamAssassin Patch

  • Table of Content
  • Introduction
  • Disclaimer
  • Changes
  • Download Patch
  • How to Patch

Introduction

Last Updated: 07 Apr 2010 GMT +8.

This is a patch to enable fail safe feature for mailfront SpamAssassin plugin. This plugin scans messages against a SpamAssassin server. The original message is replaced with the rewritten message sent by the scanner, which will contain the results of the SpamAssassin scan in the headers. This plugin can communicate with a scanner over TCP/IP or local UNIX domain sockets.

Note: This plugin causes mailfront to save messages to temporary files.

When the SpamAssassin server is unavailable, this plugin will defer all mails at SMTP delivery including authorized users until the SpamAssassin server is restored. This patch will give the system administrators the flexibility to enable fail safe for this plugin by setting the environment variable $SPAMD_FAILSAFE. If this environment variable is set and when the SpamAssassin server is unavailable, mails will be passed and warning messages will be logged.

Disclaimer

Use at your own risk! You are free to use this script/patches/guide as long as you aware that CHOON.NET or Giam Teck Choon will not be liable for any losses and damages in connection with the use of this site's provided patches or information whatsoever. You have been warned!

Changes

  • 07 Apr 2010 GMT +8
  • Updated to support mailfront-1.16
  • 05 Apr 2010 GMT +8
  • Initial release for mailfront-1.15

How to Apply the Above Patch?

The above patch should support mailfront version 1.16 or later.

cd /usr/local/src
wget http://untroubled.org/mailfront/mailfront-1.16.tar.gz
wget http://choon.net/opensource/mailfront-1.16-plugin-spamassassin.patch
tar xvfz mailfront-1.16.tar.gz
cd mailfront-1.16
patch -p1 < ../mailfront-1.16-plugin-spamassassin.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-spamassassin.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-spamassassin.patch patch

Configure and compile and install as usual which I am not going to cover here.