ダウンロード

Sunのサイトから以下をダウンロードします。
sun_java_commsuite5-ga-solaris-x86.zip

SunJavaCommunicationsSuiteのインストール

所定のディレクトリで展開し、以下のコマンドを実行します。
#/DOWNLOAD_DIRECTORY/Solaris_x86/installer
ウィザードに従ってインストールを進める。
とりあえず以下の2つ以外をインストールする。
ApplicationServerEnterpriseEdition8.2
HighAvailabilitySessionStore4.4


comm_dssetup.pl

comm_dssetup.pl を実行します。(Communication Suite を使用するのに必要な ldifファイルと登録スクリプトを生成します。)

# /opt/SUNWcomds/sbin/comm_dssetup.pl

Welcome to the Directory Server preparation tool for
Sun Java(tm) System communication services.
dssetup Version 6.4-0.08 (built Mon Dec 11 13:38:54 PST 2006)

This tool prepares your directory server for use by the
communications services which include Messaging, Calendar and their 
components.

The logfile is /var/tmp/dssetup_20080114223041.log.

Do you want to continue [y]:

Please enter the full path to the directory where the
Directory Server instance(s) reside ("server-root"), or
an explicit Directory Server instance directory

Directory server root [/var/opt/SUNWdsee/dsins1] :

Please enter the directory manager DN [cn=Directory Manager]:
Password:

Detected DS version 6.2

Will this directory server be used for users/groups [yes]:
A list of suffixes are as follows:
 dc=send,dc=test

Please enter the Users/Groups base suffix [dc=send,dc=test] :
There are 3 possible schema types:
  1   - schema 1 for systems with iMS 5.x data
  1.5 - schema 2 compatibility for systems with iMS 5.x data
        that has been converted with commdirmig
  2   - schema 2 native for systems using Access Manager
Please enter the Schema Type (1, 1.5, 2) [2]:

Do you want to update the schema files [yes]:
Do you want to configure new indexes [yes]:
Do you want to Reindex the new indexes now [yes]:

Here is a summary of the settings that you chose:

  Server Root                        : /var/opt/SUNWdsee
  Server Instance                    : dsins1
  Users/Groups Directory             : yes
  Update Schema                      : yes
  Schema Type                        : 2
  DC Root                            : dc=send,dc=test
  User/Group Root                    : dc=send,dc=test
  Add New Indexes                    : yes
  ReIndex New Indexes Now            : yes
  Directory Manager DN               : cn=Directory Manager

Now ready to generate a shell script and ldif file to modify the  
Directory.
No changes to the Directory Server will be made this time.
Do you want to continue [y]:
Generating files...

Checking to see if Suffixes need to be added
  Will Create suffix o=comms-config
  Will Create suffix o=pab
  Will Create suffix o=PiServerDb

Successful Completion. Consult /var/tmp/dssetup_20080114223041.log 
for details

MessagingServerの設定

# /opt/SUNWmsgsr/sbin/configure
/usr/jdk/entsys-j2se/bin/java -Djava.library.path=/opt/SUNWmsgsr/lib  
-classpath /opt/SUNWmsgsr/lib:/usr/jdk/entsys-j2se/lib/classes.zip  
configure -saveState /opt/SUNWmsgsr/install/saveState20080114224519
Java Accessibility Bridge for GNOME loaded.

以下メニューに従い、入力します。(ほぼデフォルト)
FQDN:intelli.send.test
インストールディレクトリ:/var/opt/SUNWmsgsr
以下3つを選択
●1  メッセージ転送エージェント    0 bytes
●2  メッセージストア    0 bytes
●3  Messenger Express (非推奨、JES6 で削除)    0 bytes

ユーザー名を入力 :mailsrv
UNIX グループを入力 :mail

ユーザー/グループサーバー LdapURL: ldap://intelli.send.test:389
次でバインド:  cn=Directory Manager
パスワード: ****
 
ポストマスターのメールアドレスを入力: admin@send.test
パスワードを入力: *****
電子メールのデフォルトドメインを入力: send.test
組織 DN を入力: o=ms,dc=send,dc=test 
インストールシーケンスが流れて終了

サービスの再起動

# /opt/SUNWmsgsr/sbin/stop-msg
Connecting to watcher ...
WARNING: Cannot connect to the watcher process
job_controller server is not running
# /opt/SUNWmsgsr/sbin/start-msg
Connecting to watcher ...
Launching watcher ... 3763
Starting ens server ... 3764
Starting store server .... 3765
なお起動時に以下のエラーが発生したら、/etc/hostsの「::1 localhost」をコメントアウトする。
Starting dispatcher server ....init_htent: error parsing IP address for host #1


SunJavaSystemMessengerExpressへのアクセス

ブラウザからhttp://192.168.1.39(Port80)を指定
ユーザ名:admin パスワード:*** でログイン
もし、80番ポートがバッティングしていた場合は、以下のコマンドで変更できます。
#/opt/SUNWmsgsr/sbin/configutil -o service.http.port -v 8000
OK SET
変更後に再度サービス再起動を行います。

ユーザを追加

webサーバの起動

#/var/opt/SUNWwbsvr7/admin-server/bin/startserv
#/var/opt/SUNWwbsvr7/https-*/bin/startserv

Delegated Administratorの設定

#/opt/SUNWcomm/sbin/config-commda -nodisplay
以下ほぼデフォルトどおりですが、以下の個所を変更します。
 ポート [8080] {"<" 戻る, "!" 終了}: 80
 WEB、WEB7、APP7 または APP8 を入力し、web コンテナを指定します (WEB、WEB7、APP7 または APP8)  [WEB]
 {"<" 戻る, "!" 終了}? WEB7

ドメイン、ユーザの追加

# /opt/SUNWcomm/bin/commadmin domain modify -D admin -w admin.pass -n send.test -p 80 -d send.test -S mail -H ldap.send.test
以下test1ユーザを追加します。同様にtest5程度まで追加します。
# /opt/SUNWcomm/bin/commadmin user create -D admin -F test1 -l test1(ログインID) -L test -n send.test  -p 80 -w admin.pass -W test4.pass -X ldap.send.test -S mail -E test1@send.test -H spool.send.test

amconsoleにてユーザへのサービスを追加します。
URL http://core2.send.test/amconsole
user:admin  pass:xxx
表示メニューから「組織」を選択し、send.testのリンクをクリックします。 
右の区画にドメイン名が記載されてることを確認してください。
表示メニューから「サービス設定」タブを選択します。 
リストから、「コア」のリンクをクリックします。 
右ペインで、「組織認証設定」に何も設定されてなかったら、リストから有効の値を選択します。
(デフォルトなら、ldapService が選択できるはずです。) 
「保存」をクリックします。 
表示メニューから「ユーザー」を選択します。 
リストから、test1 を選択します。 
フルネームが firstname lastname の順番になってるので、これを入れ替えます。  
右の区画で「サービス」を選択し、「追加」をクリックします。 
リストされてるサービスを全部選択して、「了解」をクリックします。 
(※実際にはメールだけでは何も表示されません。)

設定を反映する。

設定を変更したら以下のコマンドで反映と再起動を行います。
(再起動はstop-mta→start-mtaでも可)
# /opt/SUNWmsgsr/sbin/imsimta cnbuild
# /opt/SUNWmsgsr/sbin/imsimta restart


メールボックスを初期化する。

あくまで検証用ですが以下の手順で/var/opt/SUNWmsgsr/storeをバックアップして
おけば初期化できます。
#tar cvf store.tar ./store
#/opt/SUNWmsgsr/sbin/stop-msg
#tar xvf store.tar
#/opt/SUNWmsgsr/sbin/start-msg
最終更新:2008年12月14日 03:56