Centos6.7 deploy the Zimbra email system environment

Source: Internet
Author: User
Tags gmp change domain name create domain mx record nameserver zimbra email

Centos6.7 deploy the Zimbra email system environment

1. installation environment Configuration

1) system: centos6.7 64 W Bit

2) software: zcs-8.6.0_GA_1153.RHEL6_64.20141215151155

3) ip Address: 192.168.75.11

2. Preparations before installation

1) configure the Host Name

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

2) Configure DNS

[Root @ lxb zcs] # vim/etc/resolv. conf

; Generated by/sbin/dhclient-script
Search lxb.com
Nameserver 192.168.75.11
Nameserver 114.114.114.114
3) change the hosts resolution record

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

3. install and configure bind

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

If libstdc ++. so.6 is not installed, the following error occurs: libstdc ++. so.6: connotopen#dobjectfile: Nosuchfileordirectory.

[Root @ lxb zcs] # vim/var/named/chroot/etc/named. conf

1) Check the correctness of the configuration file. If no prompt is displayed, the configuration file is correct.
Named-checkconf/var/named/chroot/etc/named. conf

2) create a forward resolution File
[Root @ lxb zcs] # vim/var/named/chroot/var/named/lxb.com. zone

3) create a reverse resolution File
[Root @ lxb zcs] # vim/var/named/chroot/var/named/192.168.75.arpa

4) Check the correctness of the parsing file. If OK is displayed, it indicates that the file is correct.
[Root @ lxb ~] # Named-checkzone lxb.com/var/named/chroot/var/named/lxb.com. zone
Zone lxb.com/IN: loaded serial 20160215

OK

[Root @ lxb ~] # Named-checkzone lxb.com/var/named/chroot/var/named/192.168.75.arpa
Zone lxb.com/IN: loaded serial 20160215
OK

5) Rename the original configuration file and apply the configuration file just created
Mv/etc/named. conf/etc/named. conf. bak
Ln-s/var/named/chroot/etc/named. conf/etc/
Servicenamedstart
Chkconfignamedon

4. Start Installation
Tarxvf zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz

Music Video zcs-8.6.0_GA_1153.RHEL6_64.20141215151155/zcs
Cdzcs
[Root @ lxb zcs] #./install. sh -- platform-override

Because centos uses the redhat installation package, you must add the parameter-platform-override for installation.

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
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 (Note: The libstdc ++ * package has been installed before. No error will be reported in this step)
Checking for suggested prerequisites...
FOUND: sysstat
FOUND: sqlite
### ERROR ###
One or more prerequisite packages are missing.
Please install them before running this installer.
Installation canceled. Note: If this step fails, run the hostname command to check your host name and ensure that your host name has a record of the corresponding local IP address in the hosts file.
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.
If the following error is reported: no installation is available, check the FOUNDXX section and use yum to install anything if nothing is found, as shown in figure
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
Select the default installation mode: (Press enter either of the following N consecutive times or before)
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.
Enter the configuration manually and press Enter.
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/zmsetup00003082011-230427.log
68. InstallingLDAPconfigurationdatabase... done.
69. Settingdefaults...
70.
71.DNSERRORresolvingMXformail.lxb.com
72. ItissuggestedthatthedomainnamehaveanMXrecordconfiguredinDNS
73. Changedomainname? [Yes] yes. If you do not have this step during installation, continue.
74.
75. Change the domain name, host name lxb.com, and domain name to 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: admin@lxb.com
8. ******* + AdminPasswordUNSET
9. + Enableautomatedspamtraining: yes
10. + Spamtraininguser: spam.eovfzo7db@lxb.com
11. + Non-spam (Ham) traininguser: ham.w5affdc60@lxb.com
12. + GlobalDocumentsAccount: wiki@lxb.com
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: admin@lxb.com
28. + Versionupdatesourceemail: admin@lxb.com
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
Set the logon password of the admin on the webpage management terminal:
1. Addressunconfigured (**) items (? -Help) 3
2.
3.
4. Storeconfiguration
5.
6.1) Status: Enabled
7.2) CreateAdminUser: yes
8.3) Adminusertocreate: admin@lxb.com
9. ** 4) AdminPasswordUNSET
10.5) Enableautomatedspamtraining: yes
11.6) Spamtraininguser: spam.eovfzo7db@lxb.com
12.7) Non-spam (Ham) traininguser: ham.w5affdc60@lxb.com
13.8) GlobalDocumentsAccount: wiki@lxb.com
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: admin@lxb.com
29.24) Versionupdatesourceemail: admin@lxb.com
30.
31. Select, or 'R' forpreviusmenu [r] 4
32.
33.Passwordforadmin@surmount.net (min6characters): [OUYQ0Ht8] 123456 this is the admin password for the background Administrator
34.
35. Storeconfiguration
36.
37.1) Status: Enabled
38.2) CreateAdminUser: yes
39.3) Adminusertocreate: admin@lxb.com
40.4) AdminPasswordset
41.5) Enableautomatedspamtraining: yes
42.6) Spamtraininguser: spam.eovfzo7db@lxb.com
43.7) Non-spam (Ham) traininguser: ham.w5affdc60@lxb.com
44.8) GlobalDocumentsAccount: wiki@lxb.com
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: admin@lxb.com
60.24) Versionupdatesourceemail: admin@lxb.com
Return to the upper page:
1. Select, or 'R' forpreviusmenu [r] r. Here, the previous step is returned.
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
Enter "a" to apply the Configuration:
1. Selectfrommenu, orpress 'A' toapplyconfig (? -Help)
2. Saveconfigurationdatatoafile? [Yes] yes
3. Saveconfiginfile: [/opt/zimbra/config.11174] Press ENTER
4. Savingconfigin/opt/zimbra/config.11174...... done.
5. Thesystemwillbemodified-continue? [No] yes
6. Operationsloggedto/tmp/zmsetup00003082011-230427.log
7. Settinglocalconfigvalues... done.
8. SettingupCA... done.
9. DeployingCAto/opt/zimbra/conf/ca... done.
10. CreatingSSLcertificate... done.
11. InstallingmailboxdSSLcertificates... done.
12. Initializingldap... done.

An error occurred while installing in this step:

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

Solution:

View log discovery

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

[Root @ lxb 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.
[Root @ lxb 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 admin@lxb.com... done.
Creating root alias... done.
Creating postmaster alias... done.
Creating user spam.2xmbjedxuc@lxb.com... done.
Creating user ham.apl5yg_sd@lxb.com... done.
Creating user virus-quarantine.dbu8kwgj57@lxb.com... done.
Setting spam training and Anti-virus quarantine accounts... done.
Initializing store SQL database... done.
Setting zimbraSmtpHostname for mail.lxb.com... done.
Using ing 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 policying 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 (admin@lxb.com)

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.