ここは 見ないで 下さい 誤解して 色々 試行錯誤した 状況
計算機 A 計算機B ADSL ---internet user aruyuser user aruyuser | nyanco.kingdom.of.cat coco.kingdom.of.cat hub --AB 並列 192.168.38.231 192.168.38.123 koro.catland.kingdom (外部に対して)sendmail は 両方とも 動作させている 計算機 A は testxxx.cf を 色々 動作 させている 計算機B は sendmail を background で 動かしている。 通常は 計算機 B が D{REMOTE} で D{HUB} に なるようであるが 素人のにゃん たろうは そんなことに 気づかずに 計算機 A のみで 色々 試みた これを参考 に する方は 不幸にも このような 間違いをした 人には 役にたつかもしれない
前置きはさておいて 組合せの 問題であろう さてこの場合 誤解と しても D{REMOTE} とと D{HUB} の 組合せは 反対の様に 感じるが
$ cat test21.cf V10/Berkeley D{REMOTE}koro.catland.kingdom D{HUB}nyanco.kingdom.of.cat Cwtuika Fw -o /home/aruyuser/v_work/test.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=10, R=20/40, 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}
色々試しているので 設定ファイルの 名前は 同じで も 内容が 変割ってい ます。
$ /usr/sbin/sendmail -Ctest21.cf aruyuser Mhub: Warning: first argument in [IPC] mailer must be TCP or FILE To:aruyuser Subject:test First This is First try . $ ls -l fakemqueue/ | sed -e 1d -rw------- 1 aruyuser users 18 10月 9日 09:26 dfk990PSeG000752 -rw------- 1 aruyuser users 272 10月 9日 09:26 qfk990PSeG000752 $ cat fakemqueue/qfk990PSeG000752 V6 T1160353528 K1160353560 N1 P30044 MDeferred: Connection refused by koro.catland.kingdom. Fbs $_aruyuser@localhost ${daemon_flags}c u Saruyuser Aaruyuser@nyanco.kingdom.of.cat MDeferred: Connection refused by koro.catland.kingdom. rRFC822; aruyuser@nyanco.kingdom.of.cat RPFD:aruyuser H??To: aruyuser H??Subject: test First . $ cat fakemqueue/dfk990PSeG000752 This is First try
一見 時間が経てば 送られるのでは 無いかと 思うが 基本的には 駄目
# cat messages Oct 9 09:26:00 nyanco sendmail[752]: k990PSeG000752: \ from=aruyuser, size=44, class=0, nrcpts=1, relay=aruyuser@localhost Oct 9 09:26:00 nyanco sendmail[754]: k990PSeG000752: \ to=aruyuser, ctladdr=aruyuser (1000/100), delay=00:00:32, xdelay=00:00:00, \ mailer=hub, pri=30044, relay=koro.catland.kingdom. [999.888.777.666], \ dsn=4.0.0, stat=Deferred: Connection refused by koro.catland.kingdom. # ls -l syslog -rw-r----- 1 root root 0 Oct 9 09:25 syslog
こんどは (設定ファイルの名前は同じだが 内容を 変えてあります)どうで しょうか?
$ cat test21.cf V10/Berkeley D{REMOTE}koro.catland.kingdom D{HUB}koro.catland.kingdom Cwtuika Fw -o /home/aruyuser/v_work/test.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=10, R=20/40, 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}
へい 試行しませう
$ /usr/sbin/sendmail -Ctest21.cf aruyuser Mhub: Warning: first argument in [IPC] mailer must be TCP or FILE To:aruyuser Subject:test 2nd This is 2nd try .
どうですか?
$ ls -l fakemqueue/ | sed -e 1d -rw------- 1 aruyuser users 16 10月 9日 09:34 dfk990XDEZ000771 -rw------- 1 aruyuser users 270 10月 9日 09:34 qfk990XDEZ000771 $ cat fakemqueue/qfk990XDEZ000771 V6 T1160353993 K1160354040 N1 P30040 MDeferred: Connection refused by koro.catland.kingdom. Fbs $_aruyuser@localhost ${daemon_flags}c u Saruyuser Aaruyuser@nyanco.kingdom.of.cat MDeferred: Connection refused by koro.catland.kingdom. rRFC822; aruyuser@nyanco.kingdom.of.cat RPFD:aruyuser H??To: aruyuser H??Subject: test 2nd . $ cat fakemqueue/dfk990XDEZ000771 This is 2nd try
待機ですか?
# cat messages Oct 9 09:34:00 nyanco sendmail[771]: k990XDEZ000771: \ from=aruyuser, size=40, class=0, nrcpts=1, relay=aruyuser@localhost Oct 9 09:34:00 nyanco sendmail[773]: k990XDEZ000771: \ to=aruyuser, ctladdr=aruyuser (1000/100), delay=00:00:47, xdelay=00:00:00, \ mailer=hub, pri=30040, relay=koro.catland.kingdom. [999.888.777.666], \ dsn=4.0.0, stat=Deferred: Connection refused by koro.catland.kingdom. # ls -l syslog -rw-r----- 1 root root 0 Oct 9 09:25 syslog
あかんちゅうことですわ!
これが 最初いけると思ったパターン なのですが
$ cat test21.cf V10/Berkeley D{REMOTE}nyanco.kingdom.of.cat D{HUB}koro.catland.kingdom Cwtuika Fw -o /home/aruyuser/v_work/test.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=10, R=20/40, 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}
ほたら
$ /usr/sbin/sendmail -Ctest21.cf aruyuser Mhub: Warning: first argument in [IPC] mailer must be TCP or FILE To:aruyuser Subject:test 3rd This is 3rd try . $ ls -l fakemqueue/ | sed -e 1d -rw------- 1 aruyuser users 454 10月 9日 09:43 Qfk990hZ7r000805 -rw------- 1 aruyuser users 941 10月 9日 09:43 dfk990hZ7r000805 $ cat fakemqueue/Qfk990hZ7r000805 V6 T1160354615 K0 /* K1 が K0 T 云々は 無くなった */ N0 /* N1 が N0 に なった */ P61064 I8/5/706666 Fr $_localhost $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 /* postmaster に 対しても なにかしようと している */ H??MIME-Version: 1.0 H??Content-Type: multipart/report; report-type=delivery-status; boundary="k990hZ7r000805.1160354615/nyanco.kingdom.of.cat" H??Subject: Returned mail: see transcript for details H??Auto-Submitted: auto-generated (failure) . $ cat fakemqueue/dfk990hZ7r000805 /* 本来データー のみのはずだが */ This is a MIME-encapsulated message --k990hZ7r000805.1160354615/nyanco.kingdom.of.cat The original message was received at Mon, 9 Oct 2006 09:43:01 +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 --k990hZ7r000805.1160354615/nyanco.kingdom.of.cat Content-Type: message/delivery-status Reporting-MTA: dns; nyanco.kingdom.of.cat Arrival-Date: Mon, 9 Oct 2006 09:43:01 +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: Mon, 9 Oct 2006 09:43:35 +0900 --k990hZ7r000805.1160354615/nyanco.kingdom.of.cat Content-Type: message/rfc822 To: aruyuser Subject: test 3rd This is 3rd try --k990hZ7r000805.1160354615/nyanco.kingdom.of.cat--
q ファイルが Q ファイルに なっちまっただ!また postmaster に 対して も なにか 訴えようと している様子が 感じられる
# cat messages Oct 9 09:43:35 nyanco sendmail[803]: k990h17s000803: \ from=aruyuser, size=40, class=0, nrcpts=1, relay=aruyuser@localhost Oct 9 09:43:35 nyanco identd[807]: Connection from nyanco.kingdom.of.cat Oct 9 09:43:35 nyanco identd[807]: \ from: 192.168.38.231 ( nyanco.kingdom.of.cat ) for: 32831, 25 Oct 9 09:43:35 nyanco sendmail[806]: k990hZSV000806: \ aruyuser@nyanco.kingdom.of.cat [192.168.38.231]\ did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Oct 9 09:43:35 nyanco sendmail[805]: k990h17s000803: \ to=aruyuser, ctladdr=aruyuser (1000/100), delay=00:00:34, xdelay=00:00:00, \ mailer=hub, pri=30040, \ relay=nyanco.kingdom.of.cat. [192.168.38.231], dsn=5.3.5, stat=Local configuration error Oct 9 09:43:35 nyanco sendmail[805]: k990h17s000803: k990hZ7r000805: \ DSN: Local configuration error Oct 9 09:43:35 nyanco sendmail[805]: k990hZ7r000805: \ to=aruyuser,postmaster, delay=00:00:00, xdelay=00:00:00, \ mailer=hub, pri=61064, \ relay=nyanco.kingdom.of.cat., dsn=5.3.5, stat=Local configuration error Oct 9 09:43:35 nyanco sendmail[805]: k990hZ7r000805: k990hZ7s000805: \ return to sender: Local configuration error Oct 9 09:43:36 nyanco sendmail[805]: k990hZ7s000805: \ to=postmaster, delay=00:00:01, xdelay=00:00:00, mailer=hub, pri=32088, \ relay=nyanco.kingdom.of.cat., dsn=5.3.5, stat=Local configuration error
めためた じゃが パニック いうとるで どうしたもんか のう??
# cat syslog Oct 9 09:43:35 nyanco sendmail[805]: k990h17s000803: \ SYSERR(aruyuser): nyanco.kingdom.of.cat. config error: mail loops back to me (MX problem?) Oct 9 09:43:36 nyanco sendmail[805]: k990hZ7r000805: \ Losing ./qfk990hZ7r000805: savemail panic Oct 9 09:43:36 nyanco sendmail[805]: k990hZ7r000805: \ SYSERR(aruyuser): savemail: cannot save rejected email anywhere
どうしよっもない!
これで最後だよ
$ cat test21.cf V10/Berkeley D{REMOTE}nyanco.kingdom.of.cat D{HUB}nyanco.kingdom.of.cat Cwtuika Fw -o /home/aruyuser/v_work/test.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=10, R=20/40, 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}
さあどうなる
$ /usr/sbin/sendmail -Ctest21.cf aruyuser
Mhub: Warning: first argument in [IPC] mailer must be TCP or FILE
To:aruyuser
Subject:test 4th
This is 4th try
.
$ cat fakemqueue/Qfk990prKV000826
V6
T1160355113
K0
N0
P61064
I8/5/706666
Fr
$_localhost
$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="k990prKV000826.1160355113/nyanco.kingdom.of.cat"
H??Subject: Returned mail: see transcript for details
H??Auto-Submitted: auto-generated (failure)
.
$ cat fakemqueue/dfk990prKV000826
This is a MIME-encapsulated message
--k990prKV000826.1160355113/nyanco.kingdom.of.cat
The original message was received at Mon, 9 Oct 2006 09:51:15 +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
--k990prKV000826.1160355113/nyanco.kingdom.of.cat
Content-Type: message/delivery-status
Reporting-MTA: dns; nyanco.kingdom.of.cat
Arrival-Date: Mon, 9 Oct 2006 09:51:15 +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: Mon, 9 Oct 2006 09:51:53 +0900
--k990prKV000826.1160355113/nyanco.kingdom.of.cat
Content-Type: message/rfc822
To: aruyuser
Subject: test 4th
This is 4th try
--k990prKV000826.1160355113/nyanco.kingdom.of.cat--
うううーーんん!
# cat messages Oct 9 09:51:53 nyanco sendmail[824]: k990pFKW000824: \ from=aruyuser, size=40, class=0, nrcpts=1, relay=aruyuser@localhost Oct 9 09:51:53 nyanco identd[829]: Connection from nyanco.kingdom.of.cat Oct 9 09:51:53 nyanco identd[829]: \ from: 192.168.38.231 ( nyanco.kingdom.of.cat ) for: 32836, 25 Oct 9 09:51:53 nyanco sendmail[827]: k990pr2I000827: \ aruyuser@nyanco.kingdom.of.cat [192.168.38.231]\ did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Oct 9 09:51:53 nyanco sendmail[826]: k990pFKW000824: \ to=aruyuser, ctladdr=aruyuser (1000/100), \ delay=00:00:38, xdelay=00:00:00, mailer=hub, pri=30040, \ relay=nyanco.kingdom.of.cat. [192.168.38.231], dsn=5.3.5, stat=Local configuration error Oct 9 09:51:53 nyanco sendmail[826]: k990pFKW000824: k990prKV000826: \ DSN: Local configuration error Oct 9 09:51:53 nyanco sendmail[826]: k990prKV000826: \ to=aruyuser,postmaster, \ delay=00:00:00, xdelay=00:00:00, mailer=hub, pri=61064, \ relay=nyanco.kingdom.of.cat., dsn=5.3.5, stat=Local configuration error Oct 9 09:51:53 nyanco sendmail[826]: k990prKV000826: k990prKW000826: \ return to sender: Local configuration error Oct 9 09:51:53 nyanco sendmail[826]: k990prKW000826: \ to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=hub, pri=32088, \ relay=nyanco.kingdom.of.cat., dsn=5.3.5, stat=Local configuration error
うううーーんん! 言う言葉が ないわ
# cat syslog Oct 9 09:51:53 nyanco sendmail[826]: k990pFKW000824: \ SYSERR(aruyuser): nyanco.kingdom.of.cat. config error: \ mail loops back to me (MX problem?) Oct 9 09:51:53 nyanco sendmail[826]: k990prKV000826: \ Losing ./qfk990prKV000826: savemail panic Oct 9 09:51:53 nyanco sendmail[826]: k990prKV000826: \ SYSERR(aruyuser): savemail: cannot save rejected email anywhere
いずれにしても これじゃ 阿寒 さむーー
にゃんたろう 拝!
2006年10月 8日 (日) 21:21:18 JST 作成