disclaimer in mail

prashantbhushan

Verified User
Joined
Jul 21, 2006
Messages
199
Location
Pune, India.
Hello,
I want to set disclaimer message for all the outgoing mails for a domain. Is there any option in DA to set the same.


Thanks,
Prashant
 
I would like to as well. Any info on how to do this on a per domain basis?
 
Unless you somehow disable all html email there's no real way to make sure that any added code will ever get viewed by the recipient.

Jeff
 
Well apparently DirectAdmin doesn't support this at the present, but I hardly think it can be called impossible. There are many businesses & services that append such messages. So it is possible.
 
They support it. They do it.

But if you read exim forums you'll find out that exim can't figure out where to put it so it'll always appear in multi-part emails.

Jeff
 
Its a old thread, but maybe it could help someone in the right direction...:)
I've found this on internet

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

Code:
cd /usr/local/src/
wget http://www.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

/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 Exim Configuration file /etc/Exim.conf

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


Code:
disclaimer:
 driver = dnslookup
 domains = ! +local_domains
 transport = disclaimer_smtp5.- 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

restart Exim and try


--------------------------------------------------------------
only one domain with disclaimer/footer
--------------------------------------------------------------

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

CHANGE: yourdomain.com to the domainname with the disclaimer

Code:
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


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

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

I Didn't tested it but it can work ?
 
Last edited:
tar xvfz altermime-0.3.9.tar.gz
cd altermime-0.3.7

I am not sure how you can cd to version 0.3.7 when you are working with version 0.3.9

restart Exim and try

Code:
Shutting down exim: 
Starting exim: 2010-01-20 10:36:38 Exim configuration error in line 549 of /etc/exim.conf:
  router disclaimer_smtp: cannot find router driver "smtp"
 
I am not sure how you can cd to version 0.3.7 when you are working with version 0.3.9



Code:
Shutting down exim: 
Starting exim: 2010-01-20 10:36:38 Exim configuration error in line 549 of /etc/exim.conf:
  router disclaimer_smtp: cannot find router driver "smtp"


i try this got no error but sig is not showing in outgoing emails

any help ?
 
Back
Top