Postfix_Trobleshoot_1
の編集
index.php?Postfix_Trobleshoot_1
[
トップ
] [
編集
|
差分
|
履歴
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
(no template pages)
#contents(); *** エラーの内容 ( /var/log/maillog に以下のメッセージが大量にはき出される ) [#r02f5ca3] postfix/qmgr[11911]: warning: connect to transport /etc/postfix/header_checks: No such file or directory *** main.cf / master.cf location [#n29df97d] - &color(red){main.cf / master.cf は /etc/postfix の下にあるものだけが有功 (重複はない)}; [root@spirit munakata]# find / -name main.cf -print find: /proc/15012/task: そのようなファイルやディレクトリはありません /etc/postfix_new/main.cf /etc/postfix/main.cf /opt/backup/etc/image/etc/postfix_new/main.cf /opt/backup/etc/image/etc/postfix/main.cf [root@spirit munakata]# find / -name master.cf -print find: /proc/15012/task: そのようなファイルやディレクトリはありません /etc/postfix_new/master.cf /etc/postfix/master.cf /opt/backup/etc/image/etc/postfix_new/master.cf /opt/backup/etc/image/etc/postfix/master.cf *** header_checks の記述の確認 [#qc41e004] - &color(red){header_checks は main.cf で /etc/postfix の下の header_checks を指定している (1カ所のみ)}; [root@spirit munakata]# grep header_checks /etc/postfix/*.cf /etc/postfix/main.cf:# The header_checks parameter specifies an optional table with patterns /etc/postfix/main.cf:# For details, see "man header_checks". /etc/postfix/main.cf:# muna disabele 2006-9-20 due to many error = connect to transport /etc/postfix/header_checks: No such file or directory /etc/postfix/main.cf:#header_checks = no /etc/postfix/main.cf:header_checks = pcre:/etc/postfix/header_checks *** /etc /header_checks の確認 [#f4518e91] - &color(red){ちゃんと header_checks のファイルはある}; [root@spirit munakata]# ls -al /etc/postfix 合計 668 drwxr-xr-x 2 root root 4096 10月 10 23:33 . drwxr-xr-x 95 root root 12288 10月 30 04:05 .. -rw-r--r-- 1 root root 11942 8月 13 07:07 LICENSE -rw-r--r-- 1 root root 1629 8月 13 07:07 TLS_LICENSE -rw-r--r-- 1 root root 15647 8月 13 07:07 access -rw-r--r-- 1 root root 11145 9月 6 07:31 canonical -rw-r--r-- 1 root root 12288 9月 6 07:35 canonical.db -rw-r--r-- 1 root root 9622 8月 13 07:07 generic -rwxrwxrwx 1 root root 14973 10月 10 01:32 header_checks -rw-r--r-- 1 root root 12288 10月 10 23:27 header_checks.db -rw-r--r-- 1 root root 30413 10月 10 22:58 main.cf -rw-r--r-- 1 root root 1010 8月 13 07:07 makedefs.out -rw-r--r-- 1 root root 8028 9月 7 00:31 master.cf -rwxr-xr-x 1 root root 22478 8月 13 07:07 post-install -rw-r--r-- 1 root root 17266 8月 13 07:07 postfix-files -rwxr-xr-x 1 root root 6366 8月 13 07:07 postfix-script -rw------- 1 root root 1024 10月 30 08:11 prng_exch -rw-r--r-- 1 root root 6523 8月 13 07:07 relocated -rw------- 1 root root 8192 10月 30 04:03 smtpd_scache.db -rw------- 1 root root 16384 8月 28 10:23 smtpd_scache.dir -rw------- 1 root root 524288 8月 31 20:36 smtpd_scache.pag -rw-r--r-- 1 root root 11033 8月 13 07:07 transport -rw-r--r-- 1 root root 12288 10月 10 23:27 transport.db -rw-r--r-- 1 root root 11732 8月 13 07:07 virtual [root@spirit munakata]# *** postconf で postfix が読み込んでいる環境変数を確認 [#fe829da8] [root@spirit munakata]# postconf | grep header_checks header_checks = pcre:/etc/postfix/header_checks mime_header_checks = $header_checks nested_header_checks = $header_checks *** &color(red){解決!@2007-1-4}; [#fff0bd66] - この問題をきっかけに再検証した項目 -- amavisd-new の設定見直し (Antivir を完全廃止し、f-prot に移行) -- amavisd-new を無効にする (main.cf の contents_filter 行をコメント) してもエラーが出続ける事を確認 -- TLS 関係のフォワード設定が影響している可能性を検討したが、関係なかった -- postfix を 2.3.6 に更新した (2.2 から tls が標準サポートされている) - &color(red){最終的な問題解決の決め手は... 毎回 postfix 起動時に2つのメールをキューから送ろうとしている事に気づいたこと}; Jan 4 16:45:46 spirit postfix/postfix-script: starting the Postfix mail system Jan 4 16:45:46 spirit postfix/master[5752]: daemon started -- version 2.3.6, configuration /etc/postfix Jan 4 16:45:46 spirit postfix/qmgr[5756]: E88B3F75559: from=<munakata.hisao@renesas.com>, size=8905, nrcpt=1 (queue active) Jan 4 16:45:46 spirit postfix/qmgr[5756]: warning: connect to transport /etc/postfix/header_checks: No such file or directory Jan 4 16:45:46 spirit postfix/qmgr[5756]: 75F98FD01EE: from=<public_mail@spirit.hmuna.com>, size=43073, nrcpt=2 (queue active) Jan 4 16:45:46 spirit postfix/qmgr[5756]: warning: connect to transport filter: No such file or directory Jan 4 16:46:46 spirit postfix/qmgr[5756]: warning: connect to transport /etc/postfix/header_checks: No such file or directory Jan 4 16:46:46 spirit postfix/qmgr[5756]: warning: connect to transport filter: No such file or directory - &color(red){キューの中に停滞しているメールを削除したところ、以降エラーは出なくなった}; [root@spirit ~]# postsuper -d ALL postsuper: Deleted: 2 messages - &color(red){起動後にキューの中身を処理しようとしなくなり、2分後に止めるまでエラーが出ていない}; Jan 4 16:48:38 spirit postfix/postfix-script: starting the Postfix mail system Jan 4 16:48:38 spirit postfix/master[5827]: daemon started -- version 2.3.6, configuration /etc/postfix Jan 4 16:50:17 spirit postfix/postfix-script: stopping the Postfix mail system Jan 4 16:50:17 spirit postfix/master[5827]: terminating on signal 15
タイムスタンプを変更しない
#contents(); *** エラーの内容 ( /var/log/maillog に以下のメッセージが大量にはき出される ) [#r02f5ca3] postfix/qmgr[11911]: warning: connect to transport /etc/postfix/header_checks: No such file or directory *** main.cf / master.cf location [#n29df97d] - &color(red){main.cf / master.cf は /etc/postfix の下にあるものだけが有功 (重複はない)}; [root@spirit munakata]# find / -name main.cf -print find: /proc/15012/task: そのようなファイルやディレクトリはありません /etc/postfix_new/main.cf /etc/postfix/main.cf /opt/backup/etc/image/etc/postfix_new/main.cf /opt/backup/etc/image/etc/postfix/main.cf [root@spirit munakata]# find / -name master.cf -print find: /proc/15012/task: そのようなファイルやディレクトリはありません /etc/postfix_new/master.cf /etc/postfix/master.cf /opt/backup/etc/image/etc/postfix_new/master.cf /opt/backup/etc/image/etc/postfix/master.cf *** header_checks の記述の確認 [#qc41e004] - &color(red){header_checks は main.cf で /etc/postfix の下の header_checks を指定している (1カ所のみ)}; [root@spirit munakata]# grep header_checks /etc/postfix/*.cf /etc/postfix/main.cf:# The header_checks parameter specifies an optional table with patterns /etc/postfix/main.cf:# For details, see "man header_checks". /etc/postfix/main.cf:# muna disabele 2006-9-20 due to many error = connect to transport /etc/postfix/header_checks: No such file or directory /etc/postfix/main.cf:#header_checks = no /etc/postfix/main.cf:header_checks = pcre:/etc/postfix/header_checks *** /etc /header_checks の確認 [#f4518e91] - &color(red){ちゃんと header_checks のファイルはある}; [root@spirit munakata]# ls -al /etc/postfix 合計 668 drwxr-xr-x 2 root root 4096 10月 10 23:33 . drwxr-xr-x 95 root root 12288 10月 30 04:05 .. -rw-r--r-- 1 root root 11942 8月 13 07:07 LICENSE -rw-r--r-- 1 root root 1629 8月 13 07:07 TLS_LICENSE -rw-r--r-- 1 root root 15647 8月 13 07:07 access -rw-r--r-- 1 root root 11145 9月 6 07:31 canonical -rw-r--r-- 1 root root 12288 9月 6 07:35 canonical.db -rw-r--r-- 1 root root 9622 8月 13 07:07 generic -rwxrwxrwx 1 root root 14973 10月 10 01:32 header_checks -rw-r--r-- 1 root root 12288 10月 10 23:27 header_checks.db -rw-r--r-- 1 root root 30413 10月 10 22:58 main.cf -rw-r--r-- 1 root root 1010 8月 13 07:07 makedefs.out -rw-r--r-- 1 root root 8028 9月 7 00:31 master.cf -rwxr-xr-x 1 root root 22478 8月 13 07:07 post-install -rw-r--r-- 1 root root 17266 8月 13 07:07 postfix-files -rwxr-xr-x 1 root root 6366 8月 13 07:07 postfix-script -rw------- 1 root root 1024 10月 30 08:11 prng_exch -rw-r--r-- 1 root root 6523 8月 13 07:07 relocated -rw------- 1 root root 8192 10月 30 04:03 smtpd_scache.db -rw------- 1 root root 16384 8月 28 10:23 smtpd_scache.dir -rw------- 1 root root 524288 8月 31 20:36 smtpd_scache.pag -rw-r--r-- 1 root root 11033 8月 13 07:07 transport -rw-r--r-- 1 root root 12288 10月 10 23:27 transport.db -rw-r--r-- 1 root root 11732 8月 13 07:07 virtual [root@spirit munakata]# *** postconf で postfix が読み込んでいる環境変数を確認 [#fe829da8] [root@spirit munakata]# postconf | grep header_checks header_checks = pcre:/etc/postfix/header_checks mime_header_checks = $header_checks nested_header_checks = $header_checks *** &color(red){解決!@2007-1-4}; [#fff0bd66] - この問題をきっかけに再検証した項目 -- amavisd-new の設定見直し (Antivir を完全廃止し、f-prot に移行) -- amavisd-new を無効にする (main.cf の contents_filter 行をコメント) してもエラーが出続ける事を確認 -- TLS 関係のフォワード設定が影響している可能性を検討したが、関係なかった -- postfix を 2.3.6 に更新した (2.2 から tls が標準サポートされている) - &color(red){最終的な問題解決の決め手は... 毎回 postfix 起動時に2つのメールをキューから送ろうとしている事に気づいたこと}; Jan 4 16:45:46 spirit postfix/postfix-script: starting the Postfix mail system Jan 4 16:45:46 spirit postfix/master[5752]: daemon started -- version 2.3.6, configuration /etc/postfix Jan 4 16:45:46 spirit postfix/qmgr[5756]: E88B3F75559: from=<munakata.hisao@renesas.com>, size=8905, nrcpt=1 (queue active) Jan 4 16:45:46 spirit postfix/qmgr[5756]: warning: connect to transport /etc/postfix/header_checks: No such file or directory Jan 4 16:45:46 spirit postfix/qmgr[5756]: 75F98FD01EE: from=<public_mail@spirit.hmuna.com>, size=43073, nrcpt=2 (queue active) Jan 4 16:45:46 spirit postfix/qmgr[5756]: warning: connect to transport filter: No such file or directory Jan 4 16:46:46 spirit postfix/qmgr[5756]: warning: connect to transport /etc/postfix/header_checks: No such file or directory Jan 4 16:46:46 spirit postfix/qmgr[5756]: warning: connect to transport filter: No such file or directory - &color(red){キューの中に停滞しているメールを削除したところ、以降エラーは出なくなった}; [root@spirit ~]# postsuper -d ALL postsuper: Deleted: 2 messages - &color(red){起動後にキューの中身を処理しようとしなくなり、2分後に止めるまでエラーが出ていない}; Jan 4 16:48:38 spirit postfix/postfix-script: starting the Postfix mail system Jan 4 16:48:38 spirit postfix/master[5827]: daemon started -- version 2.3.6, configuration /etc/postfix Jan 4 16:50:17 spirit postfix/postfix-script: stopping the Postfix mail system Jan 4 16:50:17 spirit postfix/master[5827]: terminating on signal 15
テキスト整形のルールを表示する