Jump to content

Disable-viewmail-zimbra: Difference between revisions

From TetraWiki
No edit summary
Line 15: Line 15:


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


Line 23: Line 21:


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



Revision as of 13:13, 12 June 2015


Need to remove view mail function in zimbra 6.0.10

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

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.