The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Howto: footer Disclaimer In Outgoing Mails

Discussion in 'E-mail Discussions' started by SauronZ, Nov 11, 2008.

  1. SauronZ

    SauronZ Member
    PartnerNOC

    Joined:
    May 29, 2003
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    1
    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.
     
    #1 SauronZ, Nov 11, 2008
    Last edited by a moderator: Dec 8, 2015
    kamal kakkar likes this.
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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
     
  3. LeetWebH

    LeetWebH Member

    Joined:
    Dec 6, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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. alanzkorner

    alanzkorner Registered

    Joined:
    Nov 18, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello,
    Do you have a clue how to add a custom header with altermime ?
     
  6. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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.
     

Share This Page