[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[postfix-jp: 2776] LDAP 連携時のホームディレクトリ



山下と申します。

OS:CentOS4.5
OpenLDAP 2.2
Postfix 2.2.10
Courier-imap 4.1.3

の構成で、メール環境を構築しています。
サーバ1にPostfix+Courier-imap
サーバ2にOpenLDAP
を構築しており、LDAP未連携時には問題はなくメールの送受も可能な
状態まで構築できました。

ここからLDAP連携を行うため、一旦サーバ1のローカルアカウントを
削除して、サーバ1をauthconfigを使用してLDAP連携したところ、送受信
が不可となりました。

原因は、LDAP上のユーザー全てにhomedirectoryの属性として仮のホーム
ディレクトリ/usr/local/home/tmpdirを登録していたことでした。

他のアプリケーションの都合上LDAP上のhomedirectory属性は変更できな
いため、Courier-imapについては、
/etc/courier/authlib/authdaemonrc
/etc/courier/authlib/authldap
を構成し、サーバ1に作成した各ユーザー毎のメール用ホームディレクトリ
/home/mail/ユーザー名/Mialdir
を作成することで対処可能となりました。

ここまでは何とか対処できのですが、メールを自分宛に送信しようとしたと
ころ、送信NGとなりログを確認すると

Aug 30 11:56:48 localhost postfix/local[12319]: 37A333EEF:
to=<yamashita@xxxxxxxxx>, relay=local, delay=0, status=bounced (maildir
delivery failed: create
/usr/local/home/tmpdir/Maildir/tmp/1188442608.P12319.localhost.localdomain:
Permission denied)

とあり、PostfixがLDAP上のhomedirectoryを認識していて、メールを保存す
るMaildirを認識できていないということまではわかったのですが、この対処
の方法がわかりません。

単純にローカル上の特定ディレクトリのユーザー名配下のMaildirにメールを
配送する方法は無いのでしょうか?

ヒントでも結構ですので情報いただければと思います。

--
yamashita




--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/

_______________________________________________
Postfix-jp-list mailing list
Postfix-jp-list@xxxxxxxxxxxxxxxxxxxx
http://lists.sourceforge.jp/mailman/listinfo/postfix-jp-list

Follow-Ups
[postfix-jp: 2781] Re: LDAP 連携時のホームディレクトリ, 山口健史
[postfix-jp: 2782] Re: LDAP 連携時のホームディレクトリ, KATOH Yasufumi
[postfix-jp: 2790] Re: LDAP 連携時のホームディレクトリ, Kenji Iuchi

[検索ページ] [Postfix-JP ML Home]