ドキュメントセンター よくある質問 文書資料
はじめに - ドキュメントセンターについて 使用条件 ご意見・ご感想は公開会議室へ 著作権表示
ホーム ドキュメントセンター 新着文書 よくある質問 FAQ 問答集 ビジネス 事業計画 概況 デベロッパー 技術資料 仕様書 ガイドライン 想定された使い方 ヘルプ 利用方法や一般的な操作方法 その他の文書

はじめに
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。

ドキュメントセンター 新着情報
GetCurrentImage failedと出て、画像の保存ができないのですが? (FAQ) 2007.08.23
clamavをclamav-0.90以降に更新すると、clamdが起動しなくなりましたが? (FAQ) 2007.07.31
make.confにX11BASEを設定するように言われましたが? (FAQ) 2007.07.30
serial型の次に挿入すべき値を変更するにはどうしますか? (FAQ) 2007.06.01
次のSERIAL型で用いられる値を得るにはどうしますか? (FAQ) 2007.05.31
WindowsXPを入れた端末にPINGが通りませんが? (FAQ) 2007.05.21
vmware3上でWindowsXPを導入すると途中で待たされ、失敗しますが? (FAQ) 2007.05.19
vmware3のインストールがうまくいきませんが? (FAQ) 2007.05.18
gnome上で解像度の変更ができないのですが? (FAQ) 2007.05.17
gnome上で解像度の変更をするにはどうしますか? (FAQ) 2007.05.17

よくある質問
ご利用の皆様から多く寄せられる質問にお答えしています。
ディーエーオフィス
サーバ
アプリケーション

語解説
ディーエーオフィスなどが利用する用語に関する解説を行います。

ディーエーオフィスホームページ
メッセージセンター
ディーエーオフィスサポートターミナル
トピックスセンター
リレーショナルナレッジベース
courier-imap
 IMAPサービスを主体とするが、POP3サービスも提供してくれる。courier-imapでは、認証関連の部分が別にまとまっているようだ。portsの場合、一緒にインストールされる。

! インストールの基本

cd /usr/ports/mail/courier-imap
make install

! courier-imapのオプション選択肢

 make時に指定が可能なものは以下。何も指定せずにインストールして特に問題は感じられなかった。

WITH_DEBUGGING=yes Build perl with debugging support.
WITH_GDBM=yes Build GDBM_File extension.
WITHOUT_PERL_MALLOC=yes Use FreeBSD system malloc(uses less memory, but slower).
WITHOUT_PERL_64BITINT=yes Disable 64 bit integers(affects only 32-bit platforms).
WITH_THREADS=yes Build threaded perl.
ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary.

 一番最初のインストール時にオプションとして表示されるのは以下。やり直すときは、「[[docs link 6937]]」を参照。

Options for courier-imap 4.1.1,1

[X] OPENSSL Build with OpenSSL support
[ ] FAM Build in fam support for IDLE command
[X] TRASHQUOTA Include deleted mails in the quota
[ ] GDBM Use gdbm db instead of system bdb
[X] IPV6 Build with IPv6 support
[ ] AUTH_LDAP LDAP support
[X] AUTH_MYSQL MySQL support
[ ] AUTH_PGSQL PostgreSQL support
[ ] AUTH_USERDB Userdb support
[X] AUTH_VCHKPW Vpopmail/vchkpw support

! courier-imapの設定

 「*.dist」のような形式・ファイル名で見本となるファイルがそれぞれ用意されている。lsコマンドで一覧し、それぞれ不足しているファイルがあれば、見本をコピーして設定ファイルを作る。

cd /usr/local/etc/courier-imap/
ls
cp imapd.cnf.dist imapd.cnf
cp imapd.dist imapd
cp imapd-ssl.dist imapd-ssl
cp pop3d.dist pop3d
cp pop3d-ssl.dist pop3d-ssl

ee /usr/local/etc/courier-imap/imapd.cnf
ee /usr/local/etc/courier-imap/imapd
ee /usr/local/etc/courier-imap/imapd-ssl
ee /usr/local/etc/courier-imap/pop3d
ee /usr/local/etc/courier-imap/pop3d-ssl

! 認証機能の設定

 利用する認証形式に合わせて認証設定を行う必要がある。主な設定ファイルを紹介するが、個々の設定は後述する。

cd /usr/local/etc/authlib
ee /usr/local/etc/authlib/authdaemonrc
ee /usr/local/etc/authlib/authmysqlrc

! authmysqlrc

 設定ファイルの中に出てくる内容に注意する。例えば、GIDやUIDはvipwコマンドなどでmysqlを確認して記入する。mysqlと書いてあるからといって、mysqlに対する設定を必要としているわけでなく、mysqlを使う設定の中で実際に利用するメール環境の情報を記述する必要があることを留意したい。

ee /usr/local/etc/authlib/authmysqlrc 

! 自動起動の設定

 /usr/local/etc/rc.d以下に自動起動に関する設定ファイルは置かれている。ports導入後に設置されているはずなので、rc.confへ起動を有効にするよう書き込む。

ee /etc/rc.conf

= rc.confへの追記例 =
courier_imap_imapd_enable="YES"
courier_imap_imapdssl_enable="NO"
courier_imap_pop3d_enable="YES"
courier_imap_pop3dssl_enable="NO"
courier_authdaemond_enable="YES"

= 自動起動関連の設定 =
ls /usr/local/etc/rc.d/

= 各種状況の確認 =
/usr/local/etc/rc.d/postfix.sh status
/usr/local/etc/rc.d/courier-authdaemond.sh status
/usr/local/etc/rc.d/courier-imap-imapd.sh status
/usr/local/etc/rc.d/courier-imap-pop3d.sh status
ps awx | grep imap

= 自動起動スクリプトを使う起動 =
/usr/local/etc/rc.d/mysql-server.sh start
/usr/local/etc/rc.d/postfix.sh start
/usr/local/etc/rc.d/courier-authdaemond.sh start
/usr/local/etc/rc.d/courier-imap-imapd.sh start
/usr/local/etc/rc.d/courier-imap-pop3d.sh start
/usr/local/etc/rc.d/courier-imap-imapd-ssl.sh start
/usr/local/etc/rc.d/courier-imap-pop3d-ssl.sh start

= 自動起動スクリプトを使う停止 =
/usr/local/etc/rc.d/mysql-server.sh stop
/usr/local/etc/rc.d/postfix.sh stop
/usr/local/etc/rc.d/courier-authdaemond.sh stop
/usr/local/etc/rc.d/courier-imap-imapd.sh stop
/usr/local/etc/rc.d/courier-imap-pop3d.sh stop
/usr/local/etc/rc.d/courier-imap-imapd-ssl.sh stop
/usr/local/etc/rc.d/courier-imap-pop3d-ssl.sh stop

ee /usr/local/etc/courier-imap/imapd
/usr/local/etc/rc.d/courier-imap-imapd.sh restart

! 動作確認

 postfixはすでに動作していることが前提。statusを確認しても動作していない旨が表示されても気にしない。確実なのはtelnetを使うこと。

# /usr/local/etc/rc.d/courier-imap-imapd.sh status
courier_imap_imapd is not running.

# ps awx|grep imapd
12345 ?? S 1:23.45 /usr/local/sbin/courierlogger -pid=/var/run/imapd.pid -start -name=imapd /usr/local/libexec/courier-imap/

# telnet localhost 143
# telnet localhost 110

! make時の追加ユーザやグループの例

Added group "postfix".
Added group "maildrop".
Added user "postfix".
You need user "postfix" added to group "mail".

! インストール時のメッセージ

You will have to run /usr/local/share/courier-imap/mkimapdcert to create
a self-signed certificate if you want to use imapd-ssl.
And you will have to copy and edit the *.dist files to *
in /usr/local/etc/courier-imap.

===> Compressing manual pages for courier-imap-4.1.1,1
===> Registering installation for courier-imap-4.1.1,1
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/bin/couriertls
/usr/local/libexec/courier-imap/couriertcpd

This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/courier-imap-imapd-ssl.sh
/usr/local/etc/rc.d/courier-imap-imapd.sh
/usr/local/etc/rc.d/courier-imap-pop3d-ssl.sh
/usr/local/etc/rc.d/courier-imap-pop3d.sh

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:
http://www.courier-mta.org/imap/

! 参考

基本的な情報がまとまっている。
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm#COURIER_IMAP


文書番号 06949
日付 2006.06.11
参照数 563

ドキュメントセンター
  はじめに 新着ドキュメント 使用条件 著作権 お問い合せ
Copyright 2003 daoffice design and management company. all rights reserved.