戻る

sendmail.8.13.5. test and other

test

# telnet 192.168.0.5 25
Trying 192.168.0.5...
Connected to 192.168.0.5.
Escape character is '^]'.
220 lx.bcnet.ne.jp ESMTP Sendmail 8.13.5/8.13.5; Sat, 4 Mar 2006 00:08:52 +0900
helo happy
250 lx.bcnet.ne.jp Hello root@lx.bcnet.ne.jp [192.168.0.5], pleased to meet you
mail from :mm@lx.bcnet.ne.jp
250 2.1.0 mm@lx.bcnet.ne.jp... Sender ok
rcpt to:mm@nl.bcnet.ne.jp
250 2.1.5 mm@nl.bcnet.ne.jp... Recipient ok
data
354 Enter mail, end with "." on a line by itself
subject:firstmail
Sat Mar  4 00:12:12 JST 2006
.
250 2.0.0 k23F8q3m001456 Message accepted for delivery
quit
221 2.0.0 lx.bcnet.ne.jp closing connection
Connection closed by foreign host.

確認

$ ssh -l mm 192.168.0.8
Password: nyantaroupasswduser
$ su -
Password: nyantaroupasswdroot
# cd /var/spool/mail/
nyanta:/var/spool/mail# ls -l
total 4
-rw-------    1 mm       users         615 Mar  4 00:12 mm
-rw-------    1 ntmail   users           0 Mar  3 18:43 ntmail
-rw-------    1 root     mail            0 Oct 30 16:44 root
-rw-rw----    1 root     root            0 Sep  5 13:22 root.new
# cat mm 
From mm@lx.bcnet.ne.jp  Sat Mar  4 00:12:20 2006
Return-Path: <mm@lx.bcnet.ne.jp>
Received: from lx.bcnet.ne.jp (root@lx.bcnet.ne.jp [192.168.0.5])
        by nyanta.no-ip.info (8.13.4/8.13.4) with ESMTP id k23FCKXp013235
        for <mm@nl.bcnet.ne.jp>; Sat, 4 Mar 2006 00:12:20 +0900
Received: from happy (root@lx.bcnet.ne.jp [192.168.0.5])
        by lx.bcnet.ne.jp (8.13.5/8.13.5) with SMTP id k23F8q3m001456
        for mm@nl.bcnet.ne.jp; Sat, 4 Mar 2006 00:10:25 +0900
Date: Sat, 4 Mar 2006 00:08:52 +0900
From: mm@lx.bcnet.ne.jp
Message-Id: <200603031510.k23F8q3m001456@lx.bcnet.ne.jp>
subject: firstmail

Sat Mar  4 00:12:12 JST 2006

pop & mew

# cat /etc/inetd.conf | grep pop
# pop2  stream  tcp     nowait  root    /usr/sbin/tcpd  in.pop2d
pop3    stream  tcp     nowait  root    /usr/sbin/tcpd  ipop3d
pop3s   stream  tcp     nowait  root    /usr/sbin/tcpd  ipop3d
# The ipop3d POP3 server is part of the Pine distribution.  If you've
# installed the Pine package, you may wish to switch to ipop3d by 
# commenting out the pop3 line above, and uncommenting the pop3 line below.
#pop3    stream  tcp     nowait  root    /usr/sbin/tcpd  ipop3d

hosts.allow & mew.el

$ pwd
/home/mm

edit mew.el

$ cp .mew.el .mew.el_org
$ diff -s .mew.el .mew.el_org
4c4
< ;;                            Time-stamp: <2006-03-05 12:34:18 mm>
---
> ;;                            Time-stamp: <2002-08-20 03:36:30 cyamauch>
13,15c13,15
< ;(setq mew-mail-domain (getenv "HOSTNAME"))
< ;(setq mew-mailbox-type 'mbox)
< ;(setq mew-mbox-command "mewinc")
---
> (setq mew-mail-domain (getenv "HOSTNAME"))
> (setq mew-mailbox-type 'mbox)
> (setq mew-mbox-command "mewinc")
20c20
< (setq mew-user "ntmail")
---
> 
23c23
< (setq mew-mail-domain "nyanta.no-ip.info")
---
> 
26c26
< (setq mew-pop-auth 'pass)
---
> 
29c29
< (setq mew-pop-user "ntmail")
---
> 
32c32
< (setq mew-pop-server "192.168.0.8")
---
> 
37c37
< (setq mew-smtp-server "192.168.0.8")
---
> 

edit hosts.allow

$ cp /etc/hosts.allow .
$ pwd
/home/mm/0001_first-step
$ emacs hosts.allow &
# cd /etc/
# cp hosts.allow 0004_hosts.allow 
# cp /home/mm/0001_first-step/hosts.allow .
# diff -s hosts.allow 0004_hosts.allow 
11d10
< ipop3d : 192.168.0.5,192.168.0.6,192.168.0.7,192.168.0.8
14d12
< 

にゃんたろう 拝!
2006年 3月14日 (火) 22:33:48 JST 作成


戻る

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