Last active
August 24, 2021 19:06
-
-
Save LuisCardenasSolis/08d92b244ced7aa71f6cc9c65cd0cdfc to your computer and use it in GitHub Desktop.
Install and configura Cbpolicyd in Zimbra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALL (https://imanudin.net/2014/09/08/how-to-install-policyd-on-zimbra-8-5/) | |
su - zimbra | |
zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd | |
#Verify apache Zimbra | |
--- | |
rpm qa | grep zimbra-apache-components | |
yum install zimbra-apache-components | |
cd package && rpm -Uvh zimbra-apache-** | |
./install | seleccionar zimbra-apache | |
--- | |
cd /opt/zimbra/data/httpd/htdocs/ | |
ln -s /opt/zimbra/common/share/webui/ . | |
vim /opt/zimbra/common/share/webui/includes/config.php | |
#REPLACE DB_DSN | |
$DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb"; | |
su - zimbra -c "zmprov ms `hostname` zimbraCBPolicydAccessControlEnabled TRUE" | |
su - zimbra -c "zmcbpolicydctl restart" | |
su - zimbra -c "zmapachectl restart" | |
(https://imanudin.net/2014/09/09/zimbra-tips-how-to-configure-rate-limit-sending-message-on-policyd/) | |
===================================== SEGURIDAD ============================================================= | |
cd /opt/zimbra/common/share/webui/ | |
vim .htaccess | |
=== | |
AuthUserFile /opt/zimbra/common/share/webui/.htpasswd | |
AuthGroupFile /dev/null | |
AuthName "User and Password" | |
AuthType Basic | |
<LIMIT GET> | |
require valid-user | |
</LIMIT> | |
=== | |
touch .htpasswd | |
/opt/zimbra/common/bin/htpasswd -cb .htpasswd admin perulinux,.123 | |
vim /opt/zimbra/conf/httpd.conf | |
=== | |
Alias /webui /opt/zimbra/common/share/webui/ | |
<Directory /opt/zimbra/common/share/webui/> | |
DirectoryIndex index.php | |
# Comment out the following 3 lines to make web ui accessible from anywhere | |
AllowOverride AuthConfig | |
Order Deny,Allow | |
Allow from all | |
</Directory> | |
==== | |
su - zimbra -c "zmapachectl restart" | |
========================================= SKIN ======================================================= | |
#Instalar mejora: | |
#https://github.com/scargr/cbp_webui2/tree/master/webui2 | |
git clone https://github.com/scargr/cbp_webui2.git | |
#reemplazar webui2 por webui | |
mv /opt/zimbra/common/share/webui /opt/zimbra/common/share/webui.bkp | |
mv cbp_webui2/webui2/ /opt/zimbra/common/share/webui | |
su - zimbra -c "zmapachectl restart" | |
#Si los estilos no se ven bien, borrar cache | |
===================================================================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment