我的博客:实验环境:服务器系统:centos5 64位 IP:192.168.0.3zimbra安装包:zxvf zcs-6.0.10_GA_2692.RHEL5_64.20101215170845.tgz网络适配器的参数:[root@zcs ~]# ifconfig eth0 | grep 'inet addr'|awk '{print $2}'|cut -c 6- 192.168.0.3/etc/sysconfig/network文件的主机名配置:HOSTNAME=/etc/hosts文件的配置:[root@zcs ~]# cat /etc/hosts127.0.0.1 localhost.localdomain localhost::1 localhost6.localdomain6 localhost6192.168.0.3 zimbra/etc/resolv.conf文件的配置:[root@zcs ~]# cat /etc/resolv.confnameserver 192.168.0.3主机名称:[root@zcs ~]# hostname配置dns服务:编辑DNS解析配置文件:[root@zcs etc]# vi named.confoptions {directory "/var/named";dump-file "/var/named/data/cache_dump.db";statistics-file "/var/named/data/named_stats.txt";memstatistics-file "/var/named/data/named_mem_stats.txt";};logging {channel default_debug {file "data/named.run";severity dynamic;};};zone "" IN {type master;file ".zone";allow-update {none;};};zone "0.168.192.in-addr.arpa" IN {type master;file "0.168.192.in-addr.arpa.zone";allow-update {none;};};复制文件localhost.zone为.zone,更改.zone区域解析文件属性:[root@zcs named]# cp localhost.zone .zone编辑.zone区域解析文件:[root@zcs named]# vi .zone$TTL 86400@ IN SOA @ root (20110308 ; serial (d. adams)3H ; refresh15M ; retry1W ; expiry1D ) ; minimum. IN NS .. IN A 192.168.0.3. IN MX 10 .mail IN CNAME .复制.zone为0.168.192.in-addr.arpa.zone,将后者作为反向解析配置文件,更改0.168.192.in-addr.arpa.zone的文件属性:[root@zcs named]# cp .zone 0.168.192.in-addr.arpa.zone[root@zcs named]# vi 0.168.192.in-addr.arpa.zone编辑0.168.192.in-addr.arpa.zone反向解析文件:[root@zcs named]# vi 0.168.192.in-addr.arpa.zone$TTL 86400@ IN SOA @ root (20110308 ; serial (d. adams)3H ; refresh15M ; retry1W ; expiry1D ) ; minimum@ IN NS .@ IN MX 10 .25 IN PTR .25 IN PTR .利用nslookup测试:也可以在客户端解析,但需要将客户端的DNS服务器配置为邮件服务器的IP:[root@zcs ~]# nslookup> serverDefault server: 192.168.0.3Address: 192.168.0.3#53> Server: 192.168.0.3Address: 192.168.0.3#53Name: Address: 192.168.0.3> Server: 192.168.0.3Address: 192.168.0.3#53 canonical name = .Name: Address: 192.168.0.3> set type=mx> Server: 192.168.0.3Address: 192.168.0.3#53 mail exchanger = 10 .> set type=ptr> 192.168.0.3Server: 192.168.0.3Address: 192.168.0.3#533.0.168.192.in-addr.arpa name = .3.0.168.192.in-addr.arpa name = ....将named及network服务设置为开机启动,将sendmail服务停止:[root@zcs ~]# chkconfig named on[root@zcs ~]# chkconfig network on[root@zcs ~]# chkconfig named --level 35 on[root@zcs ~]# chkconfig network --level 35 on[root@zcs ~]# service sendmail stop[root@zcs ~]# chkconfig sendmail off[root@zcs ~]# chkconfig sendmail --level 35 off进入ZCS软件包的目录,解压ZCS tgz包:[root@zcs Desktop]# tar zxvf zcs-6.0.10_GA_2692.RHEL5_64.20101215170845.tgz进入ZCS软件包目录,找到安装启动文件并查看帮助:[root@zcs Desktop]# mv zcs-6.0.10_GA_2692.RHEL5_64.20101215170845 zcs在CentOS-5.5-64bit上安装ZCS For RHEL5的软件包,需要加参数--platform-override:[root@zcs zcs]# ./install.sh --platform-overrideOperations logged to /tmp/install.log.3602Checking for existing installation...zimbra-ldap...NOT FOUNDzimbra-logger...NOT FOUNDzimbra-mta...NOT FOUNDzimbra-snmp...NOT FOUNDzimbra-store...NOT FOUNDzimbra-apache...NOT FOUNDzimbra-spell...NOT FOUNDzimbra-convertd...NOT FOUNDzimbra-memcached...NOT FOUNDzimbra-proxy...NOT FOUNDzimbra-archiving...NOT FOUNDzimbra-cluster...NOT FOUNDzimbra-core...NOT FOUNDPLEASE 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:/license/zimbra_public_eula_2.1.htmlDo you agree with the terms of the software license agreement? [N] yChecking for prerequisites...FOUND: NPTLFOUND: sudo-1.7.2p1-5FOUND: libidn-0.6.5-1.1libidn-0.6.5-1.1FOUND: gmp-4.1.4-10FOUND: /usr/lib64/libstdc++.so.6Checking for suggested prerequisites...FOUND: perl-5.8.8FOUND: sysstatPrerequisite check complete.Checking for installable packagesFound zimbra-coreFound zimbra-ldapFound zimbra-loggerFound zimbra-mtaFound zimbra-snmpFound zimbra-storeFound zimbra-apacheFound zimbra-spellFound zimbra-memcachedFound zimbra-proxySelect the packages to install选择默认安装:Install zimbra-ldap [Y]Install zimbra-logger [Y]Install zimbra-mta [Y]Install zimbra-snmp [Y]Install zimbra-store [Y]Install zimbra-apache [Y]Install zimbra-spell [Y]Install zimbra-memcached [N]Install zimbra-proxy [N]Checking required space for zimbra-corechecking space for zimbra-storeInstalling:zimbra-corezimbra-ldapzimbra-loggerzimbra-mtazimbra-snmpzimbra-storezimbra-apachezimbra-spellYou appear to be installing packages on a platform differentthan the platform for which they were built.This platform is CentOS5_64Packages found: RHEL5_64This may or may not work.Using packages for a platform in which they were not designed formay result in an installation that is NOT usable. Your supportoptions may be limited if you choose to continue.Install anyway? [N] yThe system will be modified. Continue? [N] yesRemoving /opt/zimbraRemoving zimbra crontab entry...done.done.Cleaning up zimbra init scripts...done.Cleaning up /etc/ld.so.conf...done.Cleaning up /etc/prelink.conf...done.Cleaning up /etc/security/limits.conf...done.Finished removing Zimbra Collaboration Suite.Installing packageszimbra-core......zimbra-core-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done zimbra-ldap......zimbra-ldap-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done zimbra-logger......zimbra-logger-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...d onezimbra-mta......zimbra-mta-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done zimbra-snmp......zimbra-snmp-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...donezimbra-store......zimbra-store-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...don ezimbra-apache......zimbra-apache-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...d onezimbra-spell......zimbra-spell-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...don eOperations logged to /tmp/zmsetup.03082011-230427.logInstalling LDAP configuration database...done.Setting defaults...DNS ERROR resolving MX for It is suggested that the domain name have an MX record configured in DNSChange domain name?[Yes] yes更改域名,主机名,域名设置为:Create domain: [] MX: (192.168.0.3)Interface: 192.168.0.3Interface: 127.0.0.1done.Checking for port conflictsMain menu1) Common Configuration:2) zimbra-ldap: Enabled3) zimbra-store: Enabled+Create Admin User: yes+Admin user to create: admin@******* +Admin Password UNSET+Enable automated spam training: yes+Spam training user: spam.eovfzo7db@+Non-spam(Ham) training user: ham.w5affdc60@+Global Documents Account: wiki@+SMTP host: +Web server HTTP port: 80+Web server HTTPS port: 443+Web server mode: http+IMAP server port: 143+IMAP server SSL port: 993+POP server port: 110+POP server SSL port: 995+Use spell check server: yes+Spell server URL: :7780/aspell.php +Configure for use with mail proxy: FALSE+Configure for use with web proxy: FALSE+Enable version update checks: TRUE+Enable version update notifications: TRUE+Version update notification email: admin@+Version update source email: admin@4) zimbra-mta: Enabled5) zimbra-snmp: Enabled6) zimbra-logger: Enabled7) zimbra-spell: Enabled8) Default Class of Service Configuration:r) Start servers after configuration yess) Save config to filex) Expand menuq) Quit设置网页管理端admin的登录密码:Address unconfigured (**) items (? - help) 3Store configuration1) Status: Enabled2) Create Admin User: yes3) Admin user to create: admin@** 4) Admin Password UNSET5) Enable automated spam training: yes6) Spam training user: spam.eovfzo7db@7) Non-spam(Ham) training user: ham.w5affdc60@8) Global Documents Account: wiki@9) SMTP host: 10) Web server HTTP port: 8011) Web server HTTPS port: 44312) Web server mode: http13) IMAP server port: 14314) IMAP server SSL port: 99315) POP server port: 11016) POP server SSL port: 99517) Use spell check server: yes18) Spell server URL: :7780/aspell.php19) Configure for use with mail proxy: FALSE20) Configure for use with web proxy: FALSE21) Enable version update checks: TRUE22) Enable version update notifications: TRUE23) Version update notification email: admin@24) Version update source email: admin@Select, or 'r' for previous menu [r] 4 //设置管理密码Password for admin@ (min 6 characters): [OUYQ0Ht8] 123456 //密码Store configuration1) Status: Enabled2) Create Admin User: yes3) Admin user to create: admin@4) Admin Password set5) Enable automated spam training: yes6) Spam training user: spam.eovfzo7db@7) Non-spam(Ham) training user: ham.w5affdc60@8) Global Documents Account: wiki@9) SMTP host: 10) Web server HTTP port: 8011) Web server HTTPS port: 44312) Web server mode: http13) IMAP server port: 14314) IMAP server SSL port: 99315) POP server port: 11016) POP server SSL port: 99517) Use spell check server: yes18) Spell server URL: :7780/aspell.php19) Configure for use with mail proxy: FALSE20) Configure for use with web proxy: FALSE21) Enable version update checks: TRUE22) Enable version update notifications: TRUE23) Version update notification email: admin@24) Version update source email: admin@返回上层页面:Select, or 'r' for previous menu [r] rMain menu1) Common Configuration:2) zimbra-ldap: Enabled3) zimbra-store: Enabled4) zimbra-mta: Enabled5) zimbra-snmp: Enabled6) zimbra-logger: Enabled7) zimbra-spell: Enabled8) Default Class of Service Configuration:r) Start servers after configuration yess) Save config to filex) Expand menuq) Quit*** CONFIGURATION COMPLETE - press 'a' to apply输入“a”以应用配置:Select from menu, or press 'a' to apply config (? - help) aSave configuration data to a file? [Yes] yesSave config in file: [/opt/zimbra/config.11174]Saving config in /opt/zimbra/config.11174...done.The system will be modified - continue? [No] yesOperations logged to /tmp/zmsetup.03082011-230427.logSetting local config values...done.Setting up CA...done.Deploying CA to /opt/zimbra/conf/ca ...done.Creating SSL certificate...done.Installing mailboxd SSL certificates...done.Initializing ldap...done.Setting replication password...done.Setting Postfix password...done.Setting amavis password...done.Setting nginx password...done.Creating server entry for ...done.Saving CA in ldap ...done.Saving SSL Certificate in ldap ...done.Setting spell check URL...done.Setting service ports on ...done.Adding to zimbraMailHostPool in default COS...done. Installing webclient skins...beach...done.zmail...done.lake...done.yahoo...done.hotrod...done.bones...done.pebble...done.bare...done.lemongrass...done.sand...done.waves...done.oasis...done.tree...done.sky...done.steel...done.lavender...done.twilight...done.smoke...done.Finished installing webclient skins.Setting zimbraFeatureIMEnabled=FALSE...done.Setting zimbraFeatureTasksEnabled=TRUE...done.Setting zimbraFeatureBriefcasesEnabled=TRUE...done.Setting zimbraFeatureNotebookEnabled=TRUE...done.Setting MTA auth host...done.Setting TimeZone Preference...done.Initializing mta config...done.Setting services on ...done.Creating domain ...done.Setting default domain name...done.Creating domain ...already exists.Creating admin account admin@...done.Creating root alias...done.Creating postmaster alias...done.Creating user wiki@...done.Creating user spam.eovfzo7db@...done.Creating user ham.w5affdc60@...done.Setting spam training accounts...done.Initializing store sql database...done.Setting zimbraSmtpHostname for ...done.Configuring SNMP...done.Checking for default IM conference room...not present.Initializing default IM conference room...done.Setting up syslog.conf...done.You have the option of notifying Zimbra of your installation.This helps us to track the uptake of the Zimbra Collaboration Suite.The only information that will be transmitted is:The VERSION of zcs installed (6.0.10_GA_2692_CentOS5_64)The ADMIN EMAIL ADDRESS created (admin@)Notify Zimbra of your installation? [Yes] noNotification skippedStarting servers...done.Installing common zimlets...com_zimbra_date...done.com_zimbra_url...done.com_zimbra_dnd...done.com_zimbra_phone...done.com_zimbra_adminversioncheck...done.com_zimbra_bulkprovision...done.com_zimbra_cert_manager...done.com_zimbra_ymemoticons...done.com_zimbra_email...done.Finished installing common zimlets.Initializing Documents...done.Restarting mailboxd...done.Setting up zimbra crontab...done.Moving /tmp/zmsetup.03082011-230427.log to /opt/zimbra/logConfiguration complete - press return to exit安装完成,按任意键退出:切换成zimbra用户(安装zimbra时系统自动创建),查看ZCS套件工作的状态:[root@zcs ~]# su - zimbra[zimbra@~]$ zmcontrol statusHost antispam Runningantivirus Runningldap Runninglogger Runningmailbox Runningmta Runningsnmp Runningspell Runningstats Running浏览器访问页面地址:管理员登陆页面:https://192.168.0.3:7071/zimbraAdmin/(需要DNS配置成功做解析支持)或https://192.168.0.3:7071,帐户:admin,密码:123456(安装时的设置)。