確認試験を 行っているのだけれど /var/spool/mqueue/ に 相当するものと して /home/aruyuser/v_work/fakemqueue/ を 取り敢えず使うようにしてある場合 q ファイル として Qfk9A1xWGg000368 とか qfk9A24xb9000394 が残される 現 状は 正常に 配信されない 状況である 大文字の Q... の場合は sendmail が background で動作している場合 で 小文字の q... の 場合は sendmail を background で 動作させない場合である 大文字の 場合は 何らかの 不都合とい う理由である ここでその sample を 表示しておく いずれの場合も 不都合なも のの 例である
sendmail が background で 動作中 というより 停止していたのを 動かす
# ps ax | grep sendmail | grep -v grep /* 起動はしていない */
# cat /var/run/sendmail.pid /* まず /var/run/sendmail.pid を みて */
86
/usr/sbin/sendmail -bd -q15m
# /usr/sbin/sendmail -bd -q15m /* 起動する */
# ps ax | grep sendmail | grep -v grep
355 ? S 0:00 sendmail: accepting connections
# cat messages
Oct 10 10:57:15 nyanco sendmail[355]: starting daemon (8.12.11): SMTP+queueing@00:15:00
# :>messages
/* ============ 起動確認 完了 =========== */
/* sendmail が background で 動作中 に なった */
$ ls fakemqueue/ /* mqueue/ の中身を 確認 何も無い */
/* 送信試験を 始める */
$ /usr/sbin/sendmail -Ctest25.cf aruyuser
Mhub: Warning: first argument in [IPC] mailer must be TCP or FILE
To:aruyuser
Subject:test First
This is First try
.
/* ~~~~~~~~ 送信試験 完了 ~~~~~~~~~~~~~~~~~~~ */
$ ls fakemqueue/ /* mqueue/ の中身を 確認 Qfk9A1xWGg000368 他存在している */
Qfk9A1xWGg000368 dfk9A1xWGg000368
# cat syslog /* 不都合故 log 確認 すると */
Oct 10 10:59:32 nyanco sendmail[368]: k9A1wrGh000365: \
SYSERR(aruyuser): nyanco.kingdom.of.cat. config error: mail loops back to me (MX problem?)
Oct 10 10:59:32 nyanco sendmail[368]: \
k9A1xWGg000368: Losing ./qfk9A1xWGg000368: savemail panic
Oct 10 10:59:32 nyanco sendmail[368]: \
k9A1xWGg000368: SYSERR(aruyuser): savemail: cannot save rejected email anywhere
# cat messages
Oct 10 10:59:32 nyanco sendmail[365]: k9A1wrGh000365: \
from=aruyuser, size=44, class=0, nrcpts=1, relay=aruyuser@localhost
Oct 10 10:59:32 nyanco identd[371]: Connection from nyanco.kingdom.of.cat
Oct 10 10:59:32 nyanco identd[371]: \
from: 192.168.38.231 ( nyanco.kingdom.of.cat ) for: 32784, 25
Oct 10 10:59:32 nyanco sendmail[369]: k9A1xWJL000369: \
aruyuser@nyanco.kingdom.of.cat [192.168.38.231] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Oct 10 10:59:32 nyanco sendmail[368]: k9A1wrGh000365: \
to=aruyuser, ctladdr=aruyuser (1000/100), \
delay=00:00:39, xdelay=00:00:00, mailer=hub, pri=30044, \
relay=nyanco.kingdom.of.cat. [192.168.38.231], dsn=5.3.5, stat=Local configuration error
Oct 10 10:59:32 nyanco sendmail[368]: k9A1wrGh000365: k9A1xWGg000368: \
DSN: Local configuration error
Oct 10 10:59:32 nyanco sendmail[368]: k9A1xWGg000368: \
to=aruyuser,postmaster, \
delay=00:00:00, xdelay=00:00:00, mailer=hub, pri=61068, \
relay=nyanco.kingdom.of.cat., dsn=5.3.5, stat=Local configuration error
Oct 10 10:59:32 nyanco sendmail[368]: k9A1xWGg000368: k9A1xWGh000368: \
return to sender: Local configuration error
Oct 10 10:59:32 nyanco sendmail[368]: k9A1xWGh000368: \
to=postmaster, \
delay=00:00:00, xdelay=00:00:00, mailer=hub, pri=32092,
relay=nyanco.kingdom.of.cat., \
dsn=5.3.5, stat=Local configuration error
/* 何が 悪いのかは 現時点では 不明だが mqueue/ 相当の 中身を 見る */
/* これだけ 追加されている */
$ ls -l fakemqueue/ | sed -e 1d
-rw------- 1 aruyuser users 454 10月 10日 10:59 Qfk9A1xWGg000368
-rw------- 1 aruyuser users 948 10月 10日 10:59 dfk9A1xWGg000368
/* まず Qfk9A1xWGg000368 について */
$ cat fakemqueue/Qfk9A1xWGg000368
V6 /* ヴァージョン 関連 何故 V6 なのか不明 */
T1160445572 /* 日付と時間を 秒単位 最初に置かれた時間 */
K0 /* 日付と時間を 秒単位 前回の配信から次回の 配信までの時間 */
N0 /* 配信回数 0 零から始める 配信毎に 増える */
P61068 /* 優先順位 値が少ないほど 優先順位が 大 */
I8/5/706666 /* inode 情報 壊れた時に I major/minor/ino */
Fr /* 通知情報 いけたか駄目か? */
$_localhost /* マクロ $r 詳細不明 */
$r /* マクロ $r */
$slocalhost
${daemon_flags}c u
SMAILER-DAEMON /* まあ 送り手 */
rRFC822; postmaster@nyanco.kingdom.of.cat
RPF:postmaster /* まあ 受け手 */
rRFC822; aruyuser@nyanco.kingdom.of.cat
RPF:aruyuser /* まあ 受け手 */
H??To: aruyuser /* ヘッダー関連 */
H??To: postmaster
H??MIME-Version: 1.0
H??Content-Type: multipart/report; report-type=delivery-status;
boundary="k9A1xWGg000368.1160445572/nyanco.kingdom.of.cat"
H??Subject: Returned mail: see transcript for details
H??Auto-Submitted: auto-generated (failure)
. /* 有効な情報の 終わり */
/* ======================================== */
/* 他に沢山の 説明が 有るようですが わからない */
/* 本来なら 送信データー だけなのだが */
$ cat fakemqueue/dfk9A1xWGg000368
This is a MIME-encapsulated message
--k9A1xWGg000368.1160445572/nyanco.kingdom.of.cat
The original message was received at Tue, 10 Oct 2006 10:58:53 +0900
from aruyuser@localhost
----- The following addresses had permanent fatal errors -----
aruyuser
(reason: 553 5.3.5 system config error)
----- Transcript of session follows -----
553 5.3.5 nyanco.kingdom.of.cat. config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error
--k9A1xWGg000368.1160445572/nyanco.kingdom.of.cat
Content-Type: message/delivery-status
Reporting-MTA: dns; nyanco.kingdom.of.cat
Arrival-Date: Tue, 10 Oct 2006 10:58:53 +0900
Final-Recipient: RFC822; aruyuser@nyanco.kingdom.of.cat
Action: failed
Status: 5.3.5
Diagnostic-Code: SMTP; 553 5.3.5 system config error
Last-Attempt-Date: Tue, 10 Oct 2006 10:59:32 +0900
--k9A1xWGg000368.1160445572/nyanco.kingdom.of.cat
Content-Type: message/rfc822
To: aruyuser
Subject: test First
This is First try
--k9A1xWGg000368.1160445572/nyanco.kingdom.of.cat--
/* ==== とにかく 不味いので postmaster にも 送ろうとしている ==== */
sendmail を 停止 した場合での 送信試験
# ps ax | grep sendmail | grep -v grep /* 起動しているか調査 */
355 ? S 0:00 sendmail: accepting connections
# kill 355
# ps ax | grep sendmail | grep -v grep
# :>messages
# :>syslog
$ ls fakemqueue/
Qfk9A1xWGg000368 dfk9A1xWGg000368
$ rm fakemqueue/*
$ ls fakemqueue/
/* ============ 前準備 完了 ========= 同じ条件入力 ========= */
$ /usr/sbin/sendmail -Ctest25.cf aruyuser
Mhub: Warning: first argument in [IPC] mailer must be TCP or FILE
To:aruyuser
Subject:test First
This is First try
.
/* 試験 送信 完了 */
$ ls fakemqueue/
dfk9A24xb9000394 qfk9A24xb9000394
/* 今回は 小文字の q... ファイルが 出来ている 少し正常に なった */
# cat syslog /* syslog には 何も記録されていない */
# cat messages
Oct 10 11:05:26 nyanco sendmail[394]: k9A24xb9000394: from=aruyuser, size=44,class=0, nrcpts=1, \
relay=aruyuser@localhost
Oct 10 11:05:26 nyanco sendmail[397]: k9A24xb9000394: \
to=aruyuser, ctladdr=aruyuser (1000/100), \
delay=00:00:27, xdelay=00:00:00, mailer=hub, pri=30044, \
relay=nyanco.kingdom.of.cat. [192.168.38.231], \
dsn=4.0.0, stat=Deferred: Connection refused by nyanco.kingdom.of.cat.
/* 何方にしても 正常では無い */
$ ls -l fakemqueue/ | sed -e 1d
-rw------- 1 aruyuser users 18 10月 10日 11:05 dfk9A24xb9000394
-rw------- 1 aruyuser users 266 10月 10日 11:05 qfk9A24xb9000394
/* mqueue/ の ファイルを 覗いて 見よう */
$ cat fakemqueue/qfk9A24xb9000394
V6
T1160445899
K1160445926 /* Q... の 場合は K0 だが 今回は 或る 有期の 時間が設定された */
N1 /* ここに 来るまでに 1回は 送信が 試みられた Q... の場合は N0 */
P30044 /* Q... よりは 少ない数字 あまり 根拠は 無いが */
MDeferred: Connection refused by nyanco.kingdom.of.cat. /* お断りの 理由 */
Fbs
$_aruyuser@localhost
${daemon_flags}c u
Saruyuser
Aaruyuser@nyanco.kingdom.of.cat
MDeferred: Connection refused by nyanco.kingdom.of.cat.
rRFC822; aruyuser@nyanco.kingdom.of.cat
RPFD:aruyuser
H??To: aruyuser
H??Subject: test First
.
/* 何方にしても 送れない データーファイルは すっきりしている */
$ cat fakemqueue/dfk9A24xb9000394
This is First try
/* 何かがおかしいだけで有ろう もう少しであるが 理由はわからない */
どうも いまひとつ 重大な 誤解をしているようだ 根本的な 間違いしてるよ うだ 関連ファイル 1式 以下に 提示
$ cat test25.cf
V10/Berkeley
D{REMOTE}nyanco.kingdom.of.cat
D{HUB}koro.catland.kingdom
Cwtuika
Fw -o /home/aruyuser/v_work/atest.cw
O QueueDirectory=/home/aruyuser/v_work/fakemqueue
O Timeout.queuewarn=4h
O Timeout.queuereturn=5d
O DeliveryMode=background
O TempFileMode=0600
O DefaultUser=1:1
O LogLevel=9
O OldStyleHeaders=True
O BlankSub=.
Mhub, P=[IPC], S=Hubset, R=0, F=mDFMuXa, T=DNS/RFC822/SMTP, A=IPC $h
Mlocal, P=/bin/mail, F=lsDFMAw5:/|@rmn, S=0, R=0, A=mail -d $u
S0
R@$+ $#error $: Missing user name
R$+ $#hub $@${REMOTE} $:$1
S3
R$* <> $* $n handle <> error address
R$* < $* < $* > $* > $* $2 < $3 > $4 de-nest brackets
R$* < $* > $* $2 basic RFC822 parsing
SHubset
R$- $@ $1@${HUB}
R$-@$=w $@ $1@${HUB}
R$-@$=w.$m $@ $1@${HUB}
=========================
$ cat atest.cw
infile
localhost
[127.0.0.1]
localhost.localdomain
======================
にゃんたろう 拝!
2006年10月10日 (火) 21:48:27 JST 作成 開始