戻る

前へ

0007 sendmail send remote option -v

sendmail -v user@remote.area.koko < list_letter

外部に送信した場合 というか 他の計算機の ユーザーに 送信した場合の 振 舞を 以下に 示します 送信元
ユーザー :nyanco
計算機 の 名前 :tama.catland.kingdom
IPアドレス :192.168.38.231

受信先
ユーザー :user8
計算機 の 名前 :koro.catland.kingdom
IPアドレス :192.168.38.123
今回 nyanco@tama.catland.kingdom ---> user8@koro.catland.kingdom
nyanco から user8 さん に お手紙を 送ります。そのときの お話の 内容です。

$ /usr/sbin/sendmail -v user8@koro.catland.kingdom < list_first 
user8@koro.catland.kingdom... Connecting to [127.0.0.1] via relay...
220 tama.catland.kingdom ESMTP Sendmail 8.12.11/8.12.11; Tue, 26 Sep 2006 22:47:550900
>>> EHLO tama.catland.kingdom
250-tama.catland.kingdom Hello nyanco@localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<nyanco@tama.catland.kingdom> SIZE=27
250 2.1.0 <nyanco@tama.catland.kingdom>... Sender ok
>>> RCPT To:<user8@koro.catland.kingdom>
>>> DATA
250 2.1.5 <user8@koro.catland.kingdom>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 k8QDlt0C000475 Message accepted for delivery
user8@koro.catland.kingdom... Sent (k8QDlt0C000475 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 tama.catland.kingdom closing connection

”>>>” は 送信側 ”数字で始まるもの受信側 での やり取りです

IP 192.168.38.231 side

送信側の /var/log/messages の 内容を 見てみましょう

# cat messages 
Sep 26 22:47:55 tama sendmail[474]: 
k8QDlter000474: 
from=nyanco, size=27, class=0, nrcpts=1, 
msgid=<200609261347.k8QDlter000474@tama.catland.kingdom>, 
relay=nyanco@localhost

Sep 26 22:47:55 tama identd[477]: Connection from localhost

Sep 26 22:47:55 tama identd[477]: from: 127.0.0.1 ( localhost ) for: 32824, 25

Sep 26 22:47:55 tama sendmail[475]: 
k8QDlt0C000475: 
from=<nyanco@tama.catland.kingdom>, size=299, class=0, nrcpts=1, 
msgid=<200609261347.k8QDlter000474@tama.catland.kingdom>, 
proto=ESMTP, daemon=MTA, 
relay=nyanco@localhost [127.0.0.1]

Sep 26 22:47:55 tama sendmail[474]: 
k8QDlter000474: 
to=user8@koro.catland.kingdom, 
ctladdr=nyanco (1000/100), 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30027, 
relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, 
stat=Sent (k8QDlt0C000475 Message accepted for delivery)

Sep 26 22:47:55 tama identd[480]: Connection from koro.catland.kingdom

Sep 26 22:47:55 tama identd[480]: from: 192.168.38.123 ( koro.catland.kingdom ) for: 32826, 25

Sep 26 22:47:55 tama sendmail[479]: 
k8QDlt0C000475: 
to=<user8@koro.catland.kingdom>, 
ctladdr=<nyanco@tama.catland.kingdom> (1000/100), 
delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30299, 
relay=koro.catland.kingdom. [192.168.38.123], 
dsn=2.0.0, 
stat=Sent (k8QDltXi025123 Message accepted for delivery)

IP 192.168.38.123 side

受信側の /var/log/messages の 内容を 見てみましょう

# cat messages 
Sep 26 22:47:55 nyanta sendmail[25123]: 
k8QDltXi025123: 
from=<nyanco@tama.catland.kingdom>, size=484, class=0, nrcpts=1, 
msgid=<200609261347.k8QDlter000474@tama.catland.kingdom>, 
proto=ESMTP, daemon=MTA, 
relay=root@tama.catland.kingdom [192.168.38.231]

Sep 26 22:47:55 nyanta in.comsat[25126]: connect from localhost

Sep 26 22:47:55 nyanta sendmail[25124]: 
k8QDltXi025123: 
to=<user8@koro.catland.kingdom>, 
ctladdr=<nyanco@tama.catland.kingdom> (1000/100), 
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30690, 
dsn=2.0.0, 
stat=Sent

IP 192.168.38.123 side

# cat /var/spool/mail/user8 
From nyanco@tama.catland.kingdom  Tue Sep 26 22:47:55 2006
Return-Path: <nyanco@tama.catland.kingdom>
Received: from tama.catland.kingdom (root@tama.catland.kingdom [192.168.38.231])
        by koro.catland.kingdom (8.13.4/8.13.4) with ESMTP id k8QDltXi025123
        for <user8@koro.catland.kingdom>; Tue, 26 Sep 2006 22:47:55 +0900
Received: from tama.catland.kingdom (nyanco@localhost [127.0.0.1])
        by tama.catland.kingdom (8.12.11/8.12.11) with ESMTP id k8QDlt0C000475
        for <user8@koro.catland.kingdom>; Tue, 26 Sep 2006 22:47:55 +0900
Received: (from nyanco@localhost)
        by tama.catland.kingdom (8.12.11/8.12.11/Submit) id k8QDlter000474
        for user8@koro.catland.kingdom; Tue, 26 Sep 2006 22:47:55 +0900
Date: Tue, 26 Sep 2006 22:47:55 +0900
From: nyanco@tama.catland.kingdom
Message-Id: <200609261347.k8QDlter000474@tama.catland.kingdom>

First letter from nyanco. 

このような 動きをしているのでしょう


前へ

戻る

にゃんたろう 拝!
2006年 9月27日 (水) 22:18:12 JST 作成

Copyright © 2004.-2007. nyantarou All Rights Reserved.