Remove "check email" button
This has been discussed here:
The thread is locked now (too old) and the feature request was dismissed:
However, for many of us this is still relevant, probably more so with the just released new email accounts interface, with its prominent "Check email" button.
I understand the reasons for cPanel not wanting to remove this button (kind of).
Maybe there's a way to target this button with custom CSS and hide it?
-
Hello @stormy, I understand the reasons for cPanel not wanting to remove this button (kind of). Maybe there's a way to target this button with custom CSS and hide it?
We document how to customize the cPanel interface with UI includes on the document below: Guide to cPanel Interface Customization - UI Includes - Developer Documentation - cPanel Documentation The "Check Email" entries that you will need to reference when customizing the interface are located in the following files: /usr/local/cpanel/base/frontend/paper_lantern/email_accounts/views/list.ptt /usr/local/cpanel/base/frontend/paper_lantern/email_accounts/views/manageDefault.ptt /usr/local/cpanel/base/frontend/paper_lantern/email_accounts/views/manage.ptt Thank you.0 -
Thank you, I will get into it and post my solution in case anyone else is interested. I still think that there should be a checkbox somewhere that removes these. There's a big difference between giving users a false sense of security and giving them a button that says "click here to spy your coworkers email". :D 0 -
Hi @stormy, I recommend adding your feedback about this topic to the following feature request: Multiple cPanel Logins (cPanel Subusers) While it's not a direct request for the feature you're asking for, it does relate to changing the underlying structure of which features are accessible to an individual cPanel user. Thank you. 0 -
Thanks Michael. I haven't found a way to target it with CSS - I was planning on adding a "display: none" to it. I will add my feedback to that request (which I voted for years ago!) but in this case I wouldn't want that feature accessible to any cPanel user. 0 -
Thank you, I will get into it and post my solution in case anyone else is interested. I still think that there should be a checkbox somewhere that removes these. There's a big difference between giving users a false sense of security and giving them a button that says "click here to spy your coworkers email". :D
I agree with stormy about not allowing the cpanel user to access the other users emails. It also is an intrusion of privacy. I believe there is no need to allow accessing any emails directly without authentication. Since I being a website owner, the technical team member who has access to cpanel has ability to check others emails and this is a concern. Can something be done about it.0 -
An administrator will always have access to private data. If you do not trust someone they shouldn't have cPanel access in the first place. Also, if they have shell access they can see all the emails anyway. 0 -
Well, I was searching for more info about this and found my own topic. :) I've been able to come up with some CSS that hides the button, for those of us that don't want it on display for cosmetic reasons. For the List email accounts page, I'm using a wildcard CSS selector: a[id^='email_table_menu_webmail'> {display:none;}
And for the Manage an email account page:#lnkCheckEmail {display:none;}
Now I just need to find the easiest way to add this to the CSS styles. Reading up on:0 -
Update - I did it! It's very easy. 1. Navigate to /var/cpanel/customizations/includes 2. Create file email_accounts_page_header.html.tt 3. These are the contents of the file:
I hope this is correct and useful for someone else.0 -
Just found out that this was missing, for the mobile display: a[id^='email_table_expand_webmail'> {display:none;}
0 -
Update - I did it! It's very easy. 1. Navigate to /var/cpanel/customizations/includes 2. Create file email_accounts_page_header.html.tt 3. These are the contents of the file:
I hope this is correct and useful for someone else.
Hello, It is working globally for server all email accounts. Please can you guide me if easily i can do it for only one reseller accounts or one cpanel only..0 -
I have tried disabling webmail feature from feature list it has disabled check mail function as well but it is not showing email options after login to webmail like roundcube or something.. 0 -
Update - I did it! It's very easy. 1. Navigate to /var/cpanel/customizations/includes 2. Create file email_accounts_page_header.html.tt 3. These are the contents of the file:
I hope this is correct and useful for someone else.
I couldn't get it to work in the Jupiter theme. Any idea how to do it?0 -
I couldn't get it to work in the Jupiter theme. Any idea how to do it?
I am waiting for the same reply.0 -
Those instructions wouldn't work in Jupiter as that uses different files to display the interface. 0 -
Those instructions wouldn't work in Jupiter as that uses different files to display the interface.
So is there any solution for Jupiter theme?0 -
I didn't provide the earlier solution as it required manually editing cPanel configuration files and continuing to edit them every night so they don't get replaced during updates, so I don't have anything to provide for Jupiter from my end either. 0 -
Got it here. Create a new folder... # mkdir -p /var/cpanel/customizations/content_includes
Create a new file...# vim /var/cpanel/customizations/content_includes/cpanel_jupiter_email_accounts_header.html.tt
Put the code in this file and save.
- Does not work on V100. - Working on V102 and V104. - Not tested on V1060 -
- Does not work on V100. - Working on V102 and V104. - Not tested on V106
Confirmed working on v108. Thank you!!!0 -
Where is the code?
0 -
The code wasn't moved over from the old Forum, and cPanel would update the file during the nightly update to keep this from sticking.
0 -
Can you post it again now, please?
0 -
I'd prefer not to as this only generates the illusion of security, and it's not something we tested on the cPanel side.
0 -
It's not a security issue, just a cosmetic one. I need only to hide the CHECK EMAIL button. And this subject has been posted here, so not a big problem.
Can you please post the code originally posted here?
https://support.cpanel.net/hc/en-us/community/posts/19135638468247/comments/19135700468119
0 -
No, I will not be posting that code here. I'm also going to lock this thread as it doesn't need further replies.
0
Post is closed for comments.
Comments
24 comments