Difference between revisions of "Qmail-scanner"
From Atomicorp Wiki
(New page: == 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 ...) |
|||
Line 1: | Line 1: | ||
− | |||
== Overview == | == Overview == | ||
+ | Changes made to qmail-scanner-queue.pl go into effect immediately, no changes are required. | ||
== Adding disclaimers to mail == | == 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 | + | 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! |
Revision as of 18:13, 28 January 2009
Overview
Changes made to qmail-scanner-queue.pl go into effect immediately, no changes 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';