centos_6.2_64安裝zibmra 7.2連接外部openldap

 

  1.   
  2. centos 6.2_64 安裝zimbra 7.2 社區版 
  3. ##下載地址: 
  4. http://www.zimbra.com/downloads/os-downloads.html 
  5.  
  6.   
  7. ##安裝所需的rpm包,請提前配置好yum 
  8. #yum install perl sysstat nc sudo sqlite libidn libstdc++ gmp -y 
  9.  
  10. ##修改hosts文件,增加如下記錄 
  11. #vi /etc/hosts 
  12. 192.168.0.154   mail.home.com    mail 
  13.  
  14. ##如果是正式環境一定要先配置好mx記錄
  15. home.com IN MX 10 mail.home.com
  16.  
  17. ##修改主機名爲 mail.home.com 
  18. #vi /etc/sysconfig/network 
  19. HOSENAME=mail.home.com 
  20.  
  21. #hostname=mail.home.com 
  22. ##解壓縮軟件包 
  23. #tar -zxf zcs-7.2.0_GA_2669.RHEL6_64.20120410002025.tgz 
  24. #cd zcs-7.2.0_GA_2669.RHEL6_64.20120410002025 
  25.  
  26. ## 安裝(centos系統安裝必須要增加如下參數,因爲默認這貨只允許安裝在紅帽系統上) 
  27. #./install.sh --platform-override  
  28. Operations logged to /tmp/install.log.1651 
  29. Checking for existing installation... 
  30.     zimbra-ldap...NOT FOUND 
  31.     zimbra-logger...NOT FOUND 
  32.     zimbra-mta...NOT FOUND 
  33.     zimbra-snmp...NOT FOUND 
  34.     zimbra-store...NOT FOUND 
  35.     zimbra-apache...NOT FOUND 
  36.     zimbra-spell...NOT FOUND 
  37.     zimbra-convertd...NOT FOUND 
  38.     zimbra-memcached...NOT FOUND 
  39.     zimbra-proxy...NOT FOUND 
  40.     zimbra-archiving...NOT FOUND 
  41.     zimbra-cluster...NOT FOUND 
  42.     zimbra-core...NOT FOUND 
  43.  
  44.  
  45. PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. 
  46. ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU 
  47. FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING 
  48. THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY 
  49. THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS 
  50. AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT. 
  51.  
  52. License Terms for the Zimbra Collaboration Suite: 
  53.   http://www.zimbra.com/license/zimbra_public_eula_2.1.html 
  54.  
  55.  
  56.  
  57. Do you agree with the terms of the software license agreement? [N] y 
  58.  
  59. Checking for prerequisites... 
  60.      FOUND: NPTL 
  61.      FOUND: nc-1.84-22 
  62.      FOUND: sudo-1.7.4p5-7 
  63.      FOUND: libidn-1.18-2 
  64.      FOUND: gmp-4.3.1-7 
  65.      FOUND: /usr/lib64/libstdc++.so.6 
  66. Checking for suggested prerequisites... 
  67.      FOUND: perl-5.10.1 
  68.      FOUND: sysstat 
  69.      FOUND: sqlite 
  70. Prerequisite check complete. 
  71.  
  72. Checking for installable packages 
  73.  
  74. Found zimbra-core 
  75. Found zimbra-ldap 
  76. Found zimbra-logger 
  77. Found zimbra-mta 
  78. Found zimbra-snmp 
  79. Found zimbra-store 
  80. Found zimbra-apache 
  81. Found zimbra-spell 
  82. Found zimbra-memcached 
  83. Found zimbra-proxy 
  84.  
  85.  
  86. Select the packages to install 
  87.  
  88. Install zimbra-ldap [Y]  
  89.  
  90. Install zimbra-logger [Y]  
  91.  
  92. Install zimbra-mta [Y]  
  93.  
  94. Install zimbra-snmp [Y]  
  95.  
  96. Install zimbra-store [Y]  
  97.  
  98. Install zimbra-apache [Y]  
  99.  
  100. Install zimbra-spell [Y]  
  101.  
  102. Install zimbra-memcached [N]  
  103.  
  104. Install zimbra-proxy [N]  
  105. Checking required space for zimbra-core 
  106. checking space for zimbra-store 
  107.  
  108. Installing: 
  109.     zimbra-core 
  110.     zimbra-ldap 
  111.     zimbra-logger 
  112.     zimbra-mta 
  113.     zimbra-snmp 
  114.     zimbra-store 
  115.     zimbra-apache 
  116.     zimbra-spell 
  117.  
  118. You appear to be installing packages on a platform different 
  119. than the platform for which they were built. 
  120.  
  121. This platform is CentOS6_64 
  122. Packages found: RHEL6_64 
  123. This may or may not work. 
  124.  
  125. Using packages for a platform in which they were not designed for 
  126. may result in an installation that is NOT usable. Your support 
  127. options may be limited if you choose to continue. 
  128.  
  129.  
  130. Install anyway? [N] y 
  131.  
  132. The system will be modified.  Continue? [N] y 
  133.  
  134. Removing /opt/zimbra 
  135. Removing zimbra crontab entry...done. 
  136. Cleaning up zimbra init scripts...done. 
  137. Cleaning up /etc/ld.so.conf...done. 
  138. Cleaning up /etc/security/limits.conf...done. 
  139.  
  140. Finished removing Zimbra Collaboration Suite. 
  141.  
  142. Installing packages 
  143.  
  144.     zimbra-core......zimbra-core-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  145.     zimbra-ldap......zimbra-ldap-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  146.     zimbra-logger......zimbra-logger-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  147.     zimbra-mta......zimbra-mta-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  148.     zimbra-snmp......zimbra-snmp-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  149.     zimbra-store......zimbra-store-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  150.     zimbra-apache......zimbra-apache-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  151.     zimbra-spell......zimbra-spell-7.2.0_GA_2669.RHEL6_64-20120410002025.x86_64.rpm...done 
  152. Operations logged to /tmp/zmsetup.07182012-114239.log 
  153. Installing LDAP configuration database...done. 
  154. Setting defaults... 
  155.  
  156. DNS ERROR resolving MX for mail.home.com 
  157. It is suggested that the domain name have an MX record configured in DNS 
  158. Change domain name? [Yes]  
  159. Create domain: [mail.home.com] home.com 
  160.         MX: mail.home.com (192.168.0.154) 
  161.  
  162.         Interface: 192.168.0.154 
  163.         Interface: 127.0.0.1 
  164. done. 
  165. Checking for port conflicts 
  166. Port conflict detected: 25 (zimbra-mta) 
  167. Port conflict detected: 25 (zimbra-mta) 
  168. Port conflicts detected! - Any key to continue  
  169.  
  170. Main menu 
  171.  
  172.    1) Common Configuration:                                                   
  173.    2) zimbra-ldap:                             Enabled                        
  174.    3) zimbra-store:                            Enabled                        
  175.         +Create Admin User:                    yes                            
  176.         +Admin user to create:                 [email protected]                 
  177. ******* +Admin Password                        UNSET                          
  178.         +Anti-virus quarantine user:           [email protected] 
  179.         +Enable automated spam training:       yes                            
  180.         +Spam training user:                   [email protected]        
  181.         +Non-spam(Ham) training user:          [email protected]          
  182.         +SMTP host:                            mail.home.com                  
  183.         +Web server HTTP port:                 80                             
  184.         +Web server HTTPS port:                443                            
  185.         +Web server mode:                      http                           
  186.         +IMAP server port:                     143                            
  187.         +IMAP server SSL port:                 993                            
  188.         +POP server port:                      110                            
  189.         +POP server SSL port:                  995                            
  190.         +Use spell check server:               yes                            
  191.         +Spell server URL:                     http://mail.home.com:7780/aspell.php 
  192.         +Configure for use with mail proxy:    FALSE                          
  193.         +Configure for use with web proxy:     FALSE                          
  194.         +Enable version update checks:         TRUE                           
  195.         +Enable version update notifications:  TRUE                           
  196.         +Version update notification email:    [email protected]                 
  197.         +Version update source email:          [email protected]                 
  198.  
  199.    4) zimbra-mta:                              Enabled                        
  200.    5) zimbra-snmp:                             Enabled                        
  201.    6) zimbra-logger:                           Enabled                        
  202.    7) zimbra-spell:                            Enabled                        
  203.    8) Default Class of Service Configuration:                                 
  204.    r) Start servers after configuration        yes                            
  205.    s) Save config to file                                                     
  206.    x) Expand menu                                                             
  207.    q) Quit                                     
  208.  
  209. Address unconfigured (**) items  (? - help) 3 
  210.  
  211.  
  212. Store configuration 
  213.  
  214.    1) Status:                                  Enabled                        
  215.    2) Create Admin User:                       yes                            
  216.    3) Admin user to create:                    [email protected]                 
  217. ** 4) Admin Password                           UNSET                          
  218.    5) Anti-virus quarantine user:              [email protected] 
  219.    6) Enable automated spam training:          yes                            
  220.    7) Spam training user:                      [email protected]        
  221.    8) Non-spam(Ham) training user:             [email protected]          
  222.    9) SMTP host:                               mail.home.com                  
  223.   10) Web server HTTP port:                    80                             
  224.   11) Web server HTTPS port:                   443                            
  225.   12) Web server mode:                         http                           
  226.   13) IMAP server port:                        143                            
  227.   14) IMAP server SSL port:                    993                            
  228.   15) POP server port:                         110                            
  229.   16) POP server SSL port:                     995                            
  230.   17) Use spell check server:                  yes                            
  231.   18) Spell server URL:                        http://mail.home.com:7780/aspell.php 
  232.   19) Configure for use with mail proxy:       FALSE                          
  233.   20) Configure for use with web proxy:        FALSE                          
  234.   21) Enable version update checks:            TRUE                           
  235.   22) Enable version update notifications:     TRUE                           
  236.   23) Version update notification email:       [email protected]                 
  237.   24) Version update source email:             [email protected]                 
  238.  
  239. Select, or 'r' for previous menu [r] 4 
  240.  
  241. Password for [email protected] (min 6 characters): [tilUmbBC7] dream2012 
  242.  
  243. Store configuration 
  244.  
  245.    1) Status:                                  Enabled                        
  246.    2) Create Admin User:                       yes                            
  247.    3) Admin user to create:                    [email protected]                 
  248.    4) Admin Password                           set                            
  249.    5) Anti-virus quarantine user:              [email protected] 
  250.    6) Enable automated spam training:          yes                            
  251.    7) Spam training user:                      [email protected]        
  252.    8) Non-spam(Ham) training user:             [email protected]          
  253.    9) SMTP host:                               mail.home.com                  
  254.   10) Web server HTTP port:                    80                             
  255.   11) Web server HTTPS port:                   443                            
  256.   12) Web server mode:                         http                           
  257.   13) IMAP server port:                        143                            
  258.   14) IMAP server SSL port:                    993                            
  259.   15) POP server port:                         110                            
  260.   16) POP server SSL port:                     995                            
  261.   17) Use spell check server:                  yes                            
  262.   18) Spell server URL:                        http://mail.home.com:7780/aspell.php 
  263.   19) Configure for use with mail proxy:       FALSE                          
  264.   20) Configure for use with web proxy:        FALSE                          
  265.   21) Enable version update checks:            TRUE                           
  266.   22) Enable version update notifications:     TRUE                           
  267.   23) Version update notification email:       [email protected]                 
  268.   24) Version update source email:             [email protected]                 
  269.  
  270. Select, or 'r' for previous menu [r] r 
  271.  
  272. Main menu 
  273.  
  274.    1) Common Configuration:                                                   
  275.    2) zimbra-ldap:                             Enabled                        
  276.    3) zimbra-store:                            Enabled                        
  277.    4) zimbra-mta:                              Enabled                        
  278.    5) zimbra-snmp:                             Enabled                        
  279.    6) zimbra-logger:                           Enabled                        
  280.    7) zimbra-spell:                            Enabled                        
  281.    8) Default Class of Service Configuration:                                 
  282.    r) Start servers after configuration        yes                            
  283.    s) Save config to file                                                     
  284.    x) Expand menu                                                             
  285.    q) Quit                                     
  286.  
  287. *** CONFIGURATION COMPLETE - press 'a' to apply 
  288. Select from menu, or press 'a' to apply config (? - help) a 
  289. Save configuration data to a file? [Yes]  
  290. Save config in file: [/opt/zimbra/config.7108]  
  291. Saving config in /opt/zimbra/config.7108...done. 
  292. The system will be modified - continue? [No] yes 
  293. Operations logged to /tmp/zmsetup.07182012-114239.log 
  294. Setting local config values...done. 
  295. Setting up CA...done. 
  296. Deploying CA to /opt/zimbra/conf/ca ...done. 
  297. Creating SSL certificate...done. 
  298. Installing mailboxd SSL certificates...done. 
  299. Initializing ldap...done. 
  300. Setting replication password...done. 
  301. Setting Postfix password...done. 
  302. Setting amavis password...done. 
  303. Setting nginx password...done. 
  304. Creating server entry for mail.home.com...done. 
  305. Saving CA in ldap ...done. 
  306. Saving SSL Certificate in ldap ...done. 
  307. Setting spell check URL...done. 
  308. Setting service ports on mail.home.com...done. 
  309. Adding mail.home.com to zimbraMailHostPool in default COS...done. 
  310. Installing webclient skins... 
  311.         sky...done. 
  312.         bare...done. 
  313.         carbon...done. 
  314.         bones...done. 
  315.         twilight...done. 
  316.         lavender...done. 
  317.         hotrod...done. 
  318.         steel...done. 
  319.         lemongrass...done. 
  320.         oasis...done. 
  321.         tree...done. 
  322.         lake...done. 
  323.         sand...done. 
  324.         pebble...done. 
  325.         waves...done. 
  326.         smoke...done. 
  327.         beach...done. 
  328. Finished installing webclient skins. 
  329. Setting zimbraFeatureTasksEnabled=TRUE...done. 
  330. Setting zimbraFeatureBriefcasesEnabled=TRUE...done. 
  331. Setting MTA auth host...done. 
  332. Setting TimeZone Preference...done. 
  333. Initializing mta config...done. 
  334. Setting services on mail.home.com...done. 
  335. Creating domain home.com...done. 
  336. Setting default domain name...done. 
  337. Creating domain home.com...already exists. 
  338. Creating admin account [email protected]
  339. Creating root alias...done. 
  340. Creating postmaster alias...done. 
  341. Creating user [email protected]
  342. Creating user [email protected]
  343. Creating user [email protected]
  344. Setting spam training and Anti-virus quarantine accounts...done. 
  345. Initializing store sql database...done. 
  346. Setting zimbraSmtpHostname for mail.home.com...done. 
  347. Configuring SNMP...done. 
  348. Checking for default IM conference room...not present. 
  349. Initializing default IM conference room...done. 
  350. Setting up syslog.conf...done. 
  351.  
  352. You have the option of notifying Zimbra of your installation. 
  353. This helps us to track the uptake of the Zimbra Collaboration Suite. 
  354. The only information that will be transmitted is: 
  355.         The VERSION of zcs installed (7.2.0_GA_2669_CentOS6_64) 
  356.         The ADMIN EMAIL ADDRESS created ([email protected]
  357.  
  358. Notify Zimbra of your installation? [Yes]  
  359. Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=7.2.0_GA_2669_CentOS6_64&MAIL=admin@home.com 
  360.  
  361. Notification complete 
  362.  
  363. Starting servers...done. 
  364. Installing common zimlets... 
  365.         com_zimbra_social...done. 
  366.         com_zimbra_url...done. 
  367.         com_zimbra_attachcontacts...done. 
  368.         com_zimbra_attachmail...done. 
  369.         com_zimbra_date...done. 
  370.         com_zimbra_srchhighlighter...done. 
  371.         com_zimbra_linkedin...done. 
  372.         com_zimbra_phone...done. 
  373.         com_zimbra_bulkprovision...done. 
  374.         com_zimbra_dnd...done. 
  375.         com_zimbra_adminversioncheck...done. 
  376.         com_zimbra_cert_manager...done. 
  377.         com_zimbra_webex...done. 
  378.         com_zimbra_email...done. 
  379. Finished installing common zimlets. 
  380. Restarting mailboxd...done. 
  381. Setting up zimbra crontab...done. 
  382.  
  383.  
  384. Moving /tmp/zmsetup.07182012-114239.log to /opt/zimbra/log 
  385.  
  386.  
  387. Configuration complete - press return to exit  
  388.  
  389. ##檢查下狀態,如果全是running說明沒有問題 
  390. #/etc/init.d/zimbra status 
  391. Host mail.home.com 
  392.         antispam                Running 
  393.         antivirus               Running 
  394.         ldap                    Running 
  395.         logger                  Running 
  396.         mailbox                 Running 
  397.         mta                     Running 
  398.         snmp                    Running 
  399.         spell                   Running 
  400.         stats                   Running 
  401.         zmconfigd               Running 
  402.  
  403.  
  404. ##到此安裝完成,在瀏覽器輸入ip訪問 
  405.  
  406. ##如果打不開檢查下selinx 及防火牆情況 
  407.  
  408. #sestatus  
  409. SELinux status:                 enabled 
  410. SELinuxfs mount:                /selinux 
  411. Current mode:                   enforcing 
  412. Mode from config file:          enforcing 
  413. Policy version:                 24 
  414. Policy from config file:        targeted 
  415. #setenforce 0 
  416. #vi /etc/selinux/config
  417. #將 enforcing改完disable 
  418. #iptables -L 
  419. Chain INPUT (policy ACCEPT) 
  420. target     prot opt source               destination          
  421. ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED  
  422. ACCEPT     icmp --  anywhere             anywhere             
  423. ACCEPT     all  --  anywhere             anywhere             
  424. ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh  
  425. REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited  
  426.  
  427. Chain FORWARD (policy ACCEPT) 
  428. target     prot opt source               destination          
  429. REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited  
  430.  
  431. Chain OUTPUT (policy ACCEPT) 
  432. target     prot opt source               destination          
  433. #iptables -F
  434. #/etc/init.d/iptables save
  435.   

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章