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.

How I Edited Webmail Template

Discussion in 'E-mail Discussions' started by AdamAGB, May 13, 2004.

  1. AdamAGB

    AdamAGB Member

    Joined:
    Jul 6, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I wanted to make it so that when my clients logged into their webmail, it automatically went to their Neomail account (and skipped over the unbranded mail management screen).

    After much agonizing, I found a solution, not sure if it'll work indefinitely, but it works now :). It's kind of primitive, as I'm not a technie.

    First, I logged into SSH as root.

    Then, went to

    /usr/local/cpanel/base/webmail/x/

    Then edited header.html and footer.html

    I deleted all the contents of both and in header.html just put a simple HTML meta refresh to

    http://mydomain.com:2095/neomail/neomail.pl

    This worked, but there were still a few annoying links that the user would see for a split second before being redirected. So, to fix that problem, I went to:

    /usr/local/cpanel/base/

    Then edited webmaillogin.cgi to delete the links and extra code.

    Voila! Now, my clients can login directly to neomail and won't see any unbranded nonsense.

    I hope this was useful to at least one person. I'm very pleased. ^_^

    -Adam
     
  2. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Dont forget to chattr +i the files you edited or the next cpanel update might overwrite what you have done.
     
  3. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    If you don't want to edit the cgi file, you can put <!-- at the end of header.html and //--> at the first line of footer.html, so that all the contents in between them will not display. :)
     
  4. ctbhost

    ctbhost Well-Known Member

    Joined:
    May 31, 2002
    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    thanks for that people - works well

    one additional thing i did is went to /usr/local/cpanel/base/unprotected

    and put Blank header.html and footer.html files to stop the unbranded cpanelX screen coming up if the login fails

    and of course i chattr +i them
     
Loading...

Share This Page