[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[postfix-jp: 2439] Re: LDAP サーバ障害時の対策
- Subject: [postfix-jp: 2439] Re: LDAP サーバ障害時の対策
 
- From: matsumoto@xxxxxxxxxxxxxxxxxxxx (Ryuji Matsumoto)
 
- Date: Fri, 22 Dec 2006 11:37:20 +0900 (JST)
 
松元@うまく届くかな(^^;;
みなさま:
少々お知恵を拝借したいのですが、LDAPサーバ障害時の対策について
なにか良い手がないでしょうか?
現在
 LDAPサーバ CentOS4.2 /OpenLDAP  :  1台 
 メールサーバ CentOS4.4 /Postfix :  1台
構成で運用しています。
先日、LDAPサーバのldap daemon(プロセス)が落ちてました。
メールサーバでUnknown Userエラーで大量のメールが落ちてしまいました。
とほほ。そこで対策を考えていたのですが、
色々調べた所
(1)LDAPサーバのldap daemon(プロセス)が落ちた場合: 
  即時にUser Unknown エラーになる。つまり、再送は期待できない。
---
    % telnet mail.example.ac.jp 25
    Trying 192.168.0.1...
    Connected to mail.example.ac.jp.
    Escape character is '^]'.
    220 mail.example.ac.jp ESMTP Postfix
    HELO hoge.example.ac.jp
    250 mail.example.ac.jp 
    RCPT TO: matumoto@mail.example.ac.jp 
    550 <matumoto@mail.example.ac.jp>: Recipient address rejected: User unknown in local recipient table
---
(2)LDAPサーバのLANケーブルを抜いた場合:
  LDAPサーバに接続しようとして反応しなくなる。
---
    % telnet mail.example.ac.jp 25
    Trying 192.168.0.1...
    Connected to mail.example.ac.jp.
    Escape character is '^]'.
    (この状態で黙る)
---
  しかし 即時にUser Unknown エラーにはならないので、後日、再送が期待できる
  送信側の/var/log/maillogより:  
-----
   Dec 21 19:13:22 hoge postfix/smtp[25039]: [ID 197553 mail.info] 107541DB41: conversation with mail.example.ac.jp[192.168.0.1] timed out while sending MAIL FROM
-----
という調査結果になりました。(2)の状態になるなら良いのですが、(1)の状態
が問題です。
何か手はないでしょうか?
例えば、 
1. LDAPサーバのヘルスチェックをして、反応が無くなったら
/etc/postfix/main.cf
---
 unknown_local_recipient_reject_code = 550
---
から 
---
 unknown_local_recipient_reject_code = 450
---
に書き換えてくれるようなスクリプトとか、
2. LDAPサーバのldap daemonが落ちた場合でも即時にエラーにならないような
/etc/ldap.confの設定方法とか。
なにかありましたらよろしくお願いします。
--
松元隆二 
_______________________________________________
Postfix-jp-list mailing list
Postfix-jp-list@xxxxxxxxxxxxxxxxxxxx
http://lists.sourceforge.jp/mailman/listinfo/postfix-jp-list
- Follow-Ups
- 
  - [postfix-jp: 2449] Re: LDAP サーバ障害時の対策, SATOH Fumiyasu
 
- [postfix-jp: 2457] Re: LDAP サーバ障害時の対策, Ryuji Matsumoto
 
[検索ページ]
[Postfix-JP ML Home]