Difference between revisions of "Qmail-scanner"

From Atomicorp Wiki
Jump to: navigation, search
(Overview)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
Changes made to qmail-scanner-queue.pl go into effect immediately, no changes are required.
+
Changes made to qmail-scanner-queue.pl go into effect immediately, no restarts are required.
 
+
  
 
== Adding disclaimers to mail ==
 
== Adding disclaimers to mail ==

Revision as of 19:20, 28 January 2009

Overview

Changes made to qmail-scanner-queue.pl go into effect immediately, no restarts are required.

Adding disclaimers to mail

You can do it, it involves creating a text, or html file with the disclaimer text, and a regular expression for the domains to apply it to. Note: Altering email bodies like this is considered not very nice, and can break some peoples clients. You have been warned!


1) make sure altermime is installed

yum install altermime

2) Run qmail-scanner-reconfigure, this detects altermime and enables it

qmail-scanner-reconfigure

3) Create disclaimer files in /var/spool/qscan

 text_disclaimer.txt
 html_disclaimer.html

3) Edit /var/qmail/bin/qmail-scanner-queue.pl change the following entries for your regex, and disclaimer text and/or html files

my $altermime_text='text_disclaimer.txt';
my $altermime_html='html_disclaimer.html';
my $disclaimer_regex = 'exampledomain.com';
Personal tools