2011年1月29日土曜日

メールサーバを新しくする実験 【Zimbraをインストールする】

【基本的なポリシー】

  1. 専用のサーバを1台用意してそこに環境を構築する。(機能を分散させようとして挫折済み orz)
  2. ユーザ認証は別途構築したOpenDSを使用。

【OSの準備】
極力シンプルな構成でひとつ。

【下準備】
sudo yum -y install sysstat
sudo /sbin/chkconfig sendmail off
sudo /etc/init.d/sendmail stop
あと、/etc/hosts の変更が必要
127.0.0.1 localhost.localdomain localhost
IPADDRESS FQDN
のみにしておかないと怒られる模様。

【Zimbraのインストール】
Zimbra公式サイトより、OpenSource Editionをゲット
$ tar zxf zcs-6.0.10_GA_2692.RHEL5.20101215171125.tgz
$ cd zcs-6.0.10_GA_2692.RHEL5.20101215171125
$ sudo ./install.sh --platform-override
Operations logged to /tmp/install.log.12226
Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...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-cluster...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.1.html



Do you agree with the terms of the software license agreement? [N] y

Checking for prerequisites...
     FOUND: NPTL
     FOUND: sudo-1.7.2p1-9
     FOUND: libidn-0.6.5-1.1
     FOUND: gmp-4.1.4-10
     FOUND: /usr/lib/libstdc++.so.6
Checking for suggested prerequisites...
    FOUND: perl-5.8.8
    FOUND: sysstat
Prerequisite check complete.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy

いろいろ聞かれるけど、基本デフォルト
Select 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-core
checking space for zimbra-store

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is CentOS5
Packages found: RHEL5
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.


Install anyway? [N] y

The system will be modified.  Continue? [N] y

インストール実行
Removing /opt/zimbra
Removing 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 packages

    zimbra-core......zimbra-core-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
    zimbra-ldap......zimbra-ldap-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
    zimbra-logger......zimbra-logger-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
    zimbra-mta......zimbra-mta-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
    zimbra-snmp......zimbra-snmp-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
    zimbra-store......zimbra-store-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
    zimbra-apache......zimbra-apache-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
    zimbra-spell......zimbra-spell-6.0.10_GA_2692.RHEL5-20101215171125.i386.rpm...done
Operations logged to /tmp/zmsetup.01292011-101137.log
Installing LDAP configuration database...done.
Setting defaults...

DNSの設定にしたがってドメイン名の調整
DNS ERROR resolving MX for ***
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [mail.***] ****

初期設定
Main menu

   1) Common Configuration:                                                
   2) zimbra-ldap:                             Enabled                    
   3) zimbra-store:                            Enabled                    
        +Create Admin User:                    yes                        
        +Admin user to create:                 admin@***
******* +Admin Password                        UNSET                      
        +Enable automated spam training:       yes                        
        +Spam training user:                   spam.1zxhho6z@***
        +Non-spam(Ham) training user:          ham.w7u0j8yn@***
        +Global Documents Account:             wiki@***
        +SMTP host:                            mail.***
        +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:                     http://mail.***: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:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Default Class of Service Configuration:
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit

Address unconfigured (**) items  (? - help)

最初に変更すべきは

  • タイムゾーン
  • 管理者パスワード
  • Web Server Mode



タイムゾーンの変更
Address unconfigured (**) items  (? - help) 1

Common configuration

   1) Hostname:                                ***
   2) Ldap master host:                        ***
   3) Ldap port:                               389                        
   4) Ldap Admin password:                     set                        
   5) Secure interprocess communications:      yes                        
   6) TimeZone:                                America/Los_Angeles        

Select, or 'r' for previous menu [r]  6

Enter the number for the local timezone: [23] 60

Common configuration

   1) Hostname:                                mail.***              
   2) Ldap master host:                        mail.***              
   3) Ldap port:                               389                        
   4) Ldap Admin password:                     set                        
   5) Secure interprocess communications:      yes                        
   6) TimeZone:                                Asia/Tokyo

Select, or 'r' for previous menu [r] r

管理者パスワードのセット
Main menu

   1) Common Configuration:                                                
   2) zimbra-ldap:                             Enabled                    
   3) zimbra-store:                            Enabled                    
        +Create Admin User:                    yes                        
        +Admin user to create:                 admin@***            
******* +Admin Password                        UNSET                      
        +Enable automated spam training:       yes                        
        +Spam training user:                   spam.1zxhho6z@***    
        +Non-spam(Ham) training user:          ham.w7u0j8yn@***      
        +Global Documents Account:             wiki@***              
        +SMTP host:                            mail.***              
        +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:                     http://mail.***: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:                              Enabled                    
   5) zimbra-snmp:                             Enabled                    
   6) zimbra-logger:                           Enabled                    
   7) zimbra-spell:                            Enabled                    
   8) Default Class of Service Configuration:                              
   r) Start servers after configuration        yes                        
   s) Save config to file                                                  
   x) Expand menu                                                          
   q) Quit                                  

Address unconfigured (**) items  (? - help) 3

Store configuration

   1) Status:                                  Enabled                    
   2) Create Admin User:                       yes                        
   3) Admin user to create:                    admin@***            
** 4) Admin Password                           UNSET                      
   5) Enable automated spam training:          yes                        
   6) Spam training user:                      spam.1zxhho6z@***    
   7) Non-spam(Ham) training user:             ham.w7u0j8yn@***      
   8) Global Documents Account:                wiki@***              
   9) SMTP host:                               mail.***              
  10) Web server HTTP port:                    80                          
  11) Web server HTTPS port:                   443                        
  12) Web server mode:                         http                        
  13) IMAP server port:                        143                        
  14) IMAP server SSL port:                    993                        
  15) POP server port:                         110                        
  16) POP server SSL port:                     995                        
  17) Use spell check server:                  yes                        
  18) Spell server URL:                        http://mail.***:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE                      
  20) Configure for use with web proxy:        FALSE                      
  21) Enable version update checks:            TRUE                        
  22) Enable version update notifications:     TRUE                        
  23) 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): [QSo08rdy] ****

Store configuration

   1) Status:                                  Enabled                    
   2) Create Admin User:                       yes                        
   3) Admin user to create:                    admin@***            
   4) Admin Password                           set                        
   5) Enable automated spam training:          yes                        
   6) Spam training user:                      spam.1zxhho6z@***    
   7) Non-spam(Ham) training user:             ham.w7u0j8yn@***      
   8) Global Documents Account:                wiki@***              
   9) SMTP host:                               mail.***              
  10) Web server HTTP port:                    80                          
  11) Web server HTTPS port:                   443                        
  12) Web server mode:                         http                        
  13) IMAP server port:                        143                        
  14) IMAP server SSL port:                    993                        
  15) POP server port:                         110                        
  16) POP server SSL port:                     995                        
  17) Use spell check server:                  yes                        
  18) Spell server URL:                        http://mail.***:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE                      
  20) Configure for use with web proxy:        FALSE                      
  21) Enable version update checks:            TRUE                        
  22) Enable version update notifications:     TRUE                        
  23) Version update notification email:       admin@***            
  24) Version update source email:             admin@***            

Select, or 'r' for previous menu [r] r
                                        

Web Server Modeの変更
Main menu

   1) Common Configuration:                                                
   2) zimbra-ldap:                             Enabled                    
   3) zimbra-store:                            Enabled                    
   4) zimbra-mta:                              Enabled                    
   5) zimbra-snmp:                             Enabled                    
   6) zimbra-logger:                           Enabled                    
   7) zimbra-spell:                            Enabled                    
   8) Default Class of Service Configuration:                              
   r) Start servers after configuration        yes                        
   s) Save config to file                                                  
   x) Expand menu                                                          
   q) Quit                                  

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help)  3


Store configuration

   1) Status:                                  Enabled                    
   2) Create Admin User:                       yes                        
   3) Admin user to create:                    admin@***            
   4) Admin Password                           set                        
   5) Enable automated spam training:          yes                        
   6) Spam training user:                      spam.1zxhho6z@***    
   7) Non-spam(Ham) training user:             ham.w7u0j8yn@***      
   8) Global Documents Account:                wiki@***              
   9) SMTP host:                               mail.***              
  10) Web server HTTP port:                    80                          
  11) Web server HTTPS port:                   443                        
  12) Web server mode:                         http                        
  13) IMAP server port:                        143                        
  14) IMAP server SSL port:                    993                        
  15) POP server port:                         110                        
  16) POP server SSL port:                     995                        
  17) Use spell check server:                  yes                        
  18) Spell server URL:                        http://mail.***:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE                      
  20) Configure for use with web proxy:        FALSE                      
  21) Enable version update checks:            TRUE                        
  22) Enable version update notifications:     TRUE                        
  23) Version update notification email:       admin@***            
  24) Version update source email:             admin@***            

Select, or 'r' for previous menu [r] 12

Please enter the web server mode (http,https,both,mixed,redirect) [http] https

Store configuration

   1) Status:                                  Enabled                    
   2) Create Admin User:                       yes                        
   3) Admin user to create:                    admin@***            
   4) Admin Password                           set                        
   5) Enable automated spam training:          yes                        
   6) Spam training user:                      spam.1zxhho6z@***    
   7) Non-spam(Ham) training user:             ham.w7u0j8yn@***      
   8) Global Documents Account:                wiki@***              
   9) SMTP host:                               mail.***              
  10) Web server HTTP port:                    80                          
  11) Web server HTTPS port:                   443                        
  12) Web server mode:                         https                      
  13) IMAP server port:                        143                        
  14) IMAP server SSL port:                    993                        
  15) POP server port:                         110                        
  16) POP server SSL port:                     995                        
  17) Use spell check server:                  yes                        
  18) Spell server URL:                        http://mail.***:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE                      
  20) Configure for use with web proxy:        FALSE                      
  21) Enable version update checks:            TRUE                        
  22) Enable version update notifications:     TRUE                        
  23) Version update notification email:       admin@***            
  24) Version update source email:             admin@***            

Select, or 'r' for previous menu [r] r

先に進む
Main menu

   1) Common Configuration:                                                
   2) zimbra-ldap:                             Enabled                    
   3) zimbra-store:                            Enabled                    
   4) zimbra-mta:                              Enabled                    
   5) zimbra-snmp:                             Enabled                    
   6) zimbra-logger:                           Enabled                    
   7) zimbra-spell:                            Enabled                    
   8) Default Class of Service Configuration:                              
   r) Start servers after configuration        yes                        
   s) Save config to file                                                  
   x) Expand menu                                                          
   q) Quit                                  

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.10053]
Saving config in /opt/zimbra/config.10053...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.01292011-101951.log
Setting 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 mail.***...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.***...done.
Adding mail.*** to zimbraMailHostPool in default COS...done.
Installing webclient skins...
        pebble...done.
        oasis...done.
        beach...done.
        hotrod...done.
        smoke...done.
        lavender...done.
        waves...done.
        twilight...done.
        steel...done.
        sky...done.
        bare...done.
        sand...done.
        lemongrass...done.
        tree...done.
        zmail...done.
        bones...done.
        lake...done.
        yahoo...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 mail.***...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.1zxhho6z@***...done.
Creating user ham.w7u0j8yn@***...done.
Setting spam training accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.***...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)
        The ADMIN EMAIL ADDRESS created (admin@***)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Starting servers...done.
Installing common zimlets...
        com_zimbra_date...done.
        com_zimbra_ymemoticons...done.
        com_zimbra_cert_manager...done.
        com_zimbra_url...done.
        com_zimbra_dnd...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_phone...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_email...done.
Finished installing common zimlets.
Initializing Documents...done.
Restarting mailboxd...done.
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.01292011-101951.log to /opt/zimbra/log


Configuration complete - press return to exit


ここまでで初期状態で起動してます。

0 件のコメント: