IT科技资讯

IT科技资讯

centos6.7部署Zimbra邮件系统的环境

时间:2018.10.25 编辑:环亚

centos6.7部署Zimbra邮件系统的环境

一、环亚AG娱乐环境配置

1)系统:centos6.7 64w位

2)软件版本:zcs-8.6.0_GA_1153.RHEL6_64.20141215151155

3)ip:192.168.75.11

二、环亚AG娱乐前准备

1)配置主机名

[[email protected] zcs]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=lxb.com

2)配置DNS

[[email protected] zcs]# vim /etc/resolv.conf

; generated by /sbin/dhclient-script
search lxb.com
nameserver 192.168.75.11
nameserver 114.114.114.114
3)更改hosts解析记录

[[email protected] zcs]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.75.11 mail.lxb.com lxb.com

三、环亚AG娱乐及配置bind

[[email protected] zcs]# yum -y install bind-utils sysstat compat-libstdc++* file bind* libstdc++* libstdc++.so.6 nc

其中libstdc++.so.6没有环亚AG娱乐则报错:libstdc++.so.6:connotopensharedobjectfile:Nosuchfileordirectory

[[email protected] zcs]# vim /var/named/chroot/etc/named/named.conf

1)配置文件正确性检查,没有任何提示就表示正确
named-checkconf/var/named/chroot/etc/named/named.conf

2)创建正向解析文件
[[email protected] zcs]#vim/var/named/chroot/var/named/lxb.com.zone

3)创建反向解析文件
[[email protected] zcs]#vim/var/named/chroot/var/named/192.168.75.arpa

4)解析文件正确性检查,出现OK提示就表示正确
[[email protected] ~]# named-checkzone lxb.com /var/named/chroot/var/named/lxb.com.zone
zone lxb.com/IN: loaded serial 20160215

OK

[[email protected] ~]# named-checkzone lxb.com /var/named/chroot/var/named/192.168.75.arpa
zone lxb.com/IN: loaded serial 20160215
OK

5)把原来的配置文件改名,应用刚才创建的配置文件
mv/etc/named.conf /etc/named.conf.bak
ln-s/var/named/chroot/etc/named/named.conf/etc/
servicenamedstart
chkconfignamedon

四、开始环亚AG娱乐
tarxvf zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz

mv zcs-8.6.0_GA_1153.RHEL6_64.20141215151155/zcs
cdzcs
[[email protected] zcs]# ./install.sh --platform-override

由于是centos使用redhat环亚AG娱乐包,所以环亚AG娱乐要添加参数–platform-override

Operations logged to /tmp/install.log.9515
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.
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:
http://www.zimbra.com/license/zimbra-public-eula-2-5.html
Do you agree with the terms of the software license agreement? [N] y
Checking for prerequisites...
FOUND: NPTL
FOUND: sudo-1.8.6p3-7
FOUND: libidn-1.18-2
FOUND: gmp-4.3.1-7
MISSING: /usr/lib/libstdc++.so.6 (注:前面已环亚AG娱乐libstdc++*包,这步不会报错)
Checking for suggested prerequisites...
FOUND: sysstat
FOUND: sqlite
###ERROR###
One or more prerequisite packages are missing.
Please install them before running this installer.
Installation cancelled. 注意,如果这步失败,那么请用命令hostname检查你的主机名,确保你的主机名在hosts文件里面有对应本机IP的记录
34.Checkingforprerequisites...
35.FOUND:NPTL
36.FOUND:sudo-1.7.2p1-5
37.FOUND:libidn-0.6.5-1.1
38.libidn-0.6.5-1.1
39.FOUND:gmp-4.1.4-10
40.FOUND:/usr/lib64/libstdc++.so.6
41.Checkingforsuggestedprerequisites...
42.FOUND:perl-5.8.8
43.FOUND:sysstat
44.Prerequisitecheckcomplete.
45.
如果这里报错说什么没有环亚AG娱乐,查看前面FOUNDXX那段,什么没有找到就用yum环亚AG娱乐什么,如
yuminstallnc-y
46.Checkingforinstallablepackages
47.
48.Foundzimbra-core
49.Foundzimbra-ldap
50.Foundzimbra-logger
51.Foundzimbra-mta
52.Foundzimbra-snmp
53.Foundzimbra-store
54.Foundzimbra-apache
55.Foundzimbra-spell
56.Foundzimbra-memcached
57.Foundzimbra-proxy
60.Selectthepackagestoinstall
选择默认环亚AG娱乐:(以下到两个连续N及之前都直接回车)
1.Installzimbra-ldap[Y]
2.
3.Installzimbra-logger[Y]
4.
5.Installzimbra-mta[Y]
6.
7.Installzimbra-snmp[Y]
8.
9.Installzimbra-store[Y]
10.
11.Installzimbra-apache[Y]
12.
13.Installzimbra-spell[Y]
14.
15.Installzimbra-memcached[N]
16.
17.Installzimbra-proxy[N]
18.Checkingrequiredspaceforzimbra-core
19.checkingspaceforzimbra-store
20.
21.Installing:
22.zimbra-core
23.zimbra-ldap
24.zimbra-logger
25.zimbra-mta
26.zimbra-snmp
27.zimbra-store
28.zimbra-apache
29.zimbra-spell
30.
31.Youappeartobeinstallingpackagesonaplatformdifferent
32.thantheplatformforwhichtheywerebuilt.
33.
34.ThisplatformisCentOS5_64
35.Packagesfound:RHEL5_64
36.Thismayormaynotwork.
37.
38.Usingpackagesforaplatforminwhichtheywerenotdesignedfor
39.mayresultinaninstallationthatisNOTusable.Yoursupport
40.optionsmaybelimitedifyouchoosetocontinue.
41.
42.
这下面开始手动输入相关配置并回车
43.Installanyway?[N]y
44.
45.Thesystemwillbemodified.Continue?[N]yes
46.
47.Removing/opt/zimbra
48.Removingzimbracrontabentry...done.
49.done.
50.Cleaningupzimbrainitscripts...done.
51.Cleaningup/etc/ld.so.conf...done.
52.Cleaningup/etc/prelink.conf...done.
53.Cleaningup/etc/security/limits.conf...done.
54.
55.FinishedremovingZimbraCollaborationSuite.
56.
57.Installingpackages
58.
59.zimbra-core......zimbra-core-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
60.zimbra-ldap......zimbra-ldap-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
61.zimbra-logger......zimbra-logger-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
62.zimbra-mta......zimbra-mta-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
63.zimbra-snmp......zimbra-snmp-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
64.zimbra-store......zimbra-store-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
65.zimbra-apache......zimbra-apache-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
66.zimbra-spell......zimbra-spell-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
67.Operationsloggedto/tmp/zmsetup.03082011-230427.log
68.InstallingLDAPconfigurationdatabase...done.
69.Settingdefaults...
70.
71.DNSERRORresolvingMXformail.lxb.com
72.ItissuggestedthatthedomainnamehaveanMXrecordconfiguredinDNS
73.Changedomainname?[Yes]yes如果你环亚AG娱乐过程中没有这个步骤就继续往下
74.
75.更改域名,主机名lxb.com,域名设置为lxb.com:
76.Createdomain:[mail.lxb.com]mail.lxb.com
77.MX:mail.lxb.com(192.168.0.1)
78.
79.Interface:192.168.0.1
80.Interface:127.0.0.1
81.done.
82.Checkingforportconflicts
1.Mainmenu
2.
3.1)CommonConfiguration:
4.2)zimbra-ldap:Enabled
5.3)zimbra-store:Enabled
6.+CreateAdminUser:yes
7.+Adminusertocreate:[email protected]
8.*******+AdminPasswordUNSET
9.+Enableautomatedspamtraining:yes
10.+Spamtraininguser:[email protected]
11.+Non-spam(Ham)traininguser:[email protected]
12.+GlobalDocumentsAccount:[email protected]
13.+SMTPhost:mail.lxb.com
14.+WebserverHTTPport:80
15.+WebserverHTTPSport:443
16.+Webservermode:http
17.+IMAPserverport:143
18.+IMAPserverSSLport:993
19.+POPserverport:110
20.+POPserverSSLport:995
21.+Usespellcheckserver:yes
22.+SpellserverURL:http://zimbra.surmount.net:7780/aspell.php
23.+Configureforusewithmailproxy:FALSE
24.+Configureforusewithwebproxy:FALSE
25.+Enableversionupdatechecks:TRUE
26.+Enableversionupdatenotifications:TRUE
27.+Versionupdatenotificationemail:[email protected]
28.+Versionupdatesourceemail:[email protected]
29.
30.4)zimbra-mta:Enabled
31.5)zimbra-snmp:Enabled
32.6)zimbra-logger:Enabled
33.7)zimbra-spell:Enabled
34.8)DefaultClassofServiceConfiguration:
35.r)Startserversafterconfigurationyes
36.s)Saveconfigtofile
37.x)Expandmenu
38.q)Quit
设置网页管理端admin的登录密码:
1.Addressunconfigured(**)items(?-help)3
2.
3.
4.Storeconfiguration
5.
6.1)Status:Enabled
7.2)CreateAdminUser:yes
8.3)Adminusertocreate:[email protected]
9.**4)AdminPasswordUNSET
10.5)Enableautomatedspamtraining:yes
11.6)Spamtraininguser:[email protected]
12.7)Non-spam(Ham)traininguser:[email protected]
13.8)GlobalDocumentsAccount:[email protected]
14.9)SMTPhost:mail.lxb.com
15.10)WebserverHTTPport:80
16.11)WebserverHTTPSport:443
17.12)Webservermode:http
18.13)IMAPserverport:143
19.14)IMAPserverSSLport:993
20.15)POPserverport:110
21.16)POPserverSSLport:995
22.17)Usespellcheckserver:yes
23.18)SpellserverURL:http://zimbra.surmount.net:7780/aspell.php
24.19)Configureforusewithmailproxy:FALSE
25.20)Configureforusewithwebproxy:FALSE
26.21)Enableversionupdatechecks:TRUE
27.22)Enableversionupdatenotifications:TRUE
28.23)Versionupdatenotificationemail:[email protected]
29.24)Versionupdatesourceemail:[email protected]
30.
31.Select,or'r'forpreviousmenu[r]4
32.
[email protected](min6characters):[OUYQ0Ht8]123456这个为后台管理员admin的密码
34.
35.Storeconfiguration
36.
37.1)Status:Enabled
38.2)CreateAdminUser:yes
39.3)Adminusertocreate:[email protected]
40.4)AdminPasswordset
41.5)Enableautomatedspamtraining:yes
42.6)Spamtraininguser:[email protected]
43.7)Non-spam(Ham)traininguser:[email protected]
44.8)GlobalDocumentsAccount:[email protected]
45.9)SMTPhost:mail.lxb.com
46.10)WebserverHTTPport:80
47.11)WebserverHTTPSport:443
48.12)Webservermode:http
49.13)IMAPserverport:143
50.14)IMAPserverSSLport:993
51.15)POPserverport:110
52.16)POPserverSSLport:995
53.17)Usespellcheckserver:yes
54.18)SpellserverURL:http://zimbra.surmount.net:7780/aspell.php
55.19)Configureforusewithmailproxy:FALSE
56.20)Configureforusewithwebproxy:FALSE
57.21)Enableversionupdatechecks:TRUE
58.22)Enableversionupdatenotifications:TRUE
59.23)Versionupdatenotificationemail:[email protected]
60.24)Versionupdatesourceemail:[email protected]
返回上层页面:
1.Select,or'r'forpreviousmenu[r]r这里返回上一步
2.
3.Mainmenu
4.
5.1)CommonConfiguration:
6.2)zimbra-ldap:Enabled
7.3)zimbra-store:Enabled
8.4)zimbra-mta:Enabled
9.5)zimbra-snmp:Enabled
10.6)zimbra-logger:Enabled
11.7)zimbra-spell:Enabled
12.8)DefaultClassofServiceConfiguration:
13.r)Startserversafterconfigurationyes
14.s)Saveconfigtofile
15.x)Expandmenu
16.q)Quit
17.
18.***CONFIGURATIONCOMPLETE-press'a'toapply
输入“a”以应用配置:
1.Selectfrommenu,orpress'a'toapplyconfig(?-help)a
2.Saveconfigurationdatatoafile?[Yes]yes
3.Saveconfiginfile:[/opt/zimbra/config.11174]直接回车
4.Savingconfigin/opt/zimbra/config.11174...done.
5.Thesystemwillbemodified-continue?[No]yes
6.Operationsloggedto/tmp/zmsetup.03082011-230427.log
7.Settinglocalconfigvalues...done.
8.SettingupCA...done.
9.DeployingCAto/opt/zimbra/conf/ca...done.
10.CreatingSSLcertificate...done.
11.InstallingmailboxdSSLcertificates...done.
12.Initializingldap...done.

环亚AG娱乐到这步出错:

TueSep201:17:172014Initializingldap...TueSep201:17:172014***Runningaszimbrauser:/opt/zimbra/libexec/zmldapinitsudo:sorry,youmusthaveattytorunsudosudo:sorry,youmusthaveattytorunsudosudo:sorry,youmusthaveattytorunsudosudo:sorry,youmusthaveattytorunsudosudo:sorry,youmusthaveattytorunsudosudo:sorry,youmusthaveattytorunsudosudo:sorry,youmusthaveattytorunsudoIO::Socket::INET6:connect:Connectionrefusedat/opt/zimbra/libexec/zmldapinitline137.TueSep201:17:572014failed.(28416)TueSep201:17:572014ERRORTueSep201:17:572014ConfigurationfailedTueSep201:17:572014Pleaseaddresstheerrorandre-run/opt/zimbra/libexec/zmsetup.pltoTueSep201:17:572014completetheconfiguration.TueSep201:17:572014Errorshavebeenloggedto/tmp/zmsetup.09022014-010215.logConfigurationfailed

解决方案:

查看日志发现

TueSep201:17:172014***Runningaszimbrauser:/opt/zimbra/libexec/zmldapinit

[[email protected] zcs]# passwd zimbra
Changing password for user zimbra.
New password:
BAD PASSWORD: it is too simplistic/systematic
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[[email protected] zcs]# /opt/zimbra/libexec/zmsetup.pl
Operations logged to /tmp/zmsetup02152016-163802.log
Installing LDAP configuration database...done.
Setting defaults...

DNS ERROR resolving MX for mail.lxb.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [mail.lxb.com] lxb.com
MX: mail.lxb.com (192.168.75.11)

Interface: 192.168.75.11
Interface: 127.0.0.1
Interface: ::1
done.
Checking for port conflicts
Port conflict detected: 389 (zimbra-ldap)
Port conflicts detected! - Press Enter/Return key to continue
Setting defaults from ldap...done.


Note

The previous configuration appears to have failed to complete

Attempt to complete configuration now? [yes]
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.23552]
Saving config in /opt/zimbra/config.23552...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup02152016-163802.log
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.lxb.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.lxb.com...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.lxb.com...done.
Adding mail.lxb.com to zimbraMailHostPool in default COS...done.
Creating domain lxb.com...done.
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.lxb.com...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...Connect: Unable to determine enabled services from ldap.
done.
Installing common zimlets...
com_zimbra_viewmail...failed. This may impact system functionality.
com_zimbra_bulkprovision...failed. This may impact system functionality.
com_zimbra_proxy_config...failed. This may impact system functionality.
com_zimbra_adminversioncheck...failed. This may impact system functionality.
com_zimbra_attachcontacts...failed. This may impact system functionality.
com_zimbra_tooltip...failed. This may impact system functionality.
com_zimbra_date...failed. This may impact system functionality.
com_zimbra_phone...failed. This may impact system functionality.
com_zimbra_mailarchive...failed. This may impact system functionality.
com_zimbra_clientuploader...failed. This may impact system functionality.
com_zimbra_srchhighlighter...failed. This may impact system functionality.
com_zimbra_url...failed. This may impact system functionality.
com_zimbra_ymemoticons...failed. This may impact system functionality.
com_zimbra_attachmail...failed. This may impact system functionality.
com_zimbra_cert_manager...failed. This may impact system functionality.
com_zimbra_email...failed. This may impact system functionality.
com_zimbra_webex...failed. This may impact system functionality.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...failed.

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.6.0_GA_1153_UNKNOWN_64)
The ADMIN EMAIL ADDRESS created ([email protected])

Notify Zimbra of your installation? [Yes] no
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup02152016-163802.log to /opt/zimbra/log


Configuration complete - press return to exit

http://www.bkjia.com/Linux/1112319.htmlwww.bkjia.comtruehttp://www.bkjia.com/Linux/1112319.htmlTechArticlecentos6.7部署Zimbra邮件系统的环境 一、环亚AG娱乐环境配置 1)系统:centos6.7 64w位 2)软件版本:zcs-8.6.0_GA_1153.RHEL6_64.20141215151155 3)ip:192.168.75.1...

本文源自: 环亚AG娱乐