« ダブル定額マンセー!!!(BlogPet) メイン X40、HDDトラブル・・・orz »

November 7, 2005

Majordomo、ヘッダオーバorz

私は会社で3台のサーバ管理をしてるんですが、その一つはメールサーバです。

業務MLもMajordomoで運用してるんですが、基本コンフィグ(majordomo.cf)はデフォルトで運用してます。

ところがどっこい、"BOUNCE hogehoge@hogehoge.net Header field too long (>1024)"なんてエラーメールがMLオーナ宛に来ちゃいました(汗

まぁ、要するヘッダーが長杉んだょ ヽ(`Д´)ノ バーヤバーヤ ってMajordomoから怒られたわけですなw

この問題打破すべく、さっそくコンフィグをいじることに・・・

まずは、エディタでコンフィグファイルを開きます。

$emacs /usr/bin/majordomo/majordomo.cf

で、↓の部分を検索します。

$MAX_TOTAL_HEADER_LENGTH = 1024;

この部分がヘッダの上限を決めている部分なので、これを適当な大きさにしましょう。

$MAX_TOTAL_HEADER_LENGTH = 5120;

と、まぁこんな感じ。

Sequencerを導入してる人は、

$emacs /usr/bin/majordomo/sequencer

# is this field too long?
if ((($field_len += length($_)) > 1024) && ! defined($approved)) {
 &bounce("Header field too long (>1024)");
 return(undef);
 }

# is this field too long?
if ((($field_len += length($_)) > 5120) && ! defined($approved)) {
 &bounce("Header field too long (>5120)");
 return(undef);
 }

とすればOKです。

まぁ、大したことじゃないけど、ビビるよね。1KB超えるヘッダってw

とりあえず、今回はこれで問題解決 (;´ー`)=3

written by hijiri_KT

トラックバック

このエントリーのトラックバックURL:
http://mokyumokyu.net/cgi-bin/mt/mt-tb.cgi/211

コメント

So not really on the same topic as your post, but I found this today and I just can't resist sharing. Mrs. Agathe’s dishwasher quit working so she called a repairman. Since she had to go to work the next day, she told him, “I’ll leave the key under the mat. Fix the dishwasher, leave the bill on the counter, and I’ll mail you the check. Oh, and by the way…don’t worry about my Doberman. He won’t bother you. But, whatever you do, do NOT under ANY circumstances talk to my parrot!” When the repairman arrived at Mrs. Agathe’s apartment the next day, he discovered the biggest and meanest looking Doberman he had ever seen. But just as she had said, the dog simply laid there on the carpet, watching the repairman go about his business. However, the whole time the parrot drove him nuts with his incessant cursing, yelling and name-calling. Finally the repairman couldn’t contain himself any longer and yelled, “Shut up, you stupid ugly bird!” To which the parrot replied, “Get him, Spike!”

投稿者 Chase : October 16, 2010 6:54 PM

Strange this post is totaly unrelated to what I was searching google for, but it was listed on the first page. I guess your doing something right if Google likes you enough to put you on the first page of a non related search. :)

投稿者 Online Banking Security : October 17, 2010 2:17 PM

I think that is an interesting point, it made me think a bit. Thanks for sparking my thinking cap. Sometimes I get so much in a rut that I just feel like a record.

投稿者 chase internet banking : October 18, 2010 7:10 AM

Thanks a ton

投稿者 free prepaid cell phones : November 4, 2010 11:12 AM

You made good quality points there. I did a Bing search on the topic and identified the majority will trust your blog.

投稿者 free twilight : November 8, 2010 3:03 PM

コメントしてください




保存しますか?