11 janeiro 2013

INSTALANDO SERVIDOR EMAIL ZIMBRA NO CENTOS 6.3

Caros Leitores,
Após algum tempo afastado, estou voltando com uma nova postagem. E agora vamos falar sobre o ZIMBRA.
zcs_promo_smZimbra Collaboration Suite (ZCS) é um groupware criado pela Zimbra, Inc. A empresa foi comprada pela Yahoo! em Setembro de 2007[1] e depois comprada pela VMWare em 12 de Janeiro de 2010.[2]
O software trabalha no modelo "cliente e servidor". Duas versões do Zimbra são disponibilizadas: a open-source e a comercial, onde esta última possui o suporte comercial da "Zimbra Network" com componentes de código fechado, basicamente para conexão com o Microsoft Outlook para sincronismo de agenda.
O Pacote de colaboração Zimbra é um aplicativo completo de mensagens instantâneas e colaboração que oferece recursos de e-mail, listas de endereços, calendário, serviço de agenda, listas de tarefas, entre outros.
Concorrente do Exchange, vem se propagando por ser OPENSOURCE.
Para administração das contas de e-mail, o Zimbra possui uma poderosa ferramenta para gerenciamento das contas por domínio, definição de perfil de acesso dos usuários, configuração de classes de serviço, administração das cotas e infra-estrutura, status e estatísticas dos servidores, controle de filas de e-mail, entre outras diversas configurações que auxiliam na sua completa administração.
Vamos lá ao que interessa:
Ambiente:
CentOS 6.3 – HP Proliant DL380 G8 – Raid 5 – 16GB Memória
IP: 192.168.1.244
- Configurações Iniciais:

Desativando o IPtables Padrão:
chkconfig –level 12345 iptables off
chkconfig –level 12345 ip6tables off
/etc/rc.d/init.d/iptables stop
/etc/rc.d/init.d/ip6tables stop
Desativando o SELinux:
vi /etc/selinux/config
Mude a linha ‘SELINUX=enforcing’ para:

SELINUX=disabled
Alterando o nome do Servidor:
vi /etc/sysconfig/network
[Conteúdo do Arquivo]
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=zimbra


Instalação dos repositórios RPMForge e EPEL:
RPMFORGE:
rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
EPEL:

rpm -Uvh
http://fedora.uib.no/epel/6/x86_64/epel-release-6-7.noarch.rpm
Atualizando o yum:
yum clean all
yum -y update
Agora precisamos desativar o Postfix, que vem instalado por padrão nas distribuições CentOS.
Apenas vamos parar o serviço e desativar da inicialização:

/etc/rc.d/init.d/postfix stop
chkconfig –level 12345 postfix off
Antes de começar a instalação precisamos ajustar o arquivo ‘/etc/hosts’ para que fique assim:
Fazendo backup do arquivo original:
cp -Rfa /etc/hosts{,.bkp}
Edite assim:
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.244 zimbra.seudominio.com zimbra

Precisamos ajustar o ‘sudo’:
Comente a linha 56

vi /etc/sudoers
# Defaults requiretty

Ajustando o ‘sshd’:
Descomente as linhas 47,48,49:
vi /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys


Instalando os pacotes necessários:
yum -y install libstdc++.i686 libstdc++.x86_64 nc sysstat wget make vim-enhanced gcc gcc-c++
Vamos iniciar a instalação do Zimbra, para isso vamos criar um diretorio para centralizar a instalação:
Criamos uma pasta em ‘/root’

mkdir ~/zimbra
cd ~/zimbra/
Fazendo o Download do arquivo:
Obs.: Pode demorar um pouco dependendo de sua banda-larga.
O Arquivo tem: 475 Mb

wget http://files2.zimbra.com/downloads/7.1.4_GA/zcs-7.1.4_GA_2555.RHEL6_64.20120105094542.tgz
Descompactando:
tar zxvf zcs-7.1.4_GA_2555.RHEL6_64.20120105094542.tgz
Facilitando:
Vamos renomear a pasta para ficar mais simples de trabalhar a instalação:

mv zcs-7.1.4_GA_2555.RHEL6_64.20120105094542 install
Instalando:
Para iniciar a instalação do Zimbra precisamos especificar um simples parametro para que seja ignorado a checagem da distribuição:

cd install/
./install.sh –platform-override
Confirme a licença com ‘yes’
Abaixo você verá uma saída assim:
./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.seudominio.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] no
done.

Após a finalização, ele vai te mostrar a tela de configuração:
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.seudominio.com
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.nnpdckxw@zimbra.seudominio.com
+Enable automated spam training: yes
+Spam training user: spam.zhoiwjej@zimbra.seudominio.com
+Non-spam(Ham) training user: ham.3tlz7l_f_n@zimbra.seudominio.com
+SMTP host: zimbra.seudominio.com
+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.seudominio.com: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.seudominio.com
+Version update source email: admin@zimbra.seudominio.com

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) 3
Veja que selecionamos a opção: 3
A proxima tela de configuração, veja abaixo:
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@zimbra.seudominio.com
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.nnpdckxw@zimbra.seudominio.com
6) Enable automated spam training: yes
7) Spam training user: spam.zhoiwjej@zimbra.seudominio.com
8) Non-spam(Ham) training user: ham.3tlz7l_f_n@zimbra.seudominio.com
9) SMTP host: zimbra.seudominio.com
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.seudominio.com: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.seudominio.com
24) Version update source email: admin@zimbra.seudominio.com

Select, or ‘r’ for previous menu [r] 4
Na configuração acima, selecionamos a opção ’4′ para alterar a senha do admin:
Select, or ‘r’ for previous menu [r] 4

Password for admin@zimbra.seudominio.com (min 6 characters): [QVVGnuBKUt] sua_senha_aqui
Após digitar a nova senha de admin, irá retornar a tela de configuração:
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@zimbra.seudominio.com
4) Admin Password set
5) Anti-virus quarantine user: virus-quarantine.nnpdckxw@zimbra.seudominio.com
6) Enable automated spam training: yes
7) Spam training user: spam.zhoiwjej@zimbra.seudominio.com
8) Non-spam(Ham) training user: ham.3tlz7l_f_n@zimbra.seudominio.com
9) SMTP host: zimbra.seudominio.com
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.seudominio.com: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.seudominio.com
24) Version update source email: admin@zimbra.seudominio.com

Select, or ‘r’ for previous menu [r] r
Acima selecionamos ‘r’ para retornar ao menu.
Agora de volta ao Menu principal:
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)

Para finalizar e salvar as configurações, digitamos ‘a’:
*** CONFIGURATION COMPLETE – press ‘a’ to apply
Select from menu, or press ‘a’ to apply config (? – help) a
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.6456]
Saving config in /opt/zimbra/config.6456…done.
The system will be modified – continue? [No] yes
Operations logged to /tmp/zmsetup.07252012-114620.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.seudominio.com…done.
Saving CA in ldap …done.
Saving SSL Certificate in ldap …done.
Setting spell check URL…done.
Setting service ports on zimbra.seudominio.com…done.
Adding zimbra.seudominio.com to zimbraMailHostPool in default COS…done.
Installing webclient skins…
sand…done.
smoke…done.
hotrod…done.
oasis…done.
beach…done.
steel…done.
sky…done.
carbon…done.
pebble…done.
tree…done.
lavender…done.
lake…done.
bare…done.
waves…done.
twilight…done.
bones…done.
lemongrass…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.seudominio.com…done.
Creating domain zimbra.seudominio.com…done.
Setting default domain name…done.
Creating domain zimbra.seudominio.com…done.
Creating admin account admin@zimbra.seudominio.com…done.
Creating root alias…done.
Creating postmaster alias…done.
Creating user spam.vnt5c_w4dh@zimbra.seudominio.com…done.
Creating user ham.b0ztjxe5ws@zimbra.seudominio.com…done.
Creating user virus-quarantine.cko_d1xw@zimbra.seudominio.com…done.
Setting spam training and Anti-virus quarantine accounts…done.
Initializing store sql database…done.
Setting zimbraSmtpHostname for zimbra.seudominio.com…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.seudominio.com)

Notify Zimbra of your installation? [Yes] yes
Notifying Zimbra of installation via
http://www.zimbra.com/cgi-bin/notify.cgi?VER=7.1.4_GA_2555_CentOSUNKNOWN_64&MAIL=admin@zimbra.seudominio.com
Notification complete
Starting servers…
done.
Installing common zimlets…
com_zimbra_srchhighlighter…done.
com_zimbra_email…done.
com_zimbra_social…done.
com_zimbra_webex…done.
com_zimbra_linkedin…done.
com_zimbra_phone…done.
com_zimbra_attachcontacts…done.
com_zimbra_cert_manager…done.
com_zimbra_bulkprovision…done.
com_zimbra_dnd…done.
com_zimbra_url…done.
com_zimbra_attachmail…done.
com_zimbra_date…done.
com_zimbra_adminversioncheck…done.
Finished installing common zimlets.
Restarting mailboxd…done.
Setting up zimbra crontab…done.
Moving /tmp/zmsetup.07252012-114620.log to /opt/zimbra/log
Configuration complete – press return to exit

Agora vamos ativar o Instant Messenger, que por padrão vem desativado na versão 7.0:
su -
su zimbra
zmprov mcf zimbraXMPPEnabled TRUE
zmprov mc default zimbraFeatureIMEnabled TRUE
zmprov mc default zimbraFeatureInstantNotify TRUE
zmprov mc default zimbraPrefIMAutoLogin TRUE

Para acesso ao webmail do zimbra acesse:
http://zimbra.seudominio.com
Para acesso ao Admin do Zimbra acesse:
https://zimbra.seudominio.com:7071
Login: admin
Senha: (aquela que configurou na instalação)

Pronto, Zimbra no CentOS 6!!
A Interface administrativa é muito simples e fácil de gerenciar.
Um sistema de e-mail completo com webmail, calendário, contatos, tudo centralizado, e o melhor, a Instalação é simples!

















































































Postar um comentário