技術(shù)員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機(jī)純凈版,64位旗艦版,綠色軟件,免費(fèi)軟件下載基地!

當(dāng)前位置:主頁 > 教程 > 服務(wù)器類 >

Zimbra8.x郵件服務(wù)器安裝及配置

來源:技術(shù)員聯(lián)盟┆發(fā)布時(shí)間:2018-10-13 06:21┆點(diǎn)擊:

  下載說明:

  1. 版本:

  zimbra有兩個(gè)大版本:Open Source Edition和 Network Edition (Starter/Standard/Professional),其中前者免費(fèi),后者收費(fèi),

  2. 環(huán)境(以下網(wǎng)絡(luò)及DNS信息請根據(jù)實(shí)際情況填寫):

  OS:Ubuntu Server 12.04 x64

  hostname:mail

  domain:sunnie.com

  address:192.168.1.5

  netmask:255.255.255.0

  gateway:192.168.1.1

  nameserver:192.168.1.2

  3. 配置DNS(必須)

  # nano/etc/bind/named.conf.local

  添加如下內(nèi)容:

  zone "example.com"{

  type master;

  file "/etc/bind/example.com";

  };

  # nano/etc/bind/example.com

  添加如下內(nèi)容:

  $TTL 604800

  @ IN SOA @ mail.local.(

  20131212 ; Serial

  604800 ; Refresh

  86400 ; Retry

  2419200 ; Expire

  604800) ; Negative Cache TTL

  ;

  @ IN NS mail

  @ IN MX 10 mail

  mail IN A 192.168.1.5

  # invoke-rc.d bind9 restart

  4. 將Zimbra服務(wù)器上的臨時(shí)DNS換成正式DNS,并重啟服務(wù)器

  # nano /etc/resolv.conf

  nameserver 192.168.1.5

  # reboot

  5. 安裝Zimbra8.0.5

  a)將zcs-8.0.5_GA_5839.UBUNTU12_64.20130910124038.tgz用FTP上傳至Ubuntu Server系統(tǒng)的/data/目錄下

  b)安裝Zimbra相關(guān)組件:

  #aptitude install sudo libidn11 libpcre3 libgmp3c2 libperl5.14 libexpat1 perl5 sysstat sqlite3 file pax

  c)配置DNS,并重啟服務(wù)器

  # nano /etc/resolvconf/resolv.conf.d/base

  nameserver 192.168.60.136

  # reboot

  d)安裝:

  # cd /data/

  # tar zxvf zcs-8.0.5_GA_5839.UBUNTU12_64.20130910124038.tgz

  # cd zcs-8.0.5_GA_5839.UBUNTU12_64.20130910124038

  # ./install.sh

  安裝過程中會(huì)有如下提示:

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

  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] y

  Install zimbra-proxy [N] y

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

  Change domain name? [Yes] no

  選擇3

  然后再選擇4

  輸入admin密碼,此處我的密碼是zimbra

  選擇 r 回到上級目錄

  選擇s

  要求保存文件時(shí),直接回車即可

  選擇a 應(yīng)用所有配置

  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.9213]

  Saving config in /opt/zimbra/config.9213…done.

  The system will be modified - continue? [No] yes

  Notify Zimbra of your installation? [Yes] no

  Configuration complete - press return to exit 回車退出即可

  e)修改/opt/zimbra/.bashrc

  # nano /opt/zimbra/.bashrc

  找到PATH,在等號(hào)最前面添加/usr/share/file:最后形式如下:PATH=http://www.3lian.com/usr/share/file:${ZIMBRA_HOME}/bin:${ZIMBRA_HOME}/postfix/sbin:…

  f)重啟服務(wù)器

  # reboot

  4)客戶端登錄

  https://192.168.1.5

  用戶名:admin

  密碼:zimbra (剛剛修改的admin密碼)

  5)測試

  a) 外發(fā)郵件:

  現(xiàn)在假設(shè)登錄服務(wù)器192.168.1.5,紅色字體部分是需要我們手動(dòng)輸入的內(nèi)容

  測試步驟如下:

  telnet 192.168.1.5 25

  Trying 192.168.1.5…

  Connected to 192.168.1.5 (192.168.1.5)。

  Escape character is '^]'.

  220 mail.example.com ESMTP Postfix

  helo example.com

  250 mail.example.com

  mail from:

  250 2.1.0 Ok

  rcpt to:

  250 2.1.5 Ok

  data

  354 End data with .

  Subject: this is a test mail

  This is test mail content

  .

  250 2.0.0 Ok: queued as 88B3B2A68032

  quit

  221 2.0.0 Bye

  Connection closed by foreign host.

  這樣郵件就發(fā)送出去了,你可以登錄你的收件郵件看看有沒有收到郵件。如果收到郵件,表示一切正常,結(jié)束。

  b) 內(nèi)發(fā)郵件

  步驟同上,只需將mail from所示的發(fā)件人和rcpt to所示的收件人郵箱互換即可

  至此,zimbra8.0.5集成郵件服務(wù)器搭建完成