とにかく 試験を してみよう これを 対象に してみよう
Sep 30 06:51:56 nyanta sendmail[10542]: j8TLpsnp010542: ruleset=check_rcpt, arg1=<a231.b233@msa.hinet.net>, relay=220-135-126-62.HINET-IP.hinet.net [220.135.126.62], reject=550 5.7.1... Relaying denied
仮定を してみたことは とにかく これで 試みる
SMTP 接続元の情報 SMTP 接続元の IP アドレス :220.135.126.62 : .D{client_addr} SMTP 接続元の 名前 :220-135-126-62.HINET-IP.hinet.net : .D{client_name} エンベロープ発信者アドレス : 今回は 不明とする : .Dfusr@snd.host エンベロープ受信者アドレス :a231.b233@msa.hinet.net : rcvusr@rcv.host
ほんでもって
# /usr/sbin/sendmail -bt -d21.4 ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > .D{client_addr}220.135.126.62 > ${client_addr} 220.135.126.62 > .D{client_name}220-135-126-62.HINET-IP.hinet.net > ${client_name} 220-135-126-62.HINET-IP.hinet.net > check_rcpt <a231.b233@msa.hinet.net> check_rcpt input: < a231 . b233 @ msa . hinet . net > -----skip subr Local_check_rcpt (185) rewritten as: < a231 . b233 @ msa . hinet . net > $| < a231 . b233 @ msa . hinet . net > Basic_check_rcpt input: < a231 . b233 @ msa . hinet . net > rewrite: RHS $&{deliveryMode} => "i" rewritten as: < i > < a231 . b233 @ msa . hinet . net > rewritten as: < a231 . b233 @ msa . hinet . net > Rcpt_ok input: < a231 . b233 @ msa . hinet . net > ParseRecipient input: < a231 . b233 @ msa . hinet . net > CanonAddr input: < a231 . b233 @ msa . hinet . net > canonify input: < a231 . b233 @ msa . hinet . net > rewritten as: < a231 . b233 @ msa . hinet . net > < @ > rewritten as: < a231 . b233 @ msa . hinet . net > rewritten as: < < a231 . b233 @ msa . hinet . net > > rewritten as: < a231 . b233 @ msa . hinet . net > > rewritten as: < a231 . b233 @ msa . hinet . net > rewritten as: a231 . b233 @ msa . hinet . net rewritten as: a231 . b233 < @ msa . hinet . net > Canonify2 input: a231 . b233 < @ msa . hinet . net > rewrite: RHS $&{daemon_flags} => "(NULL)" rewritten as: $| a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net . > Canonify2 returns: a231 . b233 < @ msa . hinet . net . > rewritten as: a231 . b233 < @ msa . hinet . net . > canonify returns: a231 . b233 < @ msa . hinet . net . > Parse0 input: a231 . b233 < @ msa . hinet . net . > rewritten as: < > a231 . b233 < @ msa . hinet . net . > rewritten as: a231 . b233 < @ msa . hinet . net . > Parse0 returns: a231 . b233 < @ msa . hinet . net . > rewritten as: a231 . b233 < @ msa . hinet . net . > CanonAddr returns: a231 . b233 < @ msa . hinet . net . > rewritten as: < ? > a231 . b233 < @ msa . hinet . net . > rewritten as: < ? > a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net > ParseRecipient returns: a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net > RelayTLS input: rewrite: RHS $&{verify} => "(NULL)" rewritten as: < ? > rewritten as: NO RelayTLS returns: NO rewritten as: a231 . b233 < @ msa . hinet . net > $| NO rewritten as: a231 . b233 < @ msa . hinet . net > rewrite: RHS $&{auth_type} => "(NULL)" -----skip subr Local_Relay_Auth (174) rewritten as: a231 . b233 < @ msa . hinet . net > $| rewrite: RHS $&{auth_type} => "(NULL)" rewritten as: a231 . b233 < @ msa . hinet . net > $| rewritten as: a231 . b233 < @ msa . hinet . net > rewritten as: < ? > < a231 . b233 < @ msa . hinet . net > > rewritten as: < ? > < a231 . b233 < @ msa . hinet . net > > rewritten as: a231 . b233 < @ msa . hinet . net > rewritten as: < ? > a231 . b233 < @ msa . hinet . net > rewritten as: < REMOTE > a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net > Rcpt_ok returns: a231 . b233 < @ msa . hinet . net > rewritten as: < a231 . b233 @ msa . hinet . net > $| @ a231 . b233 < @ msa . hinet . net > Relay_ok input: < a231 . b233 @ msa . hinet . net > rewrite: RHS $&{client_addr} => "220.135.126.62" rewritten as: 220 . 135 . 126 . 62 A input: < 220 . 135 . 126 . 62 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > < ? > < + Connect > < 220 . 135 . 126 . 62 > A input: < 220 . 135 . 126 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 > < ? > < + Connect > < 220 . 135 . 126 . 62 > A input: < 220 . 135 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 > < ? > < + Connect > < 220 . 135 . 126 . 62 > A input: < 220 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > rewritten as: 220 . 135 . 126 . 62 rewritten as: [ 220 . 135 . 126 . 62 ] rewrite: RHS $&{client_resolve} => "(NULL)" rewritten as: < > rewrite: RHS $&{client_name} => "220-135-126-62.HINET-IP.hinet.net" rewritten as: < @ > 220-135-126-62 . HINET-IP . hinet . net rewritten as: < ? > 220-135-126-62 . HINET-IP . hinet . net . rewritten as: < ? > 220-135-126-62 . HINET-IP . hinet . net rewritten as: < ? > < 220-135-126-62 . HINET-IP . hinet . net > rewritten as: < ? > < 220-135-126-62 . HINET-IP . hinet . net > rewritten as: 220-135-126-62 . HINET-IP . hinet . net Relay_ok returns: 220-135-126-62 . HINET-IP . hinet . net rewritten as: O $| 220-135-126-62 . HINET-IP . hinet . net rewritten as: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" Basic_check_rcpt returns: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" rewritten as: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" check_rcpt returns: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" > /quit
何かが抜けてるで?
もうすこし log を見てみようそうして 対象を もう少し 増やして 試験を してみよう、今回の 範囲は これだけ 増やした
Sep 30 06:51:56 nyanta sendmail[10542]: j8TLpsnp010542: ruleset=check_rcpt, arg1=<a231.b233@msa.hinet.net>, relay=220-135-126-62.HINET-IP.hinet.net [220.135.126.62], reject=550 5.7.1... Relaying denied /* 増やした 部分は 以下の 部分である */ Sep 30 06:51:57 nyanta sendmail[10542]: j8TLpsnp010542: from=<smtp2001soho@yahoo.com>, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA, relay=220-135-126-62.HINET-IP.hinet.net [220.135.126.62]
仮定を してみたことは 今回は .Df を 追記して これで 試みる
SMTP 接続元の情報
SMTP 接続元の IP アドレス :220.135.126.62 : .D{client_addr}
SMTP 接続元の 名前 :220-135-126-62.HINET-IP.hinet.net : .D{client_name}
エンベロープ発信者アドレス :smtp2001soho@yahoo.com 今回はこれ : .Dfusr@snd.host
エンベロープ受信者アドレス :a231.b233@msa.hinet.net : rcvusr@rcv.host
ほなら
# ps aux | grep sendmail root 557 0.0 0.1 1344 444 pts/2 S 23:52 0:00 grep sendmail lx:~# /usr/sbin/sendmail -bt -d21.4 ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > .D{client_addr}220.135.126.62 > ${client_addr} 220.135.126.62 > .D{client_name}220-135-126-62.HINET-IP.hinet.net > ${client_name} 220-135-126-62.HINET-IP.hinet.net > .Dfsmtp2001soho@yahoo.com > $f smtp2001soho@yahoo.com > check_rcpt <a231.b233@msa.hinet.net> check_rcpt input: < a231 . b233 @ msa . hinet . net > -----skip subr Local_check_rcpt (185) rewritten as: < a231 . b233 @ msa . hinet . net > $| < a231 . b233 @ msa . hinet . net > Basic_check_rcpt input: < a231 . b233 @ msa . hinet . net > rewrite: RHS $&{deliveryMode} => "i" rewritten as: < i > < a231 . b233 @ msa . hinet . net > rewritten as: < a231 . b233 @ msa . hinet . net > Rcpt_ok input: < a231 . b233 @ msa . hinet . net > ParseRecipient input: < a231 . b233 @ msa . hinet . net > CanonAddr input: < a231 . b233 @ msa . hinet . net > canonify input: < a231 . b233 @ msa . hinet . net > rewritten as: < a231 . b233 @ msa . hinet . net > < @ > rewritten as: < a231 . b233 @ msa . hinet . net > rewritten as: < < a231 . b233 @ msa . hinet . net > > rewritten as: < a231 . b233 @ msa . hinet . net > > rewritten as: < a231 . b233 @ msa . hinet . net > rewritten as: a231 . b233 @ msa . hinet . net rewritten as: a231 . b233 < @ msa . hinet . net > Canonify2 input: a231 . b233 < @ msa . hinet . net > rewrite: RHS $&{daemon_flags} => "(NULL)" rewritten as: $| a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net . > Canonify2 returns: a231 . b233 < @ msa . hinet . net . > rewritten as: a231 . b233 < @ msa . hinet . net . > canonify returns: a231 . b233 < @ msa . hinet . net . > Parse0 input: a231 . b233 < @ msa . hinet . net . > rewritten as: < > a231 . b233 < @ msa . hinet . net . > rewritten as: a231 . b233 < @ msa . hinet . net . > Parse0 returns: a231 . b233 < @ msa . hinet . net . > rewritten as: a231 . b233 < @ msa . hinet . net . > CanonAddr returns: a231 . b233 < @ msa . hinet . net . > rewritten as: < ? > a231 . b233 < @ msa . hinet . net . > rewritten as: < ? > a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net > ParseRecipient returns: a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net > RelayTLS input: rewrite: RHS $&{verify} => "(NULL)" rewritten as: < ? > rewritten as: NO RelayTLS returns: NO rewritten as: a231 . b233 < @ msa . hinet . net > $| NO rewritten as: a231 . b233 < @ msa . hinet . net > rewrite: RHS $&{auth_type} => "(NULL)" -----skip subr Local_Relay_Auth (174) rewritten as: a231 . b233 < @ msa . hinet . net > $| rewrite: RHS $&{auth_type} => "(NULL)" rewritten as: a231 . b233 < @ msa . hinet . net > $| rewritten as: a231 . b233 < @ msa . hinet . net > rewritten as: < ? > < a231 . b233 < @ msa . hinet . net > > rewritten as: < ? > < a231 . b233 < @ msa . hinet . net > > rewritten as: a231 . b233 < @ msa . hinet . net > rewritten as: < ? > a231 . b233 < @ msa . hinet . net > rewritten as: < REMOTE > a231 . b233 < @ msa . hinet . net > rewritten as: a231 . b233 < @ msa . hinet . net > Rcpt_ok returns: a231 . b233 < @ msa . hinet . net > rewritten as: < a231 . b233 @ msa . hinet . net > $| @ a231 . b233 < @ msa . hinet . net > Relay_ok input: < a231 . b233 @ msa . hinet . net > rewrite: RHS $&{client_addr} => "220.135.126.62" rewritten as: 220 . 135 . 126 . 62 A input: < 220 . 135 . 126 . 62 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > < ? > < + Connect > < 220 . 135 . 126 . 62 > A input: < 220 . 135 . 126 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 > < ? > < + Connect > < 220 . 135 . 126 . 62 > A input: < 220 . 135 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 > < ? > < + Connect > < 220 . 135 . 126 . 62 > A input: < 220 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 > < ? > < + Connect > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > A returns: < ? > < 220 . 135 . 126 . 62 > rewritten as: < ? > < 220 . 135 . 126 . 62 > rewritten as: 220 . 135 . 126 . 62 rewritten as: [ 220 . 135 . 126 . 62 ] rewrite: RHS $&{client_resolve} => "(NULL)" rewritten as: < > rewrite: RHS $&{client_name} => "220-135-126-62.HINET-IP.hinet.net" rewritten as: < @ > 220-135-126-62 . HINET-IP . hinet . net rewritten as: < ? > 220-135-126-62 . HINET-IP . hinet . net . rewritten as: < ? > 220-135-126-62 . HINET-IP . hinet . net rewritten as: < ? > < 220-135-126-62 . HINET-IP . hinet . net > rewritten as: < ? > < 220-135-126-62 . HINET-IP . hinet . net > rewritten as: 220-135-126-62 . HINET-IP . hinet . net Relay_ok returns: 220-135-126-62 . HINET-IP . hinet . net rewritten as: O $| 220-135-126-62 . HINET-IP . hinet . net rewritten as: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" Basic_check_rcpt returns: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" rewritten as: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" check_rcpt returns: $# error $@ 5 . 7 . 1 $: "550 Relaying denied" > /quit
これでいいのか?
にゃんたろう 拝!
2006年10月28日 (土) 00:05:26 JST 作成