Howto: footer Disclaimer In Outgoing Mails

SauronZ

Member
PartnerNOC
May 29, 2003
8
1
153
Hi.

I had lot of problems finding the best solution, so i hope this will be helpfull for all.

1.- Download Altermime from pldaniels.com/altermime/altermime-0.3.9.tar.gz to your server, for example /usr/local/src/ doing:

Code:
cd /usr/local/src/
wget pldaniels.com/altermime/altermime-0.3.9.tar.gz
tar xvfz altermime-0.3.9.tar.gz
cd altermime-0.3.7
make
make install
2.- Create disclaimers files in plaintext and in html

Code:
/usr/local/etc/exim/textdisclaimer
and
/usr/local/etc/exim/htmldisclaimer
textdisclaimer:

Code:
-------------
example.com
htmldisclaimer:

Code:
<p>
-----
<br />
  <a href="http://www.example.com">example.com </a>
</p>

3.- Go to WHM --> Exim Configuration Editor --> Advanced Editor

4.- Find ROUTERS CONFIGURATION and in the first textfield put:

Code:
disclaimer:
driver = dnslookup
domains = ! +local_domains
transport = disclaimer_smtp
5.- Find TRANSPORTS CONFIGURATION and in the textfield insert :

Code:
disclaimer_smtp:
driver = smtp
transport_filter = /usr/local/bin/altermime  --input=- --disclaimer=/usr/local/etc/exim/textdisclaimer --disclaimer-html=/usr/local/etc/exim/htmldisclaimer
size_addition = 1
6.- go to the bottom of the page and click save.

That's all.

Now you can test it by sending an email to any account, maybe yourself.
 
Last edited by a moderator:
  • Like
Reactions: kamal kakkar

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
That's an interesting solution, thank you for posting it. I would add that anyone adding a disclaimer should always seek legal advice about adding such a statement and its content as, in some countries, they have been shown to be either:

1. Completely unenforceable in law
2. Actually reduce your legal rights

So care does need to be taken when adding and drafting such legal documents. For example:
http://www.out-law.com/page-5536
 

LeetWebH

Member
Dec 6, 2005
15
0
151
Thanks for the howto/info.. now is there a way to limit it for just one domain?

(in case I have several hosted and I just want one domain or have different disclaimers for each domain)
 

alanzkorner

Registered
Nov 18, 2008
1
0
51
Limiting Disclamer to one and only one domain

Well to limit this to only one domain on the server ( it wont work for
mails to other domains in the server (/etc/localdomains)

After installing the the script and making the disclaimer add
these to your exim.conf /etc/exim.conf


$$$$$$$$$$$$$$$$$$$$$$$$$

disclaimer:
driver = dnslookup
domains = ! +local_domains
transport = ${if eq {$sender_address_domain}{yourdomain.com}\
{disclaimer_smtp}{remote_smtp}}
ignore_target_hosts = 127.0.0.0/8
no_more


just Below the Routers Configuration ,

then under TRANSPORTS CONFIGURATION

added


disclaimer_smtp:
driver = smtp
transport_filter = /usr/local/bin/altermime --input=- --disclaimer=/usr/local/etc/exim/textdisclaimer --disclaimer-html=/usr/local/etc/exim/htmldisclaimer
size_addition = 1

now save and restart exim . Check the mail status for yourdomain.com it noly will have the disclaimer

Thanks,
Alan
 

thobarn

Well-Known Member
Apr 25, 2008
152
1
68
sanctum sanctorum
Thanks for how to; looks a time saver. What effect this has/ interacts with , if any, with the transport dk_remote_smtp when the outgoing email is domain_keys signed? Thanks again.