Zimbra 安装笔记

Summary: Author: 张亚飞 | 阅读时间: 3 minute read | Published: 2014-08-08
Filed under Categories: DevOpsTags: Linux, Server, Software, DevOps,

Zimbra 安装笔记

不错的 Zimbra 开发者博客

详细安装步骤

  • 前期准备
sudo apt update
sudo apt upgrade
sudo apt install sudo libpcre3 libgmp3c2
sudo apt install libgmp3-dev sysstat libexpat1 wget netcat-openbsd pax sqlite3
sudo apt remove sendmail sendmail-bin
  • 下载安装

https://www.zimbra.com/downloads/zimbra-collaboration-open-source/

/opt/data

wget https://files.zimbra.com/downloads/8.7.1_GA/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114.tgz
tar xzvf zcs*
cd zcs*
  • 设置DNS记录

在开始架设邮件服务器之前你首先要设置DNS记录.Zimbra会自动检测DNS,如果不能正常解析,Zimbra的安装过程会终止.

至少要添加MX和A记录,例如:

example.com.         IN    MX   10 mail.example.com.
mail.example.com.    IN    A    your_server_ip_addr
  • 我的 ms.coam.co 配置
coam.co.         IN    MX   10 ms.coam.co.
ms.coam.co.    IN    A    103.37.147.250
ms.coam.co.    IN    MX   10 ms.coam.co.
Tue Jan 10 09:44:45 coam@ms:~$ hostname
ms
Tue Jan 10 09:45:06 coam@ms:~$ sudo vi /etc/hosts
ff02::1 ip6-allnodes
#       The     following       lines   are     desirable       for     IPv6    capable hosts
ff02::2 ip6-allrouters
::1     localhost       ip6-localhost   ip6-loopback
#172.16.27.224  coamer.cloud.mos        ms
127.0.0.1       localhost
103.37.147.250 ms.coam.co ms
  • 查看正确的 dns 配置记录
Tue Jan 10 09:44:09 coam@ms:~$ nslookup ms.coam.co
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	ms.coam.co
Address: 103.37.147.250
Tue Jan 10 09:44:03 coam@ms:~$ dig ms.coam.co

; <<>> DiG 9.10.3-P4-Ubuntu <<>> ms.coam.co
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2284
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ms.coam.co.			IN	A

;; ANSWER SECTION:
ms.coam.co.		361	IN	A	103.37.147.250

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 10 09:44:09 CST 2017
;; MSG SIZE  rcvd: 44
  • 安装过程配置
Operations logged to /tmp/zmsetup.20170110-094005.log
Installing LDAP configuration database...done.
Setting defaults...	MX: ms.coam.co (103.37.147.250)

	Interface: 172.16.27.224
	Interface: 103.37.147.250
	Interface: 127.0.0.1
	Interface: ::1
		103.37.147.250
		103.37.147.250
done.
Checking for port conflicts
Port conflict detected: 80 (zimbra-store)
Port conflict detected: 53 (zimbra-dnscache)
Port conflict detected: 443 (zimbra-store)
Port conflict detected: 80 (zimbra-store)
Port conflict detected: 53 (zimbra-dnscache)
Port conflict detected: 443 (zimbra-store)
Port conflicts detected! - Press Enter/Return key to continue ^@^@

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                           Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-dnscache:                         Enabled
******* +Master DNS IP address(es):            UNSET
        +Enable DNS lookups over TCP:          yes
        +Enable DNS lookups over UDP:          yes
        +Only allow TCP to communicate with Master DNS: no

   6) zimbra-snmp:                             Enabled
   7) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@ms.coam.co
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.dpz6hwas@ms.coam.co
        +Enable automated spam training:       yes
        +Spam training user:                   spam.qw6aslkqj6@ms.coam.co
        +Non-spam(Ham) training user:          ham.o0dadp2uz@ms.coam.co
        +SMTP host:                            ms.coam.co
        +Web server HTTP port:                 8080
        +Web server HTTPS port:                8443
        +Web server mode:                      https
        +IMAP server port:                     7143
        +IMAP server SSL port:                 7993
        +POP server port:                      7110
        +POP server SSL port:                  7995
        +Use spell check server:               yes
        +Spell server URL:                     http://ms.coam.co:7780/aspell.php
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@ms.coam.co
        +Version update source email:          admin@ms.coam.co
        +Install mailstore (service webapp):   yes
        +Install UI (zimbra,zimbraAdmin webapps): yes

   8) zimbra-spell:                            Enabled
   9) zimbra-proxy:                            Enabled
  10) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit

zimbra 配置 /opt/zimbra/config.26215

具体配置参照

Message: system failure: exception during auth {RemoteManager: zimbraxxxx.domain.net->zimbra@zimbraxxxx.domain.net:22} Error code: service.FAILURE Details:soap:Receiver

修改 zimbra 默认 ssh 端口为 22312

sudo /opt/zimbra/bin/zmprov mcf zimbraRemoteManagementPort 22312
sudo ./install.sh -u

参考列表

Comments

Cor-Ethan, the beverage → www.iirii.com