Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jul 2003
    Posts
    10

    Default How I Edited Webmail Template

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge myusername's Avatar
    Join Date
    Mar 2003
    Location
    chown -R us.us *yourbase*
    Posts
    712
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Dont forget to chattr +i the files you edited or the next cpanel update might overwrite what you have done.
    GlowHost.com | Professional Managed Web Hosting Since 2002.
    >> Fully Managed Dedicated, Cloud VDS, Reseller & Semi-Dedicated
    >> Cloud Servers for Enterprise

  3. #3
    Member
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    71

    Default

    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. #4
    Member
    Join Date
    May 2002
    Posts
    139

    Default

    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

Similar Threads & Tags
Similar threads

  1. Template Error: The template file must be given.
    By techclan in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-14-2011, 09:00 PM
  2. Template Error: The template file must be given
    By fkessler in forum Diskussion auf Deutsch
    Replies: 1
    Last Post: 04-30-2010, 04:07 AM
  3. How can save edited files via vi command?
    By 4402734 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-22-2005, 06:33 PM
  4. No confirmation when DNS is edited?!
    By Kikky in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-22-2004, 07:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube