objetivo

abordar instalação do zimbra 7 no CentOS 6.2

procedimentos

pre-req

servicos

sudo

Comente a linha abaixo no /etc/sudoers

Defaults    requiretty

sshd

Descomente a linha abaixo no /etc/ssh/sshd_config

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys

iptables

vamos desabilitar a iptables para a instalacao, depois voce pode reabilitar se desejarm

chkconfig iptables off
service iptables stop

se desejar ajustar a firewall ao invés de desligar, use as regras abaixo

# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# enable ssh and snmp
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT -s 10.10.3.0/24
# enable zimbra ports
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 389 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 465 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 995 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 7071 -j ACCEPT -s 10.10.3.0/24
# enable cluster communications
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 41966 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 41967 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 41968 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 41969 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 50006 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 50007 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 50008 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 50009 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21064 -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 6809  -j ACCEPT -s 10.10.3.0/24
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 14567 -j ACCEPT -s 10.10.3.0/24
# reject everything else
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

postfix

precisa desativar o postfix que vem instalado como padrao, apenas desativar da inicializar e parar para instalar o zimbra.

chkconfig postfix off
service postfix stop

pacotes

pacotes necessários para instalação do zimbra

yum install libstdc++.i686 libstdc++.x86_64 nc sysstat

zimbra

su -
mkdir zimbra
wget http://files2.zimbra.com/downloads/7.1.4_GA/zcs-7.1.4_GA_2555.RHEL6_64.20120105094542.tgz
tar zxvf zcs-7.1.4_GA_2555.RHEL6_64.20120105094542.tgz

instalando

Para instalar o zimbra no CentOS precisamos espefificar um parametro para ignorar a checagem da distro.

./install.sh --platform-override

Abaixo você verá uma saída similar a sua instalação

./install.sh --platform-override

Operations logged to /tmp/install.log.2047
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND


PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:
  http://www.zimbra.com/license/zimbra_public_eula_2.1.html

Do you agree with the terms of the software license agreement? [N] Y

Checking for prerequisites...
     FOUND: NPTL
     FOUND: sudo-1.7.4p5-7
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-7
     FOUND: /usr/lib/libstdc++.so.6
Checking for suggested prerequisites...
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy


Select the packages to install

Install zimbra-ldap [Y] Y

Install zimbra-logger [Y] Y

Install zimbra-mta [Y] Y

Install zimbra-snmp [Y] Y

Install zimbra-store [Y] Y

Install zimbra-apache [Y] Y

Install zimbra-spell [Y] Y

Install zimbra-memcached [N] N

Install zimbra-proxy [N] N
Checking required space for zimbra-core
checking space for zimbra-store

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is CentOSUNKNOWN_64
Packages found: RHEL6_64
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.


Install anyway? [N] Y

The system will be modified.  Continue? [N] Y

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Suite.

Installing packages

    zimbra-core......zimbra-core-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-logger......zimbra-logger-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-mta......zimbra-mta-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-store......zimbra-store-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-apache......zimbra-apache-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-spell......zimbra-spell-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
Operations logged to /tmp/zmsetup.03272012-172449.log
Installing LDAP configuration database...done.
Setting defaults...

DNS ERROR resolving MX for zimbra.empresa.df
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] no
done.

configurando

zimbra

Após a instalação de pacotes, ele vai te mostrar a seguinte tela.

Checking for port conflicts

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-store:                            Enabled                       
        +Create Admin User:                    yes                           
        +Admin user to create:                 admin@zimbra.empresa.df        
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           virus-quarantine.5svh2sh7hz@zimbra.empresa.df
        +Enable automated spam training:       yes                           
        +Spam training user:                   spam.cxk7hpjozr@zimbra.empresa.df
        +Non-spam(Ham) training user:          ham.wgvifbjbee@zimbra.empresa.df
        +SMTP host:                            zimbra.empresa.df              
        +Web server HTTP port:                 80                            
        +Web server HTTPS port:                443                           
        +Web server mode:                      http                          
        +IMAP server port:                     143                           
        +IMAP server SSL port:                 993                           
        +POP server port:                      110                           
        +POP server SSL port:                  995                           
        +Use spell check server:               yes                           
        +Spell server URL:                     http://zimbra.empresa.df:7780/aspell.php
        +Configure for use with mail proxy:    FALSE                         
        +Configure for use with web proxy:     FALSE                         
        +Enable version update checks:         TRUE                          
        +Enable version update notifications:  TRUE                          
        +Version update notification email:    admin@zimbra.empresa.df        
        +Version update source email:          admin@zimbra.empresa.df        

   4) zimbra-mta:                              Enabled                       
   5) zimbra-snmp:                             Enabled                       
   6) zimbra-logger:                           Enabled                       
   7) zimbra-spell:                            Enabled                       
   8) Default Class of Service Configuration:                                
   r) Start servers after configuration        yes                           
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

Address unconfigured (**) items  (? - help) 

Aqui precisamos apenas setar a senha do admin, acompanhe as orientações do instalador.

Address unconfigured (**) items  (? - help) 3


Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@zimbra.empresa.df        
** 4) Admin Password                           UNSET                         
   5) Anti-virus quarantine user:              virus-quarantine.5svh2sh7hz@zimbra.empresa.df
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.cxk7hpjozr@zimbra.empresa.df
   8) Non-spam(Ham) training user:             ham.wgvifbjbee@zimbra.empresa.df
   9) SMTP host:                               zimbra.empresa.df              
  10) Web server HTTP port:                    80                            
  11) Web server HTTPS port:                   443                           
  12) Web server mode:                         http                          
  13) IMAP server port:                        143                           
  14) IMAP server SSL port:                    993                           
  15) POP server port:                         110                           
  16) POP server SSL port:                     995                           
  17) Use spell check server:                  yes                           
  18) Spell server URL:                        http://zimbra.empresa.df:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE                         
  20) Configure for use with web proxy:        FALSE                         
  21) Enable version update checks:            TRUE                          
  22) Enable version update notifications:     TRUE                          
  23) Version update notification email:       admin@zimbra.empresa.df        
  24) Version update source email:             admin@zimbra.empresa.df        

Select, or 'r' for previous menu [r] 4

Password for admin@zimbra.empresa.df (min 6 characters): [QFTiMYvrF] empresa2k12

Store configuration

   1) Status:                                  Enabled                       
   2) Create Admin User:                       yes                           
   3) Admin user to create:                    admin@zimbra.empresa.df        
   4) Admin Password                           set                           
   5) Anti-virus quarantine user:              virus-quarantine.5svh2sh7hz@zimbra.empresa.df
   6) Enable automated spam training:          yes                           
   7) Spam training user:                      spam.cxk7hpjozr@zimbra.empresa.df
   8) Non-spam(Ham) training user:             ham.wgvifbjbee@zimbra.empresa.df
   9) SMTP host:                               zimbra.empresa.df              
  10) Web server HTTP port:                    80                            
  11) Web server HTTPS port:                   443                           
  12) Web server mode:                         http                          
  13) IMAP server port:                        143                           
  14) IMAP server SSL port:                    993                           
  15) POP server port:                         110                           
  16) POP server SSL port:                     995                           
  17) Use spell check server:                  yes                           
  18) Spell server URL:                        http://zimbra.empresa.df:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE                         
  20) Configure for use with web proxy:        FALSE                         
  21) Enable version update checks:            TRUE                          
  22) Enable version update notifications:     TRUE                          
  23) Version update notification email:       admin@zimbra.empresa.df        
  24) Version update source email:             admin@zimbra.empresa.df        

Select, or 'r' for previous menu [r] r

Main menu

   1) Common Configuration:                                                  
   2) zimbra-ldap:                             Enabled                       
   3) zimbra-store:                            Enabled                       
   4) zimbra-mta:                              Enabled                       
   5) zimbra-snmp:                             Enabled                       
   6) zimbra-logger:                           Enabled                       
   7) zimbra-spell:                            Enabled                       
   8) Default Class of Service Configuration:                                
   r) Start servers after configuration        yes                           
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) 

Além de trocar a senha de admin, caso deseje pode também habilitar/desabilitar serviços ou trocar as senhas dos admins de cada serviço do zimbra. Enfim, depende do seu cenário. Vamos aplicar a configuração e ver a saída.

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] 
Save config in file: [/opt/zimbra/config.7480] 
Saving config in /opt/zimbra/config.7480...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup.03272012-172449.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher  password...done.
Creating server entry for zimbra.empresa.df...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on zimbra.empresa.df...done.
Adding zimbra.empresa.df to zimbraMailHostPool in default COS...done.
Installing webclient skins...
	smoke...done.
	pebble...done.
	sand...done.
	bones...done.
	bare...done.
	hotrod...done.
	waves...done.
	twilight...done.
	beach...done.
	lake...done.
	lemongrass...done.
	tree...done.
	steel...done.
	sky...done.
	oasis...done.
	carbon...done.
	lavender...done.
Finished installing webclient skins.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on zimbra.empresa.df...done.
Creating domain zimbra.empresa.df...done.
Setting default domain name...done.
Creating domain zimbra.empresa.df...already exists.
Creating admin account admin@zimbra.empresa.df...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.cxk7hpjozr@zimbra.empresa.df...done.
Creating user ham.wgvifbjbee@zimbra.empresa.df...done.
Creating user virus-quarantine.5svh2sh7hz@zimbra.empresa.df...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for zimbra.empresa.df...done.
Configuring SNMP...done.
Checking for default IM conference room...not present.
Initializing default IM conference room...done.
Setting up syslog.conf...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
	The VERSION of zcs installed (7.1.4_GA_2555_CentOSUNKNOWN_64)
	The ADMIN EMAIL ADDRESS created (admin@zimbra.empresa.df)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Starting servers...done.
Installing common zimlets...
	com_zimbra_webex...	^[done.
	com_zimbra_email...^[^[^[^[^[done.
	com_zimbra_linkedin...done.
	com_zimbra_srchhighlighter...done.
	com_zimbra_url...done.
	com_zimbra_attachcontacts...done.
	com_zimbra_date...done.
	com_zimbra_cert_manager...done.
	com_zimbra_bulkprovision...done.
	com_zimbra_dnd...done.
	com_zimbra_adminversioncheck...done.
	com_zimbra_attachmail...done.
	com_zimbra_phone...done.
	com_zimbra_social...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.03272012-172449.log to /opt/zimbra/log

Configuration complete - press return to exit

Pronto, zimbra instalado.

instant messenger

O Instant Messenger vem desabilitado por padrao na versão 7.0, para habilitar siga os passos abaixo

su -
su zimbra
zmprov mcf zimbraXMPPEnabled TRUE
zmprov mc default zimbraFeatureIMEnabled TRUE
zmprov mc default zimbraFeatureInstantNotify TRUE
zmprov mc default zimbraPrefIMAutoLogin TRUE

operação

Para entrar no zimbra webmail acesse a URL

http://zimbra.empresa.df

Para entrar no zimbra admin acesse a URL

https://zimbra.empresa.df:7071

referencias



zimbra_instalando_em_ambiente_centos.txt · Last modified: 2012/03/28 18:01 by gutocarvalho
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0