Thursday, August 9, 2012

Membuat Mail server Zimbra di UBUNTU

langsung aja ane mw sharing sedikit ilmu yang didapat kemarin, Membuat Mail server zimbra di Ubuntu server 10.04.

cekidotttt.....
Langkah pertama yang qta lakukan adalah membuat dns server terlebih dahulu.


Pertama Mensetting IP Address, Netmask, Network, Broadcast dan sebagainya (eth0) pada file /etc/network/interfaces.

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.2.157
        netmask 255.255.255.0
network 192.168.2.0
        broadcast 192.168.2.255
        gateway 192.168.2.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.2.254
        dns-search mail.com

setting Hosts pada file /etc/hosts:
Code:
127.0.0.1       localhost.localdomain.com localhost
192.168.2.157   zimbra.mail.com zimbra

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

setting hostname pada file /etc/hostname:
Code:
zimbra
setting Resolver pada file /etc/resolv.conf:
Code:
search mail.com
nameserver 192.168.2.157  ==> ip pc
nameserver 192.168.2.254 ==> ip dns
restart layanan network /etc/init.d/networking restart, setelah itu qt menginstal DNS Server.

Instal bind9:
Code:
apt-get install bind9

setelah selesai, Menambahkan nomor DNS pada file /etc/bind/named.conf.options untuk dijadikan sebagai forwarders atau DNS lokal.
Code:
options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

    forwarders {
        192.168.2.254;  //masukan ip dns
        };

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};

Membuat file baru untuk zone forward pada direktori /etc/bind/db.mail.com :
Code:
;
; BIND data file for local loopback interface
;
$TTl 604800
@            IN      SOA     zimbra.mail.com. admin.mail.com. (
                                    2011081204 ; serial
                                    604800 ; Refresh
                                    86400 ; Retry
                                    2419200 ; Expire
                                    604800 ) ; Negative Cache TTL
;
@            IN      NS      zimbra.mail.com.
               IN      MX      10      zimbra.mail.com.
           IN      A        192.168.2.157
zimbra    IN      A        192.168.2.157

Membuat file baru untuk zone reverse pada direktori /etc/bind/db.192 :
Code:
;
;
; BIND reserve data file for local loopback interface
;
$TTL 604800
@        IN      SOA     zimbra.mail.com. admin.mail.com. (
                                2011081204      ; serial
                                604800          ; Refresh ( 2hour )
                                86400          ; Retry  ( 1hour )
                                2419200         ; Expire ( 1week )
                                604800 )        ; Minimum TTL ( 3hour )
           IN      NS       zimbra.mail.com.
157     IN      PTR     zimbra.mail.com.

Menambah scripts pada file /etc/bind/named.conf.local:
Code:
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "mail.com" {
        type master;
        file "/etc/bind/db.mail.com";
};
zone "2.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/db.192";
};

Merestart layanan bind9
Code:
/etc/init.d/bind9 restart
Mengetes DNS yang sudah di konfigurasi
Code:
nslookup zimbra.mail.com

NEXT qt mulai instal zimbra.Pertama, ambil dulu berkas sumber dari halaman unduh zimbra. Ambil sesuai dengan arsitektur komputer Anda (32 bit atau 64 bit).tapi ada yang perlu ditambahin untuk paket-paket sebelum instalasi zimbra.

Instal paket-paket berikut:
Code:
sudo apt-get install libidn11 libpcre3 libgmp3c2 libexpat1 libstdc++6 libstdc++5 libltdl3 sysstat sqlite3

contoh versi yang ane pake:
Code:
wget http://h.yimg.com/lo/downloads/7.0.1_GA/zcs-7.0.1_GA_3105.UBUNTU10_64.20110304205444.tgz
ekstark yang dah didonlot tadi
Code:
tar zxvf zcs-7.0.1_GA_3105.UBUNTU10_64.20110304205444
lalu qt lakukan proses instalasi.
Code:
cd zcs-7.0.1_GA_3105.UBUNTU10_64.20110304205444
./install.sh

pada proses instalasi qt cm ketik yes aj.berikut tampilan pada proses instalasi
Code:
Operations logged to /tmp/install.log.12383
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-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-convertd...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


Press Return to continue
tekan enter aj dsitu
Code:
Checking for prerequisites...
     FOUND: NPTL
     FOUND: sudo-1.6.9p10-1ubuntu3.4
     FOUND: libidn11-1.1-1
     FOUND: libpcre3-7.4-1ubuntu2.1
     FOUND: libgmp3c2-2:4.2.2+dfsg-1ubuntu2
     FOUND: libexpat1-2.0.1-0ubuntu1
     FOUND: libstdc++6-4.2.4-1ubuntu4
     FOUND: libstdc++5-1:3.3.6-15ubuntu6
     FOUND: libltdl3-1.5.26-1ubuntu1
Checking for suggested prerequisites...
    FOUND: perl-5.8.8
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-proxy


Select the packages to install

Install zimbra-ldap [Y] --tekan enter--

Install zimbra-logger [Y] --tekan enter--

Install zimbra-mta [Y] --tekan enter--

Install zimbra-snmp [Y] --tekan enter--

Install zimbra-store [Y] --tekan enter--

Install zimbra-apache [Y] --tekan enter--

Install zimbra-spell [Y] --tekan enter--

Install zimbra-proxy [N] --tekan enter--
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] **ketik Y disini**
Lalu zimbra akan melanjutkan dengan menginstal paket-paket yang diperlukan.
Code:
Removing /opt/zimbra
Removing zimbra crontab entry...done.
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.

Finished removing Zimbra Collaboration Suite.

Installing packages

    zimbra-core......zimbra-core_5.0.18_GA_3011.UBUNTU8_i386.deb...done
    zimbra-ldap......zimbra-ldap_5.0.18_GA_3011.UBUNTU8_i386.deb...done
    zimbra-logger......zimbra-logger_5.0.18_GA_3011.UBUNTU8_i386.deb...done
    zimbra-mta......zimbra-mta_5.0.18_GA_3011.UBUNTU8_i386.deb...done
    zimbra-snmp......zimbra-snmp_5.0.18_GA_3011.UBUNTU8_i386.deb...done
    zimbra-store......zimbra-store_5.0.18_GA_3011.UBUNTU8_i386.deb...done
    zimbra-apache......zimbra-apache_5.0.18_GA_3011.UBUNTU8_i386.deb...done
    zimbra-spell......zimbra-spell_5.0.18_GA_3011.UBUNTU8_i386.deb...done
Operations logged to /tmp/zmsetup.07152009-091904.log
Setting defaults...

Setelah ini akan muncul pesan seperti di bawah. Kita menggunakan hostname zimbra.mail.com, dan yang kita set record mx adalah domain mail.com, karena kita memang inginnya zimbra menghosting domain mail.com.
Code:
NS ERROR resolving MX for zimbra.perusahaan.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] --tekan enter--
Create Domain: [zimbra.perusahaan.com] --ketik perusahaan.com disini---
    MX: zimbra.perusahaan.com (192.168.56.113)

    Interface: 10.0.2.15
    Interface: 192.168.56.113
    Interface: 127.0.0.1
done.

Sekarang Anda dihadapkan dengan menu di bawah. Perhatikan di bagian yang diberi tanda bintang (*******) itu ada di menu nomor tiga. Jadi Anda pilih atau ketik 3, kemudian tekan enter.
Code:
Store configuration

   1) Status:                                  Enabled                      
   2) Create Admin User:                       yes                          
   3) Admin user to create:                    admin@perusahaan.com         
** 4) Admin Password                           UNSET                        
   5) Enable automated spam training:          yes                          
   6) Spam training user:                      spam.tdp4n_la5h@perusahaan.com
   7) Non-spam(Ham) training user:             ham.owo5zfr2q@perusahaan.com 
   8) Global Documents Account:                wiki@perusahaan.com          
   9) SMTP host:                               zimbra.perusahaan.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.perusahaan.com:7780/aspell.php
  19) Configure store for use with reverse mail proxy: FALSE                        
  20) Configure store for use with reverse web proxy: FALSE                        

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

Sekarang Anda dihadapkan dengan menu berikutnya. Sama seperti tadi, perhatikan bagian yang diberi tanda bintang (**), itu ada di menu nomor 4. Jadi Anda ketik 4, lalu tekan enter.
Code:
Store configuration

   1) Status:                                  Enabled                      
   2) Create Admin User:                       yes                          
   3) Admin user to create:                    admin@perusahaan.com         
** 4) Admin Password                           UNSET                        
   5) Enable automated spam training:          yes                          
   6) Spam training user:                      spam.tdp4n_la5h@perusahaan.com
   7) Non-spam(Ham) training user:             ham.owo5zfr2q@perusahaan.com 
   8) Global Documents Account:                wiki@perusahaan.com          
   9) SMTP host:                               zimbra.perusahaan.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.perusahaan.com:7780/aspell.php
  19) Configure store for use with reverse mail proxy: FALSE                        
  20) Configure store for use with reverse web proxy: FALSE                        

Select, or 'r' for previous menu [r]
Sekarang Anda diminta menuliskan password untuk user Admin. Jika Anda tekan enter, default passwordnya adalah yang ada di dalam kurung kotak. Silakan Anda ketik password yang Anda ingin set.
Code:
Password for admin@perusahaan.com (min 6 characters): [hINYHBUe5] **ketik  passwd**
Sekarang semua sudah diset dengan baik. Anda tikan tekan r
Code:
Store configuration

   1) Status:                                  Enabled                      
   2) Create Admin User:                       yes                          
   3) Admin user to create:                    admin@perusahaan.com         
   4) Admin Password                           set                          
   5) Enable automated spam training:          yes                          
   6) Spam training user:                      spam.tdp4n_la5h@perusahaan.com
   7) Non-spam(Ham) training user:             ham.owo5zfr2q@perusahaan.com 
   8) Global Documents Account:                wiki@perusahaan.com          
   9) SMTP host:                               zimbra.perusahaan.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.perusahaan.com:7780/aspell.php
  19) Configure store for use with reverse mail proxy: FALSE                        
  20) Configure store for use with reverse web proxy: FALSE                        

Select, or 'r' for previous menu [r]
Code:
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) --ketik a disini, lalu enter--
Save configuration data to a file? [Yes] --tekan enter--
Save config in file: [/opt/zimbra/config.17874]
Saving config in /opt/zimbra/config.17874...done.
The system will be modified - continue? [No] --ketik Yes disini, lalu enter--
Dan tunggu zimbra mengkonfigurasi sistem Anda sampai selesai. Agak lama prosesnya, jadi Anda harus sedikit bersabar.

Setelah semuanya selesai, Anda bisa mengakses halaman web adminnya di
Code:
https://zimbra.mail.com:7071

dan web client nya di
Code:
http://zimbra.mail.com

Ingat, pakai https bukan http. Loginnya admin, password seperti yang sudah diset sebelumnya.

sekian membuat mail server zimbra dan sebenar tidak sepanjang ini karena ane copy paste pada proses instalasi zimbra ny..

No comments:

Post a Comment

Post a Comment