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.

Need to remove! options shown in webmail page after login

Discussion in 'E-mail Discussions' started by hariskhan, Sep 28, 2006.

  1. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    When anyone logs in to webmail on a server running cpanel/whm and exim with maildir mailbox format, after login they are shown a page with two icons (Horde and Squirrelmail) and some options under it. The options shown on that page are listed as follows;

    [Change Password] [Forwarding Options] [Autoresponder Options] [Aging] [Logout]

    Does a server admin have control over these! options through whm/cpanel to remove/hide them as necessary/needed?

    For example, I need to disable [Forwarding Options] ... How can I do it?
     
    #1 hariskhan, Sep 28, 2006
    Last edited: Sep 28, 2006
  2. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Possible options?

    Can I achieve the above through disabling one of the following in the Feature Manager in whm (throughout the server or on one account?);

    - Forwarder Manager
    - Email Domain Forwarding
     
  3. beley

    beley Active Member

    Joined:
    Feb 27, 2003
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    I need to remove just one of the options in Cpanel after logging into webmail (change password). One of my clients has a corporate password policy and they get their passwords assigned to them... they can't change them.

    Is there a way to not allow a user to change the password? I've looked through the templates but can't see where I can change that.
     
  4. tfcservices

    tfcservices Member

    Joined:
    May 22, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Alabama
    removing options

    Is there an answer to this??
     
  5. tfcservices

    tfcservices Member

    Joined:
    May 22, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Alabama
    I actually figured this out. You modify the following file:

    /usr/local/cpanel/base/webmaillogin.cgi

    by removing the following lines:

    if ($webmail->{envuser} =~ /\@/) {
    print qq{[<a href="$webmail->{urlbase}/webmailpasswd.cgi">Change Password</a>]\n};
    if ($Cpanel::CPDATA{'FEATURE-FORWARDERS'} ne 0) {
    print qq{[<a href="$webmail->{urlbase}/webmailforward.cgi">Forwarding Options</a>]\n};
    }
    print qq{[<a href="$webmail->{urlbase}/webmailautorespond.cgi">Autoresponder Options</a>]\n};
    }


    if (! $Cpanel::CONF{'skipboxtrapper'} && $Cpanel::CPDATA{'FEATURE-BOXTRAPPER'} ne '0') {
    print qq{[<a href="$webmail->{urlbase}/webmailboxtrapper.cgi">BoxTrapper</a>]\n};
    }

    if (-e 'webmailaging.cgi') {
    print qq{[<a href="$webmail->{urlbase}/webmailaging.cgi">Aging</a>]\n};
    }


    This will remove the "Change Password", "Autoresponder", "Boxtrapper", and "Aging" Options but leave the "logout" options.

    Just delete the options you do not want to show up starting with the "if" and ending with "}". In my case I only wanted the "Logout" opton to show.

    Hope this helps someone.
     
  6. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    Is it possible to remove change password option from webmail for any one domain hosted on our server

    one of our client do not want to let webmail users to change password

    we are using

     
  7. mickbeng

    mickbeng Well-Known Member

    Joined:
    Oct 3, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Penang, Malaysia
    Will cPanel update replace the changes done in the future?
     
Loading...

Share This Page