Mostrando entradas con la etiqueta servidor de correo. Mostrar todas las entradas
Mostrando entradas con la etiqueta servidor de correo. Mostrar todas las entradas

jueves, 11 de octubre de 2012

zimbra servidor de correo



Instalar y configurar servidor de correo Zimbra


ACLARACIÓN:
Si bien esta versión esta basada en Zimbra7 y Ubuntu10,  También se instalo la versión de  Zimbra 8.0 en Ubuntu12.04LTS

Las imagenes fueron bajadas de:
Ubuntu-server = http://www.ubuntu.com/download/server
Zimbra OpenSource = http://www.zimbra.com/downloads/os-downloads.html
ambos 64Bits






Requerimientos Mínimos
CPU: 32/64bits 2.0Ghz o superior.
RAM: 1 Gb
HD:  5Gb para el sistema base, los y demas
HD:  120Gb para almacenamiento de correos (Promedio 60 a 80 usuarios)
SO Testeados: Debian6 / Ubuntu10.04

Datos generales:
RED: 192.168.1.0/24
IP:  192.168.1.x
DNS: 200.50.1.200



Instalar Ubuntu 10.04 LTS


Paquetes durante la instalación:
- OpenSSH Server


Actualizar e instalar paquetes y dependencias
root@zimbra:~# apt-get update && apt-get upgrade -y
root@zimbra:~# apt-get install -y sudo libidn11 libpcre3 libexpat1 libgmp3c2 libperl5.10 sysstat sqlite3

-y = autoacepta las preguntas de "desea instalar el paquete..."


Modificar el Hosts:
root@zimbra:~# vim /etc/hosts
192.168.1.x     zimbra.tudominio.gov.ar zimbra


Modificar el HostName:
root@zimbra:~# vim /etc/hostname
zimbra.tudominio.gov.ar


Modificar el Resolv:
root@zimbra:~# vim /etc/resolv.conf
nameserver 192.168.1.1



Copiamos el paquete de Zimbra para instalar

Copiar por scp el paquete al server:
jonathan@cfh-10:26:30 ~/Descargas $ scp -rv zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201.tgz root@192.168.1.x:/root/


Entrar al server:
jonathan@cfh-10:45:12 ~ $ ssh root@192.168.1.x


Desempaquetar:
root@zimbra:~# tar -xvf zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201.tgz
root@zimbra:~# ls -lha
total 586M
drwxr-xr-x  7  503  503 4,0K 2012-08-16 02:24 zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201
-rw-r--r--  1 root root 586M 2012-09-28 10:36 zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201.tgz
root@zimbra:~#
root@zimbra:~#
root@zimbra:~# cd zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201
root@zimbra:~/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201#
root@zimbra:~/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201#
root@zimbra:~/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201# ls -lha
total 56K
drwxr-xr-x 7  503  503 4,0K 2012-08-16 02:24 .
drwx------ 6 root root 4,0K 2012-09-28 10:39 ..
drwxr-xr-x 2  503  503 4,0K 2012-08-16 02:24 bin
drwxr-xr-x 2  503  503 4,0K 2012-08-16 02:24 data
drwxr-xr-x 3  503  503 4,0K 2012-08-16 02:24 docs
-rwxr-xr-x 1  503  503 8,0K 2012-08-16 02:24 install.sh
drwxr-xr-x 2  503  503 4,0K 2012-08-16 02:24 packages
-r--r--r-- 1  503  503  369 2012-08-16 02:24 readme_binary_en_US.txt
-r--r--r-- 1  503  503 8,4K 2012-08-16 02:24 readme_source_en_US.txt
-r--r--r-- 1  503  503  428 2012-08-16 02:24 README.txt
drwxr-xr-x 3  503  503 4,0K 2012-08-16 02:24 util
root@zimbra:~/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201#



Entrar a la carpeta para instalar:
root@zimbra:~# cd  zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201



Instalar:
root@zimbra:~/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201# ./install.sh

Operations logged to /tmp/install.log.3956
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: netcat-openbsd-1.89-3ubuntu2
    FOUND: sudo-1.7.2p1-1ubuntu5.4
    FOUND: libidn11-1.15-2
    FOUND: libpcre3-7.8-3build1
    FOUND: libgmp3c2-2:4.3.2+dfsg-1ubuntu1
    FOUND: libexpat1-2.0.1-7ubuntu1.1
    FOUND: libstdc++6-4.4.3-4ubuntu5.1
    FOUND: libperl5.10-5.10.1-8ubuntu2.1
Checking for suggested prerequisites...
    FOUND: perl-5.10.1
    FOUND: sysstat
    FOUND: sqlite3
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

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.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
   zimbra-ldap......zimbra-ldap_7.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
   zimbra-logger......zimbra-logger_7.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
   zimbra-mta......zimbra-mta_7.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
   zimbra-snmp......zimbra-snmp_7.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
   zimbra-store......zimbra-store_7.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
   zimbra-apache......zimbra-apache_7.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
   zimbra-spell......zimbra-spell_7.2.1_GA_2790.UBUNTU10_64_amd64.deb...done
Operations logged to /tmp/zmsetup.09282012-114827.log
Installing LDAP configuration database...done.
Setting defaults...




DNS ERROR - none of the MX records for tudominio.gov.ar
resolve to this host
It is suggested that the MX record resolve to this host

Re-Enter domain name? [Yes] zimbra.tudominio.gov.ar
A Yes/No answer is required

Re-Enter domain name? [Yes] no
done.
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@tudominio.gov.ar          
******* +Admin Password                        UNSET                        
       +Anti-virus quarantine user:           virus-quarantine.75umowbxd@tudominio.gov.ar
       +Enable automated spam training:       yes                          
       +Spam training user:                   spam.ixpcwjwwe@tudominio.gov.ar 
       +Non-spam(Ham) training user:          ham.g2zhh6k2z@tudominio.gov.ar  
       +SMTP host:                            zimbra.tudominio.gov.ar         
       +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.tudominio.gov.ar: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@tudominio.gov.ar          
       +Version update source email:          admin@tudominio.gov.ar          

  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


Store configuration

  1) Status:                                  Enabled                      
  2) Create Admin User:                       yes                          
  3) Admin user to create:                    admin@tudominio.gov.ar          
** 4) Admin Password                           UNSET                        
  5) Anti-virus quarantine user:              virus-quarantine.75umowbxd@tudominio.gov.ar
  6) Enable automated spam training:          yes                          
  7) Spam training user:                      spam.ixpcwjwwe@tudominio.gov.ar 
  8) Non-spam(Ham) training user:             ham.g2zhh6k2z@tudominio.gov.ar  
  9) SMTP host:                               zimbra.tudominio.gov.ar         
 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.tudominio.gov.ar: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@tudominio.gov.ar          
 24) Version update source email:             admin@tudominio.gov.ar          

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

Password for admin@tudominio.gov.ar (min 6 characters): [JLsszLGs]  ADMIN_PASSWORD


Store configuration

  1) Status:                                  Enabled                      
  2) Create Admin User:                       yes                          
  3) Admin user to create:                    admin@tudominio.gov.ar          
  4) Admin Password                           set                          
  5) Anti-virus quarantine user:              virus-quarantine.75umowbxd@tudominio.gov.ar
  6) Enable automated spam training:          yes                          
  7) Spam training user:                      spam.ixpcwjwwe@tudominio.gov.ar 
  8) Non-spam(Ham) training user:             ham.g2zhh6k2z@tudominio.gov.ar  
  9) SMTP host:                               zimbra.tudominio.gov.ar         
 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.tudominio.gov.ar: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@tudominio.gov.ar          
 24) Version update source email:             admin@tudominio.gov.ar          

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)  

Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.6811]
Saving config in /opt/zimbra/config.6811...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup.09282012-114827.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.
Creating server entry for zimbra.tudominio.gov.ar...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on zimbra.tudominio.gov.ar...done.
Adding zimbra.tudominio.gov.ar to zimbraMailHostPool in default COS...done.
Installing webclient skins...
    hotrod...done.
    steel...done.
    twilight...done.
    smoke...done.
    lemongrass...done.
    tree...done.
    sky...done.
    sand...done.
    pebble...done.
    lake...done.
    waves...done.
    carbon...done.
    lavender...done.
    beach...done.
    oasis...done.
    bones...done.
    bare...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.tudominio.gov.ar...done.
Creating domain tudominio.gov.ar...done.
Setting default domain name...done.
Creating domain tudominio.gov.ar...already exists.
Creating admin account admin@tudominio.gov.ar...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.ixpcwjwwe@tudominio.gov.ar...done.
Creating user ham.g2zhh6k2z@tudominio.gov.ar...done.
Creating user virus-quarantine.75umowbxd@tudominio.gov.ar...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for zimbra.tudominio.gov.ar...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.2.1_GA_2790_UBUNTU10_64)
    The ADMIN EMAIL ADDRESS created (admin@tudominio.gov.ar)


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


Moving /tmp/zmsetup.09282012-114827.log to /opt/zimbra/log
Configuration complete - press return to exit

root@zimbra:~/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201#


Reiniciar y realizar un snapshot:
root@zimbra:~/zcs-7.2.1_GA_2790.UBUNTU10_64.20120815212201# reboot


Una vez reiniciado el server entrar como user Zimbra:

root@zimbra:~# su - zimbra
zimbra@zimbra:~$ zmcontrol start



Posibles Errores: error 550

ERROR 550 – Relaying not allowed (Relevo no permitido)
Problema: El error 550 significa que el servidor de correo saliente no le reconoce como usuario. La mayoría de  proveedores de servicios de Internet sólo permiten el envío de correo cuando se encuentre conectado a ellos, con  el fin de evitar que los servidores los empleen remitentes de correo masivo.
Solución: Cambie el servidor SMTP al que se corresponda con el proveedor de servicios de Internet que emplee para conectarse.Ver también



Imagenes:











Help:
http://wiki.zimbra.com/wiki/Ports
http://wiki.zimbra.com/wiki/Outgoing_SMTP_Authentication
http://www.zimbra.com/forums/forum.php
http://www.zimbra.com/forums/administrators/58394-cant-send-mails-internet-same-domain-name.html
http://www.zimbra.com/forums/spanish/37965-solved-problemas-al-enviar-correos-un-dominio-en-particular.html
http://gallery.zimbra.com/type/zimlet/recent