Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    May 2003
    Posts
    8

    Default Howto:footer Dslaimer In Outgoing Mails

    Hi.

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

    1.- Download Altermime from http://www.pldaniels.com/altermime/a...e-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

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

    Code:
    -------------
    SauronZ.com
    htmldisclaimer:

    Code:
    <p>
    -----
    <br />
      <a href="http://www.sauronz.com">SauronZ.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.


    ---------------------------------------
    Yannick Arrimadas Bot
    info@sauronz.com
    www.sauronz.com

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Dec 2005
    Posts
    7

    Default

    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)

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    1

    Default 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

  5. #5
    Member
    Join Date
    Sep 2006
    Posts
    144
    cPanel/Enkompass Access Level

    Website Owner

    Default

    Hello,
    Do you have a clue how to add a custom header with altermime ?

  6. #6
    Member
    Join Date
    Apr 2008
    Location
    sanctum sanctorum
    Posts
    152

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 04-15-2010, 12:38 AM
  2. outgoing mails copy
    By anand in forum cPanel and WHM Discussions
    Replies: 51
    Last Post: 02-25-2010, 11:39 PM
  3. copy of outgoing mails ???
    By furquan in forum E-mail Discussions
    Replies: 2
    Last Post: 03-15-2008, 08:13 AM
  4. extend the outgoing mails
    By Vinu007 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-02-2008, 09:04 AM
  5. Redirect outgoing mails ???
    By furquan in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-28-2007, 07:51 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube