藤田@自己フォローです。 FUJITA Yasushi wrote: > > スプールファイルに > >From bin Wed Oct 20 20:20:20 1999 > という余計な行が入っていることがわかりました。 DM にて的確なアドバイスをいただきました。 メールをいただいた方が、ニュースサーバの調子が悪いということで、 転載許可をいただいております。 === 以下転載 私も、全く同様の現象(>From)に悩んだことがあります。 結果として、私の普段利用しているメイルサーバの設定に起因する物で した。 以下に、そのときの内容を示しますが、参考になれば幸いです。 <当時の環境> ・sendmail は配送エイジェントとして procmail を使用していた。 ・procmail は、UID/GID が root, daemon, uucp, mail 等以外のプロ グラム(デイモン)から呼ばれると、">From" をつける仕様である(*) ・サーバのsendmail.cf では、"Og1" "Ou1" となっていた。 これにより、sendmail は GID=1,UID=1 で動作する。 ・/etc/group, /etc/passwd を見ると、"1" はいずれも "bin" で設定 <問題点> sendmail は、UID=bin,GID=bin で動作しているため、procmail の仕 様に引っかかって、">From" がつくようになった。 <解決策> サーバ管理者に頼み込んで、UID=daemon,GID=daemon になるよう、 sendmail.cf を書き換えてもらった。 (*)参考までに、man procmail からの抜粋を示します。 >MISCELLANEOUS (中略) > When in explicit delivery mode, procmail will generate a > leading `From ' line if none is present. If one is al- > ready present procmail will leave it intact. If procmail > is not invoked with one of the following user or group ids > : root, daemon, uucp, mail, x400, network, list, lists or > news, but still has to generate or accept a new `From ' > line, it will generate an additional `>From ' line to help > distinguish fake mails. 以上です。 === 転載終わり 藤田コメント: CF の場合だと、sendmail.def ファイルの #DEF_UID='1:1' というところを変更するとよいのではないでしょうか。 フォローおよびメールを下さった皆様には、この場を借りて厚く 御礼申し上げます。
References:
- [fol] Re: ノーツによるUnix From line ヘッダの受信についてMORI Kouji
- [fol] Re: ノーツによるUnix From line ヘッダの受信についてFUJITA Yasushi
- [fol] Re: ノーツによるUnix From line ヘッダの受信についてMORI Kouji
- [fol] Re: ノーツによるUnix From line ヘッダの受信についてFUJITA Yasushi
- Prev by Date: [fol] linux-2.2.12 -> linux-2.2.13
- Next by Date: [fol] Re: You hate GPL, dont you?
- Previous by thread: [fol] Re: ノーツによるUnix From line ヘッダの受信について
- Next by thread: [fol] download
- Indexes:[Main][Thread]