19 Nov 2012

Install Zimbra Mail di Ubuntu

Zimbra adalah Suatu aplikasi email server berbasis Open Source.
Disini penulis mencoba berbagi ilmu tentang cara instalasi Zimbra di ubuntu 10.04 atau 12.04
Persiapan Bahan

Ubuntu Server 10.04

DNS Server

1 IP public

1 IP Private

DMZ Server {Firewall}

Untuk instalasi diatas bisa melihat artike selanjutnya

Sebelum Menginstall Zimbra, setting hostname email zimbra yang diinginkan di record DNS dalam dan DNS luar { nb: jika sudah ada DNS Server }

==================================================================================================
DNS Dalam {tambahkan seperti kalimat bercetak tebal}:

$TTL 86400
@         IN      SOA      dns.hanang.com. root.hanang.com. (
                           2012111903 ;serial
                           28800
                           14406
                           360000
                           86400
                           )

                           IN    NS         dns.hanang.com.
                           IN    MX   10    mail.hanang.com.
mail                       IN    A          192.168.1.27
                           IN    MX   40    mail.hanang.com.

==================================================================================================

DNS Luar {tambahkan seperti kalimat bercetak tebal} :

$TTL    3600

@                       IN      SOA     ns1.hanang.com.  (
                                        2012111906 ; Serial
                                        10800   ; Refresh
                                        1800    ; Retry
                                        604800  ; Expire
                                        86400 ) ; Minimum TTL

                                        IN      NS      ns1.hanang.com.
                                        IN      MX 10   mail.hanang.com.
mail                                    IN      A       123.4.56.78
                                        IN      MX 300  mail.hanang.com.

=============================================================================================

set pada DMZ Server {misal : DMZ Server menggunakan OS FreeBSD + Packet Filter (PF) edit pada : rc.conf dan pf.conf }

edit pada rc.conf {tambahkan seperti kalimat bercetak tebal} :

pf_enable="YES"
static_routes="lan"
route_lan="-net 192.168.0.0/16 192.168.1.254"
defaultrouter="123.4.56.254"
hostname="DMZ.unila.ac.id"
ifconfig_em0="inet 192.168.1.234  netmask 255.255.255.0"
ifconfig_em1="inet 123.4.56.77  netmask 255.255.255.0"
ifconfig_em1_alias0="inet 123.4.56.78 netmask 255.255.255.0" #Alias IP Public Mail

======================================================================================

edit pada pf.conf {tambahkan seperti kalimat bercetak tebal} ;

eIF  = "em1"  ## IP Public
iIF  = "em0"  ## IP Private 192.168.xxx.xxx
dIF  = "em2"  ## DMZ Server - Farm
rdr on  $eIF inet proto tcp from     any   to    123.4.56.78   port {10000,995,993,7072,7110,7995,7143,7993,465,587,143,25,80,110,443}  ->  192.168.1.27 #redirect
nat on  $eIF from 192.168.1.27 to    any   ->    123.4.56.78   #NAT

SAATNYA INSTALL ZIMBRA

Setelah Kebutuhan Pra Instalasi Selesai, Sekarng kita kembalu ke server ubuntu yang sudah kita siapkan untuk mail server

sudo apt-get update 
sudo apt-get dist-upgrade 
sudo apt-get autoremove 
sudo apt-get install openssh-server
apt-get install libperl-dev sysstat sqlite3 sudo shutdown -r now

download software zimbra

wget http://files.zimbra.com/downloads/7.1.3_GA/zcs-7.1.3_GA_3346.UBUNTU10_64.20110928134610.tgz
tar xvfz zcs*.tgz
cd zcs*

Install Zimbra

sudo ./install.sh

Operations logged to /tmp/install.log.1615 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.3      
          FOUND: libidn11-1.15-2      
          FOUND: libpcre3-7.8-3build1      
          FOUND: libgmp3c2-2:4.3.2+dfsg-1ubuntu1      
          FOUND: libexpat1-2.0.1-7ubuntu1      
          FOUND: libstdc++6-4.4.3-4ubuntu5      
          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.1.3_GA_3346.UBUNTU10_64_amd64.deb...     
          zimbra-ldap......zimbra-ldap_7.1.3_GA_3346.UBUNTU10_64_amd64.deb...done     
          zimbra-logger......zimbra-logger_7.1.3_GA_3346.UBUNTU10_64_amd64.deb...done     
          zimbra-mta......zimbra-mta_7.1.3_GA_3346.UBUNTU10_64_amd64.deb...done     
          zimbra-snmp......zimbra-snmp_7.1.3_GA_3346.UBUNTU10_64_amd64.deb...done     
          zimbra-store......zimbra-store_7.1.3_GA_3346.UBUNTU10_64_amd64.deb...done     
          zimbra-apache......zimbra-apache_7.1.3_GA_3346.UBUNTU10_64_amd64.deb...     
          zimbra-spell......zimbra-spell_7.1.3_GA_3346.UBUNTU10_64_amd64.deb...done 
Operations logged to /tmp/zmsetup.11042011-195302.log Installing LDAP configuration database...done. 
Setting defaults...   
DNS ERROR resolving MX for mail.hanang.com
It is suggested that the domain name have an MX record configured in DNS 
Change domain name? [Yes] 
Create domain: [mail.hanang.com] hanang.com        
MX: mail.hanang.com (192.168.1.27)           
Interface: 192.168.1.27         
Interface: 127.0.0.1 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:                 [email protected] ******* 
             +Admin Password                        UNSET         
             +Anti-virus quarantine user:           [email protected]       
             +Enable automated spam training:       yes         
             +Spam training user:                   [email protected]     
             +Non-spam(Ham) training user:          [email protected]         
             +SMTP host:                            mail.hanang.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://mail.hanang.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:    [email protected]        
+Version update source email:          [email protected]      
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)

Tekan Tombol 3 untuk konfigurasi password Admin (nomer 4) kemudian tekan "r" untuk kembali dan tekan tombol "a" untuk menggunakan konfigurasi 

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) a
Save configuration data to a file? [Yes] Yes
Save config in file: [/opt/zimbra/config.8588]
Saving config in /opt/zimbra/config.8588...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup.11042011-205010.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 mail.hanang.com...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.hanang.com...done.
Adding hanang.mail.com to zimbraMailHostPool in default COS...done.
Installing webclient skins...
        smoke...done.
        pebble...done.
        sky...done.
        sand...done.
        bones...done.
        lavender...done.
        tree...done.
        lemongrass...done.
        carbon...done.
        steel...done.
        bare...done.
        waves...done.
        lake...done.
        beach...done.
        twilight...done.
        hotrod...done.
        oasis...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 mail.hanang.com...done.
Creating domain hanang.com...done.
Setting default domain name...done.
Creating domain hanang.com...already exists.
Creating admin account [email protected]
Creating root alias...done.
Creating postmaster alias...done.
Creating user [email protected]
Creating user [email protected]
Creating user [email protected]
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.hanang.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.3_GA_3346_UBUNTU10_64)
        The ADMIN EMAIL ADDRESS created ([email protected])

Notify Zimbra of your installation? [Yes] Yes
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=7.1.3_GA_3346_UBUNTU10_64&[email protected]

Notification complete

Starting servers...done.
Installing common zimlets...
        com_zimbra_bulkprovision...done.
        com_zimbra_attachcontacts...done.
        com_zimbra_linkedin...done.
        com_zimbra_cert_manager...done.
        com_zimbra_webex...done.
        com_zimbra_date...done.
        com_zimbra_social...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_phone...done.
        com_zimbra_email...done.
        com_zimbra_url...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_dnd...done.
        com_zimbra_attachmail...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.

Moving /tmp/zmsetup.11042011-205010.log to /opt/zimbra/log

Configuration complete - press return to exit

setelah Instalasi Selesai.test email zimbra dengan mengakses https://mail.hanang.com:7071 (WEB ADMIN CONSOLE) masukan mail admin ([email protected]) dan pasword

zimbra-02
zimbra-03 
 



kemudian,test email zimbra client dengan mengakses https://mail.hanang.com



zimbra-021

zimbra-041
 

Leave a Reply