メーリングリストがメールを配信してくれません

Mac OS X Server 10.4 Tiger では問題なくMailmanが動きます。そこで、もう一台のコンピュータにMac OS X Srver 10.5 LeopardをインストールしてMailmanを稼働させようとしましたが、メールを配信してくれません。(通常のアカウントへのメールの配信は送受信とも問題ありません。したがってDNSの設定は問題ないと思います。Postfixも稼働していると考えられます。ただ、メーリングリスト宛のメールのみ配送してくれません。)ブラウザで管理画面をみると、ちゃんとメールは保管書庫に入っています。一切エラーメッセージは出ません。ちょうど、黙ったままこっそりサーバの書庫にしまっているといった感じです。
もう10回以上、クリーンインストールして設定をやりなおしているのですが、どうしてもうまくいきません。ちょっとした設定ミスがあるのかもしれませんが。
どなたか「ここをチェックしてみたら?」という箇所を思いつく方やアドバイスをいただける方がいらっしゃると幸いです。
なお、下のようにしばしばファイルのパーミッションが変になっています。このパーミッションに関するトラブルは英語のサイトにも書かれています。下記のように、ターミナルから修復を試みたのですが、private archivesフォルダのパーミッションが直せません。(このパーミッションが適切でないのが原因でしょうか。もしそうでしたら、private archivesフォルダのパーミッションの変更コマンドを教えていただけませんでしょうか。)
sv173:bin root# /usr/share/mailman/bin/check_perms -f
directory permissions must be 02770: /private/var/mailman/qfiles/archive (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/bounces (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/commands (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/in (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/news (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/out (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/retry (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/shunt (fixing)
directory permissions must be 02770: /private/var/mailman/qfiles/virgin (fixing)
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
Problems found: 9
Re-run as _mailman (or root) with -f flag to fix
..........................................................
..........................................................
sv173:mailman root# cd archives/
sv173:archives root# ls
private public
sv173:archives root# ls -l
total 0
drwxrws--x 4 root _mailman 136 Feb 9 17:55 private
drwxrwsr-x 3 root _mailman 102 Feb 9 17:55 public
sv173:archives root#

投稿日 2008/02/10 21:50

返信: 35

2008/02/11 05:46 Community User への返信

これは
http://docs.info.apple.com/jarticle.html?artnum=107906
にある現象のようです。
書いてあるとおり
sudo /usr/share/mailman/bin/check_perms -f
を行って,もう一度
sudo /usr/share/mailman/bin/check_perms -f
を行ってみるとどうでしょう。
archive フォルダそのもののパーミッション変更は
sudo chmod o-x /private/var/mailman/qfiles/archive
です。あるいは
sudo chmod 02770 /private/var/mailman/qfiles/archive
です。
でもコマンドの実行(1回目)の結果 fixing になっていて変ですね。あ,fixed じゃないからもう1回行えということでしょうか。

2008/02/11 06:26 Community User への返信

たまちゃんさん
さっそくのお返事ありがとうございました。Tiger Serverではなんの問題もなかったのですが、Leopard ServerではMailmanがうまく働いてくれません。
下のようにご指示いただいたコマンドは何度も入れてみたのですが、やはり同じ警告が出ます。
うーん。パーミッションだけの問題ではないのでしょうか。
sv173:‾ takanobu$ sudo /usr/share/mailman/bin/check_perms -f
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
directory permissions must be 02775: /private/var/mailman/archives/private/testmail (fixing)
directory permissions must be 02775: /private/var/mailman/archives/private/testmail.mbox (fixing)
directory permissions must be 02775: /private/var/mailman/archives/private/testmail/2008-February (fixing)
directory permissions must be 02775: /private/var/mailman/lists/testmail (fixing)
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
Problems found: 4
Re-run as _mailman (or root) with -f flag to fix
sv173:‾ takanobu$ sudo /usr/share/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
No problems found
sv173:‾ takanobu$ sudo /usr/share/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
No problems found
sv173:‾ takanobu$ sudo chmod o-x /private/var/mailman/qfiles/archive
sv173:‾ takanobu$ sudo /usr/share/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
No problems found
sv173:‾ takanobu$ sudo chmod 02770 /private/var/mailman/qfiles/archive
sv173:‾ takanobu$ sudo /usr/share/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
No problems found
sv173:‾ takanobu$ sudo chmod 02770 /private/var/mailman/qfiles/archive
sv173:‾ takanobu$ sudo /usr/share/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
No problems found
sv173:‾ takanobu$ sudo chmod 02770 /private/var/mailman/qfiles/archive
sv173:‾ takanobu$ sudo /usr/share/mailman/bin/check_perms
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
No problems found
sv173:‾ takanobu$

2008/02/11 06:50 Community User への返信

パーミッションの問題はひとまず直ったようですね(Mailman 側から見た限りでは)。
メーリングリスト宛にメールを出したときの関連するエラーログをすべて書き出していただけますか?

2008/02/11 08:20 Community User への返信

2つエラーが出ています。
・ロックファイルのエラー
・日本語のエンコーディング関連のエラー
前者はすでにロックされているファイルをもう一度ロックしようとして出ます。関連しているロックファイル(該当するメーリングリストのもの)を削除すると消えるかもしれません。
後者は Python の処理の関連で出ているようですね。日本語Mailman利用者ML
http://mm.tkikuchi.net/mailman/listinfo/mmjp-users
で同じようなエラーが報告されていました。
後,問題が起こっている時点での Postfix と Apache のログも支障のない範囲で載せていただけると助かります。

2008/02/11 09:01 Community User への返信

Postfix がうまく動いていないようです。少なくともログからはそう判断できます。
同じような情報が少ないので英語の方のディスカッションを見ると
http://discussions.apple.com/thread.jspa?messageID=6370507
という事例がありました。
Apache のログからは異常はないようですね。system.log に何か残っていないでしょうか。

2008/02/11 09:33 Community User への返信

システムログは以下の通りです。ご紹介いただいた英語のディスカッションボードを参考にして main.cfを自分でも調べてみます。
ng padding), 323.67 GB available
Feb 11 10:00:50 sv173 /System/Library/CoreServices/backupd[3103]: Copied 588 files (317.2 MB) from volume Macintosh HD.
Feb 11 10:00:50 sv173 /System/Library/CoreServices/backupd[3103]: No pre-backup thinning needed: 351.6 MB requested (including padding), 323.36 GB available
Feb 11 10:00:53 sv173 /System/Library/CoreServices/backupd[3103]: Copied 109 files (23 KB) from volume Macintosh HD.
Feb 11 10:00:54 sv173 /System/Library/CoreServices/backupd[3103]: Starting post-backup thinning
Feb 11 10:00:54 sv173 /System/Library/CoreServices/backupd[3103]: No post-back up thinning needed: no expired backups exist
Feb 11 10:00:55 sv173 /System/Library/CoreServices/backupd[3103]: Backup completed successfully.
Feb 11 10:00:58 sv173 imap[3128]: login: localhost [::1] takanobu plaintext user logged in
Feb 11 10:05:00 sv173 com.apple.launchd[1] (0x112230.cron[3236]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:06:14 sv173 ctl_cyrusdb[3270]: checkpointing cyrus databases
Feb 11 10:06:15 sv173 ctl_cyrusdb[3270]: done checkpointing cyrus databases
Feb 11 10:10:00 sv173 com.apple.launchd[1] (0x10f190.cron[3354]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:11:00 sv173 imap[3378]: login: localhost [::1] takanobu plaintext user logged in
Feb 11 10:15:00 sv173 com.apple.launchd[1] (0x10f190.cron[3483]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:20:00 sv173 com.apple.launchd[1] (0x10f190.cron[3611]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:21:01 sv173 imap[3635]: login: localhost [::1] takanobu plaintext user logged in
Feb 11 10:25:00 sv173 com.apple.launchd[1] (0x10f190.cron[3737]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:30:00 sv173 com.apple.launchd[1] (0x10f190.cron[3874]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:31:01 sv173 imap[3899]: login: localhost [::1] takanobu plaintext user logged in
Feb 11 10:34:00 sv173 imap[3972]: login: localhost [::1] takanobu plaintext user logged in
Feb 11 10:34:30: --- last message repeated 5 times ---
Feb 11 10:35:00 sv173 com.apple.launchd[1] (0x10f290.cron[4006]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:36:14 sv173 ctl_cyrusdb[4051]: checkpointing cyrus databases
Feb 11 10:36:14 sv173 ctl_cyrusdb[4051]: done checkpointing cyrus databases
Feb 11 10:37:47 sv173 Mail[4061]: assertion "(int)(trie->flags.numberOfSons) < MaxNumberOfSons" failed :overflow in the trie
Feb 11 10:38:17: --- last message repeated 551 times ---
Feb 11 10:40:00 sv173 com.apple.launchd[1] (0x10f190.cron[4086]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:41:58 sv173 Safari[4084]: [IMKInputSession handleEvent:] exception caught.¥n NSPortTimeoutException : connection timeout: did not receive reply
Feb 11 10:45:00 sv173 com.apple.launchd[1] (0x10f190.cron[4139]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:45:02 sv173 postfix/tlsmgr[4142]: warning: no entropy source specified with parameter tls_random_source
Feb 11 10:45:02 sv173 postfix/tlsmgr[4142]: warning: encryption keys etc. may be predictable
Feb 11 10:48:24 sv173 /usr/sbin/ocspd[4186]: starting
Feb 11 10:50:00 sv173 com.apple.launchd[1] (0x10f190.cron[4200]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 10:55:00 sv173 com.apple.launchd[1] (0x10f190.cron[4243]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 11:00:00 sv173 com.apple.launchd[1] (0x10f190.cron[4294]): Could not setup Mach task special port 9: (os/kern) no access
Feb 11 11:00:16 sv173 /System/Library/CoreServices/backupd[4302]: Backup requested by automatic scheduler
Feb 11 11:00:16 sv173 /System/Library/CoreServices/back

2008/02/11 09:55 Community User への返信

たまちゃん様
ターミナルを使ってコマンドでメールを私宛に送るときちんと届きます。最新のログをみてもPostfixは稼働しているようです。
ただ、メーリングリストには送れません。今朝以後のメーリングリストのエラーログは以下の通りです。
Feb 11 09:40:44 2008 (2428) SHUNTING: 1202690442.687403+5d468ccade9e64b3b54851b8b48f97480b8418b9
Feb 11 12:47:23 2008 (2428) Uncaught runner exception: unknown encoding: iso-2022-jp
Feb 11 12:47:23 2008 (2428) Traceback (most recent call last):
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/Mailman/Queue/OutgoingRunner.py", line 73, in _dispose
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/Mailman/Handlers/SMTPDirect.py", line 132, in process
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/Mailman/Handlers/Decorate.py", line 177, in process
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/pythonlib/email/MIMEText.py", line 37, in __init__
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/pythonlib/email/Message.py", line 246, in set_payload
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/pythonlib/email/Message.py", line 282, in set_charset
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/pythonlib/email/Charset.py", line 399, in body_encode
File "/BinaryCache/mailman/mailman-126‾18/Root/usr/share/mailman/pythonlib/email/Charset.py", line 282, in convert
LookupError: unknown encoding: iso-2022-jp
Feb 11 12:47:23 2008 (2428) SHUNTING: 1202701643.0956941+669f9f093eb5f2afe097e22356680db62d2e0508

2008/02/11 10:05 Community User への返信

Subject も本文も英語のみのメールをメーリングリスト宛に出してみてエンコーディングエラーが出ないかどうか確かめてはどうでしょうか。
それがクリアできればロックファイルの方のエラーをつぶす段階に入るとよいと思います。
書いていただいたシステムログで気になる点がありますが,取りあえず横に置いておきます。

2008/02/11 10:52 Community User への返信

英文だけでメールを書いてもメーリングリストあてには届きません。Server AdminでPostfixが稼働しているか停止しているかの表示とターミナルコマンドでの捜査結果とがずれています。
sv173:‾ root# postfix stop
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: warning: stopping the Postfix mail system with force
sv173:‾ root# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
sv173:‾ root# postfix stop
postfix/postfix-script: stopping the Postfix mail system
sv173:‾ root# postfix stop
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: warning: stopping the Postfix mail system with force
sv173:‾ root# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
sv173:‾ root#

2008/02/11 11:18 Community User への返信

Postfix と Mailman の連携がうまくとれていないようですね。
確認です。
1.他ドメイン(外部)とのメールのやりとりは問題なくできているでしょうか。
2.別に新たにメーリングリストを作成しても同じくリスト宛には配送できないでしょうか。
postconf -n
を見せていただいてもいいですが,デフォルトで新規インストールして問題が起こっているようなので厄介です。
どういうネットワーク構成か,ドメイン名のサーバへの記述はどうしているかなども関係あるとは思いますが,10.4 のときは動いていたそうですので不思議です。
あ。1は問題ないのですね。うーん。

2008/02/11 11:34 Community User への返信

たびたびのお返事ありがとうございます。私もPostfixとMailmanとの連携上の問題だろうと思っています。
「postconf -n」によって表示される内容は下の通りです。私は固定グローバルIPアドレスを8つもらっています。(したがって実際に利用できるのは5つです。)このうちのひとつのコンピュータをずっとメールサーバとして稼働させています。Tiger Serverです。なんの問題もありません。このネットワークにいま問題となっているもう一台のコンピュータにLeopard Serverをインストールしています。
Last login: Mon Feb 11 13:42:45 on console
sv173:‾ takanobu$ su -
Password:
sv173:‾ root# postfix check
sv173:‾ root# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
sv173:‾ root# postfix sto@
postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
sv173:‾ root# postfix stop
postfix/postfix-script: stopping the Postfix mail system
sv173:‾ root# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
sv173:‾ root# postfix reload
postfix/postfix-script: refreshing the Postfix mail system
sv173:‾ root# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
sv173:‾ root# postfix stop
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: warning: stopping the Postfix mail system with force
sv173:‾ root# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
sv173:‾ root# postfix stop
postfix/postfix-script: stopping the Postfix mail system
sv173:‾ root# postfix stop
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: waiting for the Postfix mail system to terminate
postfix/postfix-script: warning: stopping the Postfix mail system with force
sv173:‾ root# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
sv173:‾ root# postconf -n
alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
enable_server_options = yes
html_directory = no
inet_interfaces = all
mail_owner = _postfix
mailbox_size_limit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 10485760
mydestination = $myhostname,localhost.$mydomain,localhost,sv173.kunihiro.org,kunihiro.org
mydomain = kunihiro.org
mydomain_fallback = localhost
myhostname = sv173.kunihiro.org
newaliases_path = /usr/bin/newaliases
owner_request_special = no
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpd_enforce_tls = no
smtpd_pw_server_security_options = login,plain,cram-md5
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/certificates/Default.crt
smtpd_tls_key_file = /etc/certificates/Default.key
smtpd_use_pw_server = yes
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550

2008/02/11 11:57 Community User への返信

myhostname で書かれているドメイン名をフルで書いてそこにメールを出しても受信できるということですね。
と思って調べていると Takanobu さんとまったく同じ症状の方がいました(証明書関連のエラーには触れられていませんでした)。原因と解決策は不明のままです。
ただパーミッションがおかしくなる件は Leopard Server 共通の問題で,これは明らかにバグでしょう。
Bug Reporting
http://developer.apple.com/bugreporter/
で報告されておくとよいと思います。
それとロックファイルの件は解決されたでしょうか。
私は Tiger Server までは触ったことがありますが,Leopard Server はまだ触ったことがありませんので,実機に基づいてのコメントではないのをご容赦ください。

2008/02/11 12:21 Community User への返信

パーミッションがしばしばおかしくなる現象は英語でのディスカッションボードに書かれていました。私と同じ現象です。何度OSをインストールし直しても同じエラーが生じるのはOSのバグではないかと私も思います。
ロックファイルの件はどのファイルをどうすればいいのかをご教示くださいますか。何から何までおんぶに抱っこですみません。
これからアップルストア銀座に出向いてきます。(クライアント版のLeopardの使用方法を尋ねるために予約をとっています。)たまちゃん様からのお返事がありましたら今夜読ませていただきます。
アドバイス、ほんとうにありがとうございます。

このスレッドはシステム、またはAppleコミュニティチームによってロックされました。 問題解決の参考になる情報であれば、どの投稿にでも投票いただけます。またコミュニティで他の回答を検索することもできます。

メーリングリストがメールを配信してくれません

Apple サポートコミュニティへようこそ
Apple ユーザ同士でお使いの製品について助け合うフォーラムです。Apple Account を使ってご参加ください。