qmail
fixcrioのプロセスが残る
10月 19th
先日のhotmail MTA対策を運用していて、少し問題があるので、解決方法を書きます。
■問題 qmial-smtpdをdaemontoolで起動しているのですが、fixcrioプロセスが1日に5個ぐらいのペースで残っていきます。fixcrioを使う前まではこの現象がなかったのでfixcrioが原因の可能性が極めて高いです。
root 23043 0.0 0.0 1332 144 ? S Oct16 0:00 /usr/local/bin/fixcrio qmail-smtpd vchkpw true root 26764 0.0 0.0 1336 148 ? S Oct16 0:00 /usr/local/bin/fixcrio qmail-smtpd vchkpw true root 30459 0.0 0.0 1332 144 ? S Oct16 0:00 /usr/local/bin/fixcrio qmail-smtpd vchkpw true root 31536 0.0 0.0 1332 148 ? S Oct16 0:00 /usr/local/bin/fixcrio qmail-smtpd vchkpw true root 640 0.0 0.0 1332 144 ? S Oct16 0:00 /usr/local/bin/fixcrio qmail-smtpd vchkpw true root 7865 0.0 0.0 1336 184 ? S Oct17 0:00 /usr/local/bin/fixcrio qmail-smtpd vchkpw true root 10241 0.0 0.0 1336 192 ? S Oct17 0:00 /usr/local/bin/fixcrio qmail-smtpd vchkpw true More >
qmailがhotmailのメールを受信しなくなった
10月 8th
この設定よりこちらの設定の方が適切です。(2009年10月22日追記) http://www.tymy.net/~matsu/blog/2009/10/19/fixcrio%E3%81%AE%E3%83%97%E3%83%AD%E3%82%BB%E3%82%B9%E3%81%8C%E6%AE%8B%E3%82%8B/
hotmailから自社サーバにメールを送ったら、1日後に以下のエラーメール。
This is an automatically generated Delivery Status Notification.
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipients has been delayed.
2日後に以下のエラーメール。
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server.
が送り元のhotmailアカウントへ届くようになった。 現象は10月1日ぐらいから。
ここの掲示板でも盛り上がってたように、問題はhotmailから送ってくるSMTPの中身が問題。 http://forum.tsukaeru.net/viewtopic.php?t=4337
解決のために、/usr/local/bin/fixcrioを追加して、一件落着。
% cd /service/smtpd % cat run #!/bin/sh PATH=/usr/local/bin:/var/qmail/bin:/home/vpopmail/bin/:$PATH exec /usr/local/bin/softlimit -m 15000000 \ tcpserver -R -H -l0 -v -x /home/vpopmail/etc/tcp.smtp.cdb -u qmaild -g nofiles 0 smtp \ /usr/local/bin/rblsmtpd -r blocked.rbl -r bl.spamcop.net \ /usr/local/bin/fixcrio \ qmail-smtpd www.example.com vchkpw true 2>&1More >
qmail log
2月 21st
2009-01-21 23:10:15.386280500 new msg 819216 2009-01-21 23:10:15.419363500 info msg 819216: bytes 5249 from qp 27362 uid 2005 2009-01-21 23:10:15.466129500 starting delivery 127180: msg 819216 to local foo@example.com 2009-01-21 23:10:15.466132500 status: local 2/10 remote 0/20 2009-01-21 23:10:15.466133500 delivery 127179: success: did_0+1+0/qp_27362/ 2009-01-21 23:10:15.466135500 status: local 1/10 remote 0/20 2009-01-21 23:10:15.482058500 end msg 819215 2009-01-21 23:10:15.522811500 delivery 127180: success: did_0+0+1/ 2009-01-21 23:10:15.522814500 status: local 0/10 remote 0/20 2009-01-21 23:10:15.522815500 end msg 819216
qmailの挙動を追うために、qmailのログを見ていると、メッセージのID(new msg xxxxのxxxxの所)がいっぱい重複していた。 このメッセージIDはinode番号らしい。だから、重複する。(トラッキングしづらくて困るけど)
delivery idはincrementされた数字なので、しばらくの期間は重複しない。
qmail-date-localtime.patch
3月 15th
あちらこちらでリンク切れになっているのでコピーしておきます。
こんな風にすれば適応できます。
% wget ftp://ftp.jp.qmail.org/qmail/qmail-1.03.tar.gz % wget http://www.tymy.net/%7Ematsu/blog/wp-content/uploads/2008/03/qmail-date-localtime.patch % tar zxf qmail-1.03.tar.gz % cd qmail-1.03 % patch < ../qmail-date-localtime.patch
dot-qmailハマった。。。
11月 27th
dot-qmailのパイプを使ってプログラムを実行しようとしていたけど、以下のエラーが出て実行できなかった!
@40000000474be69c2d94c514 delivery 476: deferral: bash:_receipt_mail.sh_:_No_such_file_or_directory/
ファイルは存在するのに、全然見てくれない。
いろいろ妄想しました、、、、
- chroot勝手にされているのか?
- .qmailは600にしないといけないのか?
- qmail自体がバグったのか?
- /binにpathが通っていないのか?
とか。。。6時間ぐらい費やした。しかし上記はすべてハズレ!
原因は改行コード。dot-qmailの最後の行に\rが入ってたためです。エラーログにも出てこないのでトラブルシュートが辛かった。。。
改行コード 凸(`、´メ)
写真アーカイブ
11月 26th
外国の方向けに写真サイトを作ってみました。
Zenphotoで作りました。Zenphotoはインストールが簡単でしかもファイルをサーバのファイルシステム上に置けば、それを自動的に認識してページを作ってくれます。meta情報はファイル名と関連づけられてデータベースに保存されています。
Qmail patch for using IP alias or Multiple NIC.
3月 25th
Enable to send mails using multiple Network Interface cards using qmail. http://www.gadgetwiz.com/software/outgoingip.patch
By default of qmail setting, qmail try to send main IP address of the host. By using this patch, qmail will send mails from IP addresses which are written in qmail/control/outgoingip. May be the delimiter of outgoingip file is .
qmail scannerとか
9月 24th
あついなぁ.
http://sylvestre.ledru.info/howto/howto_qmail_spamassassin.php
http://www.y-min.or.jp/~nob/qmail/qmail-scanner.html
ezmlmのprefix設定方法
10月 11th
————— ezmlm設定メモ ————— ■説明 ezmlmをインストールした後,デフォルトの設定では いろいろ不便なのでこれらの設定を行う.
ezmlmのprefixの振り方はとっても頭が悪いので, fmlなどと同じようなprefixがふれるようにした. ————— ■デフォルトで,Reply-toがつくようにする
/usr/local/bin/ezmlm/ezmlmrc の321行目あたりに Reply-to: < #L#>@< #H#>
————— ■デフォルトでprefixナンバーがつくように /usr/local/bin/ezmlm/ezmlmrc の440行目あたりに [< #L#> #]
————— ■きれいな通し番号を
http://www.ep.sci.hokudai.ac.jp/~epnetfan/tebiki/server-ml/prefix.html
参照
/home/vpopmail/ に置く. # chown vpopmail.vchkpw /home/vpopmail/prefix.pl # chmod u+x /home/vpopmail/prefix.pl
250行目あたりコメントアウト #|< #B#>/ezmlm-send ‘< #D#>‘
これを追加 |/usr/bin/nkf -em |/home/vpopmail/prefix.pl < #L#> ‘/home/vpopmail/domains/< #H#>/< #L#>/num’ |/usr/bin/nkf -j |/usr/local/bin/ezmlm/ezmlm-send ‘/home/vpopmail/domains/< #H#>/< #L#>‘
———prefix.pl————————
#!/usr/bin/perl # # This is a pert of the Dongury Perl library. # Copyright (C) 1999 Dongury Entertainment Corporation # All rights reserved. # # Based on the program written by Kyoma TAKAHASHI. # Many thanks for his advice! # # prefix.pl ver 0.3.6 # modified by Yuki Matsukura 2003/10/11 # ######################################### $UseLock = 1; # True : 1, False : 0 $FormatIndex = 4; More >
最近のコメント