Qmail-scanner
From Atomicorp Wiki
Overview
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 warned1
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';