如何在Ubuntu 16上设置Zimbra Mail Server
Zimbra协作套件具有两种版本:网络版和开源版。
在本教程中,我们将探索最快,最简单的方法来安装zimbra(免费版)邮件服务器以及其他组件,例如LDAP,防我将毒,反垃圾邮件,Amavis(新版)内容检查器,Aspell拼写检查器,MySQL和其他协作功能以及Ajax Webmail客户端。
Zimbra建议在安装过程中禁用防火墙,一旦成功完成安装,请启用防火墙并添加防火墙规则以允许流量进入zimbra邮件服务器。
还建议将ZCS安装在全新系统中。
系统要求
具有至少4 GB 内存的Ubuntu 16.04
Ubuntu服务器IP 172.31.26.109
Ubuntu Server FQDN mail.zimbra-demo.com
DNS服务器IP 172.31.26.109(同一服务器,建议将其保存在网络中的单独服务器中)
网关IP 172.31.0.2
域名zimbra-demo.com
1.配置主机名
编辑/etc/hosts并添加行172.31.26.109 mail.zimbra-demo.com mail。
用我们要使用的IP更改172.31.26.109.
root@mail:~# cat /etc/hosts 127.0.0.1 localhost 172.31.26.109 mail.zimbra-demo.com mail
同时编辑/etc/hostname和“ mail”行
root@mail:~# cat /etc/hostname mail
重新引导系统,并使用命令hostname -f和hostname测试服务器的FQDN。
root@mail:~# hostname -f mail.zimbra-demo.com root@mail:~# hostname mail
如果我们使用任何基于云的托管服务,请确保已将参数preserve_hostname的值设置为true。
2.安装/配置BIND DNS
我们将在将要安装ZCS的系统中安装BIND名称服务器。
我们可以在内部网络的另一个系统中自由安装BIND名称服务器。
通过在终端中执行以下命令来安装bind9.
# sudo apt-get install bind9 bind9utils
现在,编辑文件/etc/bind/named.conf并从转发器中删除“ //”,然后添加DNS服务器IP地址,如下所示。
forwarders { 8.8.8.8; 8.8.4.4; };
root @ mail:~cat /etc/bind/named.conf.options
options { directory "/var/cache/bind"; forwarders { 8.8.8.8; 8.8.4.4; }; dnssec-validation auto; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; };
编辑/etc/bind/named.conf.local并添加以下内容。
zone "zimbra-demo.com" { type master; file "/etc/bind/db.zimbra-demo.com"; }; zone "1.31.172.in-addr.arpa" { type master; file "/etc/bind/db.1.31.172"; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/bind/db.0.0.127"; };
创建和编辑文件/etc/bind/db.zimbra-demo.com并添加以下内容。
根据域名更改文件名。
$TTL 604800 @ IN SOA mail.zimbra-demo.com. admin.zimbra-demo.com. ( 030512 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ); Negative Cache TTL ; @ IN NS mail IN MX 10 mail IN A 172.31.26.109 mail IN A 172.31.26.109
创建并编辑文件/etc/bind/db.0.0.127并添加以下内容。
$TTL 3D @ IN SOA mail.zimbra-demo.com. admin.zimbra-demo.com. ( 2 ; Serial 8H ; Refresh 2H ; Retry 4W ; Expire 1D) ; Minimum TTL NS mail.zimbra-demo.com. 1 PTR localhost.
创建和编辑文件/etc/bind/db.1.31.172并添加以下内容。
$TTL 3D @ IN SOA mail.zimbra-demo.com. admin.zimbra-demo.com. ( 1 ; Serial 8H ; Refresh 2H ; Retry 4W ; Expire 1D) ; Minimum TTL NS zimbra-demo.com. 10 PTR zimbra-demo.com.
重新启动绑定服务
# /etc/init.d/bind9 restart
要配置静态IP,请编辑/etc/network/interfaces并添加以下内容。
根据网络配置更改值。
source /etc/network/interfaces.d/*.cfg auto eth0 iface eth0 inet static address 172.31.26.109 netmask 255.255.255.0 network 172.31.0.0 broadcast 172.31.0.255 gateway 172.31.0.2 dns-search zimbra-demo.com dns-nameservers 172.31.26.109
还编辑文件/etc/resolv.conf并添加以下内容。
nameserver 172.31.26.109 search zimbra-demo.com
现在用dig测试域名服务器dns记录
root @ mail:~dig zimbra-demo.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> zimbra-demo.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33646 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;zimbra-demo.com. IN A ;; ANSWER SECTION: zimbra-demo.com. 604800 IN A 172.31.26.109 ;; AUTHORITY SECTION: zimbra-demo.com. 604800 IN NS mail.zimbra-demo.com. ;; ADDITIONAL SECTION: mail.zimbra-demo.com. 604800 IN A 172.31.26.109 ;; Query time: 1 msec ;; SERVER: 172.31.26.109#53(172.31.26.109) ;; WHEN: Thu Aug 04 04:30:43 UTC 2015 ;; MSG SIZE rcvd: 95
root @ mail:~dig facebook.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> facebook.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22708 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;facebook.com. IN A ;; ANSWER SECTION: facebook.com. 27 IN A 173.252.89.132 ;; AUTHORITY SECTION: . 2574 IN NS g.root-servers.net. . 2574 IN NS e.root-servers.net. . 2574 IN NS a.root-servers.net. . 2574 IN NS m.root-servers.net. . 2574 IN NS i.root-servers.net. . 2574 IN NS h.root-servers.net. . 2574 IN NS d.root-servers.net. . 2574 IN NS c.root-servers.net. . 2574 IN NS b.root-servers.net. . 2574 IN NS k.root-servers.net. . 2574 IN NS f.root-servers.net. . 2574 IN NS l.root-servers.net. . 2574 IN NS j.root-servers.net. ;; Query time: 11 msec ;; SERVER: 172.31.26.109#53(172.31.26.109) ;; WHEN: Thu Aug 04 04:32:04 UTC 2015 ;; MSG SIZE rcvd: 268
至此,我们已经配置了服务器和名称服务器的FQDN。
3.下载/安装Zimbra
首先通过在终端中执行以下命令来禁用防火墙。
# sudo service ufw disable OR # sudo service iptables stop
使用wget下载zimbra,解压缩并在解压缩的目录中运行安装程序。
# cd ~ # wget https://files.zimbra.com/downloads/8.7.0_GA/zcs-8.7.0_GA_1659.UBUNTU16_64.20150628202554.tgz # tar xf zcs-8.7.0_GA_1659.UBUNTU16_64.20150628202554.tgz # cd zcs-8.7.0_GA_1659.UBUNTU16_64.20150628202554/ # ./install.sh
现在将开始安装。
请仔细阅读并根据配置回答是/否或者其他值。
WARNING: ZCS is currently only supported on Ubuntu Server 12.04 and 14.04 LTS. You are attempting to install on Ubuntu 16.04.1 LTS which Jan not work. Support will not be provided if you choose to continue. Do you wish to continue? [N] y Operations logged to /tmp/install.log.4P2y60cn Checking for existing installation... zimbra-ldap...NOT FOUND zimbra-logger...NOT FOUND zimbra-mta...NOT FOUND zimbra-dnscache...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-core...NOT FOUND --------------------------------------------------------------------- PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. SYNACOR, INC. ("SYNACOR") 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 this Zimbra Collaboration Suite Software: https://www.zimbra.com/license/zimbra-public-eula-2-6.html --------------------------------------------------------------------- Do you agree with the terms of the software license agreement? [N] y Checking for installable packages Found zimbra-core Found zimbra-ldap Found zimbra-logger Found zimbra-mta Found zimbra-dnscache Found zimbra-snmp Found zimbra-store Found zimbra-apache Found zimbra-spell Found zimbra-memcached Found zimbra-proxy Use Zimbra's package repository [Y] y Configuring package repository Select the packages to install Install zimbra-ldap [Y] y Install zimbra-logger [Y] y Install zimbra-mta [Y] y Install zimbra-dnscache [Y] n Install zimbra-snmp [Y] y Install zimbra-store [Y] y Install zimbra-apache [Y] y Install zimbra-spell [Y] y Install zimbra-memcached [Y] y Install zimbra-proxy [Y] y Checking required space for zimbra-core Checking space for zimbra-store Checking required packages for zimbra-store zimbra-store package check complete. Installing: zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-memcached zimbra-proxy 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/security/limits.conf...done. Finished removing Zimbra Collaboration Server. Installing packages Local packages zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy selected for installation Monitor /tmp/install.log.4P2y60cn for package installation progress Remote package installation started Installing zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-snmp-components zimbra-store-components zimbra-apache-components zimbra-spell-components zimbra-memcached zimbra-proxy-components.... Local package installation started Installing zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy... done Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1514, <DATA> line 755. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1557, <DATA> line 755. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1686, <DATA> line 755. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1727, <DATA> line 755. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1736, <DATA> line 755. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1745, <DATA> line 755. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1754, <DATA> line 755. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/${ <-- HERE zimbra_home}/at /opt/zimbra/libexec/zmupgrade.pm line 1763, <DATA> line 755. Operations logged to /tmp/zmsetup.20150804-170455.log Installing LDAP configuration database...done. Setting defaults... DNS ERROR resolving MX for mail.zimbra-demo.com It is suggested that the domain name have an MX record configured in DNS Re-Enter domain name? [Yes] yes Create domain: [mail.zimbra-demo.com] zimbra-demo.com MX: mail.zimbra-demo.com (172.31.26.109) Interface: 172.31.26.109 Interface: 127.0.0.1 Interface: ::1 done. Checking for port conflicts Main menu 1) Common Configuration: 2) zimbra-ldap: Enabled 3) zimbra-logger: Enabled 4) zimbra-mta: Enabled 5) zimbra-snmp: Enabled 6) 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.zimbra-demo.com +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://mail.zimbra-demo.com:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: [email protected] +Version update source email: [email protected] +Install mailstore (service webapp): yes +Install UI (zimbra,zimbraAdmin webapps): yes 7) zimbra-spell: Enabled 8) zimbra-proxy: Enabled 9) Default Class of Service Configuration: s) Save config to file x) Expand menu q) Quit Address unconfigured (**) items (? - help) 6
现在,我们必须配置在它们前面标记有几个星号()的项目。
如我们在上面的输出中看到的,未配置“管理员密码”项。
该项目位于Zimbra Store模块下,编号为6.
要设置管理员密码,请输入编号6.
商店配置
1)状态:启用
2)创建管理员用户:是
3)管理员用户创建:[email protected]
** 4)管理员密码UNSET
5)防我将毒隔离用户:[email protected]
6)启用自动垃圾邮件培训:是
7)垃圾邮件培训用户:[email protected]
8)非垃圾邮件培训用户:[email protected]
9)SMTP主机:mail.zimbra-demo.com
10)Web服务器HTTP端口:8080
11)Web服务器的HTTPS端口:8443
12)Web服务器模式:https
13)IMAP服务器端口:7143
14)IMAP服务器SSL端口:7993
15)POP服务器端口:7110
16)POP服务器SSL端口:7995
17)使用拼写检查服务器:是
18)拼写服务器URL:http://mail.zimbra-demo.com:7780/aspell.php
19)启用版本更新检查:TRUE
20)启用版本更新通知:TRUE
21)版本更新通知电子邮件:[email protected]
22)版本更新源电子邮件:[email protected]
23)安装邮件存储(服务Web应用程序):是
24)安装UI(zimbra,zimbraAdmin Web应用程序):是
选择,或者在上一个菜单[r]中选择'r'4
现在为管理员用户设置密码。
Password for [email protected] (min 6 characters): [gbjep4Py1] zimbra.123 Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: [email protected] 4) Admin Password set 5) Anti-virus quarantine user: [email protected] 6) Enable automated spam training: yes 7) Spam training user: [email protected] 8) Non-spam(Ham) training user: [email protected] 9) SMTP host: mail.zimbra-demo.com 10) Web server HTTP port: 8080 11) Web server HTTPS port: 8443 12) Web server mode: https 13) IMAP server port: 7143 14) IMAP server SSL port: 7993 15) POP server port: 7110 16) POP server SSL port: 7995 17) Use spell check server: yes 18) Spell server URL: http://mail.zimbra-demo.com:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: [email protected] 22) Version update source email: [email protected] 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yes Select, or 'r' for previous menu [r] r
现在,输入“ r”返回上一级菜单。
Main menu 1) Common Configuration: 2) zimbra-ldap: Enabled 3) zimbra-logger: Enabled 4) zimbra-mta: Enabled 5) zimbra-snmp: Enabled 6) zimbra-store: Enabled 7) zimbra-spell: Enabled 8) zimbra-proxy: Enabled 9) Default Class of Service Configuration: s) Save config to file x) Expand menu q) Quit
现在配置已完成。
按“ a”以应用,然后键入“ yes”以完成设置。
*** 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.31029] Saving config in /opt/zimbra/config.31029...done. The system will be modified - continue? [No] yes Operations logged to /tmp/zmsetup.20150804-170455.log Setting local config values...done. Initializing core config...Setting up CA...done. Deploying CA to /opt/zimbra/conf/ca ...done. Creating SSL zimbra-store certificate...done. Creating new zimbra-ldap SSL certificate...done. Creating new zimbra-mta SSL certificate...done. Creating new zimbra-proxy SSL certificate...done. Installing mailboxd SSL certificates...done. Installing MTA SSL certificates...done. Installing LDAP SSL certificate...done. Installing Proxy SSL certificate...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.zimbra-demo.com...done. Setting Zimbra IP Mode...done. Saving CA in ldap...done. Saving SSL Certificate in ldap...done. Setting spell check URL...done. Setting service ports on mail.zimbra-demo.com...done. Setting zimbraFeatureTasksEnabled=TRUE...done. Setting zimbraFeatureBriefcasesEnabled=TRUE...done. Checking current setting of zimbraReverseProxyAvailableLookupTargets Querying LDAP for other mailstores Searching LDAP for reverseProxyLookupTargets...done. Adding mail.zimbra-demo.com to zimbraReverseProxyAvailableLookupTargets Setting TimeZone Preference...done. Initializing mta config...done. Setting services on mail.zimbra-demo.com...done. Adding mail.zimbra-demo.com to zimbraMailHostPool in default COS...done. Creating domain zimbra-demo.com...done. Setting default domain name...done. Creating domain zimbra-demo.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.zimbra-demo.com...done. Configuring SNMP...done. Setting up syslog.conf...done. Starting servers...done. Installing common zimlets... com_zimbra_mailarchive...done. com_zimbra_srchhighlighter...done. com_zimbra_viewmail...done. com_zimbra_attachmail...done. com_zimbra_url...done. com_zimbra_ymemoticons...done. com_zimbra_cert_manager...done. com_zimbra_proxy_config... com_zimbra_url...done. com_zimbra_ymemoticons...done. com_zimbra_cert_manager...done. com_zimbra_proxy_config...done. com_zimbra_adminversioncheck...done. com_zimbra_tooltip...done. com_zimbra_date...done. com_zimbra_webex...done. com_zimbra_email...done. com_zimbra_bulkprovision...done. com_zimbra_attachcontacts...done. com_zimbra_phone...done. com_zimbra_clientuploader...done. Finished installing common zimlets. Restarting mailboxd...done. Creating galsync account for default domain...done. You have the option of notifying Zimbra of your installation. This helps us to track the uptake of the Zimbra Collaboration Server. The only information that will be transmitted is: The VERSION of zcs installed (8.7.0_GA_1659_UBUNTU16_64) The ADMIN EMAIL ADDRESS created ([email protected]) Notify Zimbra of your installation? [Yes] Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.7.0_GA_1659_UBUNTU16_64&[email protected] Notification complete Setting up zimbra crontab...done. Moving /tmp/zmsetup.20150804-154559.log to /opt/zimbra/log Configuration complete - press return to exit
Zimbra的安装现已完成。
使用我们喜欢的Web浏览器访问管理控制台,网址为https://mail.zimbra-demo.com:7071
单击“登录”,我们将被重定向到Zimbra管理控制台。
使用我们喜欢的Web浏览器访问Web控制台,网址为https://mail.zimbra-demo.com:7071
单击“登录”,我们将进入管理邮箱。
尝试访问上述URL时,我们可能会收到以下错误。
Problem accessing ZCS upstream server. Reason: Cannot connect to the ZCS upstream server. Connection timeout. Possible reasons: upstream server is blocked by a firewall upstream server is failing to send back the response in time upstream server is down Please contact your ZCS administrator to fix the problem. Powered by Nginx-Zimbra://
使用curl访问URL会导致相同的504网关超时错误
zimbra@mail:/root$curl -I -k https://mail.zimbra-demo.com HTTP/1.1 504 Gateway Time-out Server: nginx Date: Fri, 05 Aug 2015 01:45:12 GMT Content-Type: text/html Content-Length: 1193 Connection: keep-alive ETag: "5760599a-4a9"
这是由于上游服务器花费的时间超过了配置的超时值,因此客户端关闭了上游连接。
将超时值更改为更高的值。
执行以下两个命令可忽略与邮箱服务器断开连接的故障,并在出现任何故障时立即重新连接到所有邮箱服务器。
root@mail:~$su zimbra zimbra@mail:~$cd /opt/zimbra/bin zimbra@mail:~/bin$./zmprov mcf zimbraMailProxyReconnectTimeout 0 zimbra@mail:~/bin$./zmprov mcf zimbraMailProxyMaxFails 0
重新启动代理以使用“ fail_timeout”和“ max_fails”的更新值重新生成nginx配置文件。
zimbra@mail:~/bin$zmproxyctl restart
停止代理...完成。
正在启动代理...完成。
尝试使用CURL访问邮件URL。
zimbra@mail:~/bin$curl -I -k https://mail.zimbra-demo.com HTTP/1.1 200 OK Server: nginx Date: Fri, 05 Aug 2015 02:17:16 GMT Content-Type: text/html;charset=utf-8 Content-Length: 0 Connection: keep-alive X-Frame-Options: SAMEORIGIN Expires: -1 Cache-Control: no-store, no-cache, must-revalidate, max-age=0 Pragma: no-cache Content-Language: en-US Set-Cookie: ZM_TEST=true;Secure Vary: User-Agent X-UA-Compatible: IE=edge
现在我们将能够连接到邮件服务器。
4.配置防火墙
ZCS使用大量端口来提供其服务。
由我们决定要从公共领域限制哪些服务或者向公众提供哪些服务。
ZCS使用的端口号的完整列表可以在这里找到https://wiki.zimbra.com/wiki/Ports假设我们要从网络外部访问zimbra管理控制台,例如:从公共域,然后我们将根据我们使用的防火墙添加以下规则。
# sudo ufw allow 7071/tcp OR # sudo iptables -A INPUT -m state --state NEW -p tcp --dport 7071 -j ACCEPT
默认情况下,我们要打开以下端口以供公共访问。
25 80 110 143 443 465 587 993 995 3443 9071
现在启动防火墙。
# service ufw enable OR # service iptables start
5. Zimbra命令
我们可以使用命令zmcontrol来启动/停止zimbra服务器来控制zimbra服务器。
使用以下命令停止服务器。
zimbra@mail:~$zmcontrol stop Host mail.zimbra-demo.com Stopping zmconfigd...Done. Stopping zimlet webapp...Done. Stopping zimbraAdmin webapp...Done. Stopping zimbra webapp...Done. Stopping service webapp...Done. Stopping stats...Done. Stopping mta...Done. Stopping spell...Done. Stopping snmp...Done. Stopping cbpolicyd...Done. Stopping archiving...Done. Stopping opendkim...Done. Stopping amavis...Done. Stopping antivirus...Done. Stopping antispam...Done. Stopping proxy...Done. Stopping memcached...Done. Stopping mailbox...Done. Stopping logger...Done. Stopping dnscache...Done. Stopping ldap...Done.
使用以下命令启动服务器。
root @ mail:~su zimbra
zimbra @ mail:/root $zmcontrol开始
Host mail.zimbra-demo.com Starting ldap...Done. Starting zmconfigd...Done. Starting logger...Done. Starting mailbox...Done. Starting memcached...Done. Starting proxy...Done. Starting amavis...Done. Starting antispam...Done. Starting antivirus...Done. Starting opendkim...Done. Starting snmp...Done. Starting spell...Done. Starting mta...Done. Starting stats...Done. Starting service webapp...Done. Starting zimbra webapp...Done. Starting zimbraAdmin webapp...Done. Starting zimlet webapp...Done.
查找zimbra服务器的状态。
zimbra @ mail:/root $zmcontrol状态
Host mail.zimbra-demo.com amavis Running antispam Running antivirus Running ldap Running logger Running mailbox Running memcached Running mta Running opendkim Running proxy Running service webapp Running snmp Stopped zmswatch is not running. spell Running stats Running zimbra webapp Running zimbraAdmin webapp Running zimlet webapp Running zmconfigd Running
zmbackup –进行邮件主机的完整备份和增量备份。
zmclamdctl –启动,停止并查找Clam AV的状态。
zmlocalconfig –设置或者获取用于调整zimbra的Zimbra服务器的本地配置。
zmloggerctl –启动,停止,重新加载并查找Zimbra记录器服务的状态。