
IIS Insider は月刊のコラムで、Microsoft Internet Information Services についてのトラブルシューティングおよび活用方法に関する質問に答えることを目的として作成されています。
| Q | 次の各 FTP ログ エントリは何を意味するのですか? 下記の個々の質問を見てください。
#Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2005-10-10 10:10:13 #Fields: time c-ip cs-username s-port cs-method cs-uri-stem sc-status …… ………………. 10:54:13 ip1 anonymous@ftp.msft.com 21 [135]USER anonymous@ftp.msft.com 331 10:54:13 ip1 - 21 [135]PASS - 530 11:48:04 ip2 anonymous 21 [136]USER anonymous 331 11:48:04 ip2 - 21 [136]PASS Cgpuser@you.com 530 13:50:27 ip3 Anonymous 21 [137]USER Anonymous 331 13:50:27 ip3 - 21 [137]PASS guest@me.net 530 17:40:30 ip4 anonymous 21 [138]USER anonymous 331 17:40:30 ip4 - 21 [138]PASS IEUser@ 530 17:40:30 ip4 anonymous 21 [139]USER anonymous 331 17:40:30 ip4 - 21 [139]PASS IEUser@ 530 17:40:41 ip4 Administrator 21 [140]USER Administrator a) 上記の第 1 番目のログ エントリで、[135] および 331 は何を意味しますか? このステータス コードに関する詳細情報はどこで見つけることができますか? | ||||||||||||||||||||||||||||||||||||||||||
| A | 各質問を見ていく前に、このログ ファイルでどの「フィールド」がログ インされているかを理解することが重要です。この場合、フィールドは次の通りです。 time c-ip cs-username s-port cs-method cs-uri-stem sc-status 次の表は各フィールドによりどの情報がキャプチャされるかを示しています。
それでは、個々の質問を見ていきましょう。 質問 (a):上記の最初のログ エントリで、[135] および 331 は何を意味していますか? この状態コードに関する詳細情報はどこで見つけることができますか? 質問 (b): Windows 2000 Server を実行している私のコンピュータには anonymous@ftp.msft.comがありません。また、匿名アクセスは許可していませんでした。このユーザーはユーザー名を推測することによりログオンしようとしているのですか? 質問(c):2 行目で、PASS – 530 とはユーザーがログオンしなかったことを意味しているのですか? 質問 (d): 6 行目で、電子メール アドレスはなぜ PASS と 530 の間にあるのですか? 質問 (e): 8 行目の最後で、IEUser@ がなぜ PASS フィールドにあるのですか? 質問 (f): 最後の 2 つのログ エントリは FTP にログオンしたユーザーを示しているのですか? |
| Q | CDOSYS を使用してメールを送信する ASP アプリケーションがあります。しかし、すべてのメールがキュー フォルダにスタックしていることに気づきました。この問題に対しどのようにトラブルシューティングを行なうことができますか? | |
| A | これは IIS SMTP についての一般的な質問です。まず、次のサポート技術情報に記載されているステップにしたがうことにより、トラブルシューティングを始めることを推奨します。Pickup フォルダにファイルを置くことによって送信メールの流れをテストする方法 (英語) これは単に SMTP の基本的な機能をテストするものです。このサポート技術情報では、指定された形式でプレーン テキスト ファイルを作成します。SMTP が機能している場合、メールは配信されます。
D:\Tools\SmtpDiag>SmtpDiag.exe "sender@sender.com" "foobar@foobar.com" /v
Searching for Exchange external DNS settings.
Computer name is XXXXX.
Failed to connect to the domain controller. Error: 8007054b ?<-- You can ignore this if you are
not in Active Directory domain.
Checking SOA for foobar.com.
Checking external DNS servers.
Checking internal DNS servers.
Checking TCP/UDP SOA serial number using DNS server [xxx.xxx.xxx.xxx].
TCP test succeeded.
UDP test failed. ?<-- Windows 2000 Server behavior
Serial number: 2004092100
Checking TCP/UDP SOA serial number using DNS server [xxx.xxx.xxx.xxx].
TCP test succeeded.
UDP test failed.
Serial number: 2004092100
SOA serial number match: Passed.
Checking local domain records.
Starting TCP and UDP DNS queries for the local domain. This test will try to validate that DNS is set up correctly
for inbound mail. This test can fail for 3 reasons.
1) Local domain is not set up in DNS. Inbound mail cannot be routed to local mailboxes.
2) Firewall blocks TCP/UDP DNS queries. This will not affect inbound mail, but will affect outbound mail.
3) Internal DNS is unaware of external DNS settings. This is a valid configuration for certain topologies.
Checking MX records using TCP: sender.com.
A: sender.com [xxx.xxx.xxx.xxx]
Checking MX records using UDP: sender.com.
A: sender.com [xxx.xxx.xxx.xxx]
Both TCP and UDP queries succeeded. Local DNS test passed.
Checking remote domain records.
Starting TCP and UDP DNS queries for the remote domain. This test will try to validate that DNS is set up correctly
for outbound mail. This test can fail for 3 reasons.
1) Firewall blocks TCP/UDP queries which will block outbound mail. Windows 2000/NT Server requires TCP DNS queries.
Windows Server 2003 will use UDP queries first, then fall back to TCP queries.
2) Internal DNS does not know how to query external domains. You must either use an external DNS server or
configure DNS server to query external domains.
3) Remote domain does not exist. Failure is expected.
Checking MX records using TCP: foobar.com.
MX: gsmtp171.foo.com (10)
MX: gsmtp57.foo.com (20)
A: gsmtp171.foo.com [64.233.171.27]
A: gsmtp57.foo.com [216.239.57.27]
Checking MX records using UDP: foobar.com.
MX: gsmtp171.foo.com (10)
MX: gsmtp57.foo.com (20)
Both TCP and UDP queries succeeded. Remote DNS test passed.
Checking MX servers listed for foobar@foobar.com.
Connecting to gsmtp171.foo.com [64.233.171.27] on port 25.
Received:
220 mx.foobar.com ESMTP 73si601551rna
Sent:
ehlo sender.com
Received:
250-mx.foobar.com at your service
250-SIZE 20971520
250 8BITMIME
Sent:
mail from: <sender@sender.com>
Received:
250 OK
Sent:
rcpt to: <foobar@foobar.com>
Received:
250 OK
Sent:
quit
Received:
221 mx.foobar.com closing connection
Successfully connected to gsmtp171.foo.com.
Connecting to gsmtp57.foo.com [216.239.57.27] on port 25.
Received:
220 mx.foobar.com ESMTP v71si245850cwb
Sent:
ehlo sender.com
Received:
250-mx.foobar.com at your service
250-SIZE 20971520
250 8BITMIME
Sent:
mail from: <sender@sender.com>
Received:
250 OK
Sent:
rcpt to: <qbernard@foobar.com>
Received:
250 OK
Sent:
quit
Received:
221 mx.foobar.com closing connection
Successfully connected to gsmtp57.foo.com.
このため、行なう必要のあることは、ベースとして出力を使用し、次に各問題のエリアに焦点を当てることです。たとえば、 SMTPDiag が MX レコードを解決できないことを示す場合、SMTP ホストは TCP/UDP ポート 53 を介し MX レコードをクエリできることをチェックしてください。 |
| Q | 私は IIS、バージョン 5.0 または 6.0、HTTP.sys (ASP に特定)、URLScan などで強制されているすべての異なるサイズの制限に混乱をきたしています。手助けしていただけますか? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A | それはとてもよい質問です。そのご苦労はよくわかります。私自身も時々混乱します。それではどのように考えてみましょうか。まず、ブラウザの制限から見てみましょう。HTTP GET リクエストについて、Internet Explorer はそのリクエストを、サポート技術情報「 [IE] URL に使用可能な文字数は最大 2,083 文字 (英語)」 の通り、2,083 文字に制限します。 これは、サポート技術情報に説明されているように HTTP POST には当てはまりません。 HTTP GET および POST に関する詳細情報は、RFC 2616 (英語) の HTTP/1.1 メソッドの定義をご覧ください。
* URLScan をインストールしている場合、URLScan.ini. に追加のリクエスト制限の設定を設定することができます。URLScan に関する詳細情報は、「 IIS の URLScan を使用する (英語)」 をご覧ください。 さらに IIS 6.0 には HTTP.sys 設定があります。詳細情報は、「IIS 用の Http.sys レジストリ設定 (英語)」をご覧ください。
次は URLScan リクエストの制限の設定です。
上記の表で、これらは URLScan 2.5 の既定の構成の設定であることに注意してください。URLScan.ini ファイルで変更が行なわれます。また、特定のリクエスト ヘッダーに自分特有のリクエストの制限を課すこともできます。詳細情報は、「IIS の URLScan を使用する(英語)」をご覧ください。
これらの設定は IIS 6.0 に URLScan により提供される機能または構成の一部に間接的に変換されることに注意してください。IIS 6.0 で URLScan を適用するかどうかを決定するためには、「IIS 6.0 で URLScan 2.5 を使用するかどうかを決定する」 の欄をご覧ください。変更は次のレジストリ キーで行うことができます。 ![]() 図 3.1 IIS のリクエスト制限 OK! これですべてです。IIS での異なるリクエストの制限の設定をよりよくご理解いただけたことを願います。それでは次回まで、ごきげんよう! |
これまでの IIS Insider コラムの質問と答えの一覧は、ここをクリック してください。