{"id":9262,"date":"2022-08-10T10:20:13","date_gmt":"2022-08-10T02:20:13","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=9262"},"modified":"2022-08-11T04:55:37","modified_gmt":"2022-08-10T20:55:37","slug":"centos7-setup-zcs","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos7-setup-zcs.html","title":{"rendered":"CentOS 7.0 \u5b89\u88c5 ZCS 8.6.0"},"content":{"rendered":"
\u7b80\u4ecb<\/strong><\/div>\n

\"zimbra_00\"
\nZimbra\u7684\u6838\u5fc3\u4ea7\u54c1\u662fZimbra\u534f\u4f5c\u5957\u4ef6\uff08Zimbra Collaboration Suite\uff0c\u7b80\u79f0ZCS\uff09\u3002\u9664\u4e86\u5b83\u7684\u6838\u5fc3\u529f\u80fd\u662f\u7535\u5b50\u90ae\u4ef6\u548c\u65e5\u7a0b\u5b89\u6392\u670d\u52a1\u5668\uff0c\u5f53\u7136\u8fd8\u5305\u62ec\u8bb8\u591a\u5176\u5b83\u7684\u529f\u80fd\uff0c\u5c31\u8c61\u662f\u4e0b\u4e00\u4ee3\u7684\u5fae\u8f6fExchange\u3002\u5728\u7535\u5b50\u90ae\u4ef6\u548c\u65e5\u7a0b\u5b89\u6392\u4e4b\u5916\uff0c\u5b83\u8fd8\u63d0\u4f9b\u6587\u6863\u5b58\u50a8\u548c\u7f16\u8f91\u3001\u5373\u65f6\u6d88\u606f\u4ee5\u53ca\u4e00\u4e2a\u5229\u7528\u83b7\u5956\u6280\u672f\u5f00\u53d1\u7684\u5168\u529f\u80fd\u7684\u7ba1\u7406\u63a7\u5236\u53f0\u3002ZCS\u540c\u65f6\u4e5f\u63d0\u4f9b\u79fb\u52a8\u8bbe\u5907\u7684\u652f\u6301\uff0c\u4ee5\u53ca\u4e0e\u90e8\u7f72\u4e8eWindows\u3001Linux\u6216Apple\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7684\u684c\u9762\u7a0b\u5e8f\u7684\u540c\u6b65\u529f\u80fd\u3002ZCS 8.6\u00a0\u5e26\u6765\u4e86\u65b0\u7684\u7279\u6027\uff0c\u6539\u5584\u90ae\u4ef6\u670d\u52a1\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66f4\u597d\u7684web\u5ba2\u6237\u7aef\u4f53\u9a8c\u3002<\/p>\n

\u73af\u5883<\/strong><\/div>\n

\u7cfb\u7edf\uff1aCentos7
\nip\u5730\u5740\uff1a192.168.1.109<\/p>\n

\u5b89\u88c5\u524d\u51c6\u5907<\/strong><\/div>\n
1.\u5173\u95edSELINUX\u5e76\u6e05\u7a7aiptable\u89c4\u5219<\/strong><\/span><\/div>\n
# sed -i 's\/SELINUX=enforcing\/SELINUX=disabled\/' \/etc\/sysconfig\/selinux\r\n# yum -y install iptables-services\r\n# iptables -F\r\n# iptables -X\r\n# iptables -z\r\n# service iptables save\r\n# reboot\r\n<\/pre>\n
2.\u914d\u7f6e\u4e3b\u673a\u540d<\/strong><\/span><\/div>\n
# hostnamectl set-hostname mail.zimbra.com\r\n# echo \"192.168.1.109  mail.zimbra.com\" >> \/etc\/hosts\r\n<\/pre>\n
3.\u5b89\u88c5zimbra\u6240\u9700\u8981\u7684\u5305\u548c\u5e93<\/strong><\/span><\/div>\n
# yum -y update\r\n# yum -y install perl perl-core nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite nc\r\n<\/pre>\n
4.\u5173\u95ed\u5b89\u88c5\u7684MTA\u670d\u52a1<\/strong><\/span><\/div>\n
# systemctl stop postfix.service\r\n# systemctl disable postfix.service\r\n<\/pre>\n
\u914d\u7f6edns\u670d\u52a1\u5668<\/strong><\/div>\n
1.\u5b89\u88c5bind<\/strong><\/span><\/div>\n
# yum -y install bind bind-utils\r\n<\/pre>\n
2.\u4fee\u6539\u4e3b\u914d\u7f6e\u6587\u4ef6<\/strong><\/span><\/div>\n
vim \/etc\/named.conf\r\n\u6dfb\u52a0\u4e0b\u9762\u7684\u914d\u7f6e\uff1a\r\nzone \"zimbra.com\" IN {\r\n        type master;\r\n        file \"zimbra.com\";\r\n        allow-update { none; };\r\n};\r\nzone \"1.168.192.in-addr.arpa\" IN {\r\n        type master;\r\n        file \"192.168.1.arpa\";\r\n        allow-update { none; };\r\n};\r\n<\/pre>\n
2.\u914d\u7f6e\u533a\u57df\u914d\u7f6e\u6587\u4ef6<\/strong><\/span><\/div>\n
# vim \/var\/named\/zimbra.com\r\n\r\n$TTL 1D\r\n@\tIN SOA\t@ rname.invalid. (\r\n\t\t\t\t\t0\t; serial\r\n\t\t\t\t\t1D\t; refresh\r\n\t\t\t\t\t1H\t; retry\r\n\t\t\t\t\t1W\t; expire\r\n\t\t\t\t\t3H )\t; minimum\r\n\tNS\tns.zimbra.com.\r\n\tMX 10\tmail.zimbra.com.\r\nns\tA\t192.168.1.109\r\nmail\tA\t192.168.1.109\r\n\r\n# vim \/var\/named\/192.168.1.arpa\r\n\r\n$TTL 1D\r\n@       IN SOA  @ rname.invalid. (\r\n                                        0       ; serial\r\n                                        1D      ; refresh\r\n                                        1H      ; retry\r\n                                        1W      ; expire\r\n                                        3H )    ; minimum\r\n        NS      ns.zimbra.com.\r\n109     PTR     ns.zimbra.com.\r\n109     PTR     mail.zimbra.com.\r\n<\/pre>\n
3.\u91cd\u542fbind<\/strong><\/span><\/div>\n
# systemctl restart named.service\r\n<\/pre>\n
4.\u4f7f\u7528\u672c\u5730dns\u670d\u52a1\u5668<\/strong><\/span><\/div>\n
# echo \"nameserver 127.0.0.1\" >> \/etc\/resolv.conf\r\n<\/pre>\n
\u5b89\u88c5zimbra<\/strong><\/div>\n
1.\u4e0b\u8f7dzimbra<\/strong><\/span><\/div>\n
# wget https:\/\/files.zimbra.com\/downloads\/8.6.0_GA\/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz<\/a>\r\n<\/pre>\n
2.\u89e3\u538b\u538b\u7f29\u5305\u5e76\u4fee\u6539\u6587\u4ef6\u5939\u540d<\/strong><\/span><\/div>\n
# tar -zxvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110\r\n# mv zcs-8.6.0_GA_1153.RHEL7_64.20141215151110 zimbra\r\n<\/pre>\n
3.\u8fd0\u884c\u811a\u672c\u5f00\u59cb\u5b89\u88c5zimbra<\/strong><\/span><\/div>\n
# cd zimbra\r\n# .\/install.sh --platform-override\r\n\r\nOperations logged to \/tmp\/install.log.2744\r\nChecking for existing installation...\r\n     ...\r\n     ...\r\nDo you agree with the terms of the software license agreement? [N] y<\/span>\r\n     ...\r\n     ...\r\nInstall zimbra-ldap [Y] \r\n\r\nInstall zimbra-logger [Y] \r\n\r\nInstall zimbra-mta [Y] \r\n\r\nInstall zimbra-dnscache [Y] n<\/span>\r\n\r\nInstall zimbra-snmp [Y] \r\n\r\nInstall zimbra-store [Y] \r\n\r\nInstall zimbra-apache [Y] \r\n\r\nInstall zimbra-spell [Y] \r\n\r\nInstall zimbra-memcached [Y] \r\n\r\nInstall zimbra-proxy [Y] \r\n     ...\r\n     ...\r\nThe system will be modified.  Continue? [N] y<\/span>\r\n     ...\r\n     ...\r\nDNS ERROR resolving MX for mail.zimbra.com\r\nIt is suggested that the domain name have an MX record configured in DNS\r\nChange domain name? [Yes] \r\nCreate domain: [mail.zimbra.com] zimbra.com<\/span>\r\n\tMX: mail.zimbra.com (192.168.1.109)\r\n\r\n\tInterface: 127.0.0.1\r\n\tInterface: ::1\r\n\tInterface: 192.168.1.109\r\ndone.\r\nChecking for port conflicts\r\n\r\nMain menu\r\n\r\n   1) Common Configuration:                                                  \r\n   2) zimbra-ldap:                             Enabled                       \r\n   3) zimbra-logger:                           Enabled                       \r\n   4) zimbra-mta:                              Enabled                       \r\n   5) zimbra-snmp:                             Enabled                       \r\n   6) zimbra-store:                            Enabled                       \r\n        +Create Admin User:                    yes                           \r\n        +Admin user to create:                 admin@zimbra.com              \r\n******* +Admin Password                        UNSET                         \r\n        +Anti-virus quarantine user:           virus-quarantine.vhwa2pqsa7@zimbra.com\r\n     ...\r\n     ... \r\nAddress unconfigured (**) items  (? - help) 6<\/span>\r\n\r\nStore configuration\r\n\r\n   1) Status:                                  Enabled                       \r\n   2) Create Admin User:                       yes                           \r\n   3) Admin user to create:                    admin@zimbra.com              \r\n** 4) Admin Password                           UNSET                                           \r\n     ...\r\n     ...                     \r\nSelect, or 'r' for previous menu [r] 4<\/span>\r\n\r\nPassword for admin@zimbra.com (min 6 characters): [5okG5xTdX] 123456<\/span>\r\n\r\nStore configuration\r\n     ...    \r\nSelect, or 'r' for previous menu [r] r<\/span>\r\n     ...\r\n     ...\r\n*** CONFIGURATION COMPLETE - press 'a' to apply\r\nSelect from menu, or press 'a' to apply config (? - help) a<\/span>\r\nSave configuration data to a file? [Yes] \r\nSave config in file: [\/opt\/zimbra\/config.11982] \r\nSaving config in \/opt\/zimbra\/config.11982...done.\r\nThe system will be modified - continue? [No] yes<\/span>\r\n     ...\r\n     ...\r\nNotify Zimbra of your installation? [Yes] no<\/span>\r\nNotification skipped\r\nSetting up zimbra crontab...done.\r\n\r\nMoving \/tmp\/zmsetup04082016-205457.log to \/opt\/zimbra\/log\r\n\r\nConfiguration complete - press return to exit \r\n<\/pre>\n
4.\u542f\u52a8zimbra\u5e76\u67e5\u770b\u72b6\u6001<\/strong><\/span><\/div>\n
# su - zimbra        \/\/\u5207\u6362\u5230zimbra\u7528\u6237\r\n# zmcontrol start    \/\/\u542f\u52a8zimbra\r\n\r\n# zmcontrol status   \/\/\u67e5\u770b\u542f\u52a8\u72b6\u6001\r\n# zmcontrol stop     \/\/\u505c\u6b62zimbra\r\n<\/pre>\n

\u67e5\u770bzimbra\u542f\u52a8\u72b6\u6001\uff1a
\n\"zimbra_01\"<\/p>\n

5.\u8bbf\u95ee\u7ba1\u7406\u9875\u9762\u6d4b\u8bd5<\/strong><\/span><\/div>\n

\u8bbf\u95eezimbra\u7ba1\u7406\u9875\u9762\uff0c\u5728\u6d4f\u89c8\u5668\u8f93\u5165\uff1a<\/p>\n

https:\/\/192.168.1.109:7071\r\n<\/pre>\n

\u767b\u5f55\u754c\u9762\uff1a
\n\"zimbra_02\"
\n\u540e\u53f0\u7ba1\u7406\u754c\u9762\uff1a
\n\"zimbra_03\"
\n\u8bbf\u95eezimbra\u5ba2\u6237\u7aef\uff0c\u5728\u6d4f\u89c8\u5668\u8f93\u5165\uff1a<\/p>\n

\r\nhttps:\/\/192.168.1.109\r\n<\/pre>\n

\u7528\u6237\u767b\u5f55\u754c\u9762\uff1a
\n\"zimbra_04\"
\n\u7528\u6237\u754c\u9762\uff1a
\n\"zimbra_05\"<\/p>\n

\n

\u672c\u6587\u539f\u521b\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/centos7-setup-zcs.html<\/a>\u4f5c\u8005\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u7b80\u4ecb Zimbra\u7684\u6838\u5fc3\u4ea7\u54c1\u662fZimbra\u534f\u4f5c\u5957\u4ef6\uff08Zimbra Collaboration Suite\uff0c\u7b80\u79f0 […]<\/p>\n","protected":false},"author":309,"featured_media":9265,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-9262","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/9262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=9262"}],"version-history":[{"count":36,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/9262\/revisions"}],"predecessor-version":[{"id":249967,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/9262\/revisions\/249967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/9265"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=9262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=9262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=9262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}