Need to remove! options shown in webmail page after login

hariskhan

Well-Known Member
Apr 15, 2004
146
0
166
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?
 
Last edited:

hariskhan

Well-Known Member
Apr 15, 2004
146
0
166
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
 

beley

Active Member
Feb 27, 2003
30
0
156
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.
 

tfcservices

Member
May 22, 2003
23
0
151
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.
 

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
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

cPanel 11.24.5-S38506
WHM 11.24.2 - X 3.9
CENTOS 5.4 i686 standard
 

mickbeng

Well-Known Member
Oct 3, 2006
56
0
156
Penang, Malaysia
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.
Will cPanel update replace the changes done in the future?