Jump to content

Disable-viewmail-zimbra

From TetraWiki
Revision as of 13:19, 12 June 2015 by Biswajit (talk | contribs) (moved Main Page/Disable-viewmail-zimbra to Disable-viewmail-zimbra)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Need to remove view mail function in zimbra 6.0.10[edit]

Note: It is not possible with admin account to disable view mail option

As per the clients Need if required create new user done the below.

zmprov ma amit@orientbell.com zimbraIsDelegatedAdminAccount TRUE zimbraAdminConsoleUIComponents cartBlancheUI
zmprov grr global usr amit@orientbell.com +adminConsoleRights
zmprov grr global usr amit@orientbell.com -adminLoginAs


Need to remove view mail function in zimbra 7.x and 8.x[edit]

Reference document : http://forums.zimbra.com/administrators/64270-howto-domain-admin-rights-zimbra-ose-8-x.html and https://m.facebook.com/notes/sws/domain-admin-right-in-zimbra-8x/507244512716040/


Create a normal user ( tested on webmail.phdcci.in with ranjith@phdcci.in and tetra_test@phdcci.in ). Put following in a executable file in zimbra user's directory ( e.g /opt/zimbra/domain-delegation.sh )


#!/bin/bash
# $1 domain
# $2 email
zmprov ma $2 zimbraIsDelegatedAdminAccount TRUE
zmprov ma $2 zimbraAdminConsoleUIComponents cartBlancheUI zimbraAdminConsoleUIComponents domainListView  
zimbraAdminConsoleUIComponents accountListView zimbraAdminConsoleUIComponents DLListView
zmprov ma $2 zimbraDomainAdminMaxMailQuota 0
zmprov grantRight domain $1 usr $2 +createAccount
zmprov grantRight domain $1 usr $2 +createAlias
zmprov grantRight domain $1 usr $2 +createCalendarResource
zmprov grantRight domain $1 usr $2 +createDistributionList
zmprov grantRight domain $1 usr $2 +deleteAlias
zmprov grantRight domain $1 usr $2 +listDomain
zmprov grantRight domain $1 usr $2 +domainAdminRights
zmprov grantRight domain $1 usr $2 +configureQuota
zmprov grantRight domain $1 usr $2 set.account.zimbraAccountStatus
zmprov grantRight domain $1 usr $2 set.account.sn
zmprov grantRight domain $1 usr $2 set.account.displayName
zmprov grantRight domain $1 usr $2 set.account.zimbraPasswordMustChange
zmprov grantRight account $2 usr $2 +deleteAccount
zmprov grantRight account $2 usr $2 +getAccountInfo
zmprov grantRight account $2 usr $2 +getAccountMembership
zmprov grantRight account $2 usr $2 +getMailboxInfo
zmprov grantRight account $2 usr $2 +listAccount
zmprov grantRight account $2 usr $2 +removeAccountAlias
zmprov grantRight account $2 usr $2 +renameAccount
zmprov grantRight account $2 usr $2 +setAccountPassword
zmprov grantRight account $2 usr $2 +viewAccountAdminUI
zmprov grantRight account $2 usr $2 +configureQuota


Make the script executable

chmod +x /opt/zimbra/domain-delegation.sh
chown zimbra:zimbra /opt/zimbra/domain-delegation.sh


Run this sript with zimbra user.

su - zimbra

./domain-delegation.sh phdcci.in ranjith@phdcci.in

Test it via login in the admin panel with created admin equivalent user.