77;20202;0ccatbody - よくきたWiki

Loading ...


*1

*4

remote-delivery.png
local-delivery.png

retrieval.png

$ host -t mx <domain> <nameserver>

*5

SMTP*6

  1. *7

POP3*8

IMAP*9

  1. *10

*11

MTAsendmail
Postfix
exim
MRAcyrus-imapd
dovecot

MTAPostfix
MRAdovecot
server.fedora.no-ip.org
192.168.1.0/24

# /usr/bin/yum install postfix
# /bin/service sendmail stop
# /bin/service exim stop
# /bin/chkconfig sendmail off
# /bin/chkconfig exim off

# /usr/sbin/alternatives --config mta

# /usr/sbin/alternatives --config mta
There are 3 programs which provide 'mta'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/sbin/sendmail.sendmail
   2           /usr/sbin/sendmail.exim
   3           /usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number: 3

myhostname
mydomain
myorigin
inet_interfaces
mydestination
mynetworks
relay_domains
mailbox_size_limit
message_size_limit
# /usr/sbin/postconf
"dd# Global Postfix configuration file. This file lists only a subset"

webmaster@fedora.no-ip.org

#webmaster:     root

# /sbin/service postfix start

$ /usr/bin/telnet localhost 25
$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.12.11/8.12.11; Thu, 14 Oct 2004 09:38:37 +0900
HELO localhost.localdomain
250 localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
MAIL FROM: <webmaster@fedora.no-ip.org>
250 2.1.0 <webmaster@fedora.no-ip.org>... Sender ok
RCPT TO: <webmaster@fedora.no-ip.org>
250 2.1.5 <webmaster@fedora.no-ip.org>... Recipient ok (will queue)
DATA
354 Enter mail, end with "." on a line by itself
From: <webmaster@fedora.no-ip.org>
To: <webmaster@fedora.no-ip.org>
Subject: test mail

hello!!

.
250 2.0.0 i9E0cb2E003027 Message accepted for delivery
QUIT
221 2.0.0 localhost.localdomain closing connection
Connection closed by foreign host.

# ls -la /var/spool/mail/



# /usr/bin/yum install dovecot
# /bin/service cyrus-imapd stop
# /bin/chkconfig cyrus-imapd off

protocols

telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK dovecot ready.

+OK

+OK Logged in.

+OK 1 605

+OK 1 messages:
1 605
.

+OK 605 octets
Return-Path: <root@fedora.no-ip.org>
X-Original-To: webmaster@fedora.no-ip.org
Delivered-To: webmaster@fedora.no-ip.org
Received: by server.fedora.no-ip.org (Postfix, from userid 0)
        id 570EC4049; Fri, 15 Oct 2004 09:11:49 +0900 (JST)
From: <webmaster@fedora.no-ip.org>
To: <webmaster@fedora.no-ip.org>
Subject: test mail
Message-Id: <20041015001149.570EC4049@server.fedora.no-ip.org>
Date: Fri, 15 Oct 2004 09:11:49 +0900 (JST)
Status: O
X-UID: 10
Content-Length: 8
X-IMAPbase: 1097715083 10
X-Keywords:                                                                          

hello!

.

+OK Logging out.
Connection closed by foreign host.

telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK dovecot ready.

A000 OK Logged in.

* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 1 EXISTS
* 0 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1097715083] UIDs valid
* OK [UIDNEXT 11] Predicted next UID
A001 OK [READ-WRITE] Select completed.

* 1 FETCH (UID 10)
A002 OK Fetch completed.

* 1 FETCH (FLAGS (\Seen) RFC822 {605}
Return-Path: <root@fedora.no-ip.org>
X-Original-To: webmaster@fedora.no-ip.org
Delivered-To: webmaster@fedora.no-ip.org
Received: by server.fedora.no-ip.org (Postfix, from userid 0)
        id 570EC4049; Fri, 15 Oct 2004 09:11:49 +0900 (JST)
From: <webmaster@fedora.no-ip.org>
To: <webmaster@fedora.no-ip.org>
Subject: test mail
Message-Id: <20041015001149.570EC4049@server.fedora.no-ip.org>
Date: Fri, 15 Oct 2004 09:11:49 +0900 (JST)
Status: O
X-UID: 10
Content-Length: 8
X-IMAPbase: 1097715083 10
X-Keywords:                                                                          

hello!
)
A003 OK Fetch completed.

* BYE Logging out
A004 OK Logout completed.
Connection closed by foreign host.

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = localhost.localdomain
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
# /sbin/service postfix reload

pwcheck_method: saslauthd
pwcheck_method: auxprop

# /usr/sbin/saslpasswd2 -c webmaster

# /usr/bin/sasldblistusers2
webmaster@localhost.localdomain: userPassword

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 server.fedora.no-ip.org ESMTP Postfix
EHLO localhost.localdomain
250-server.fedora.no-ip.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH DIGEST-MD5 PLAIN CRAM-MD5 LOGIN
250-XVERP
250 8BITMIME
QUIT
221 Bye
Connection closed by foreign host.

  1. *12

security-01.png
110POP3
143IMAP
993IMAP over SSL
995POP3 over SSL

security-02.png

$ telnet fedora.no-ip.org 25
Trying 218.217.3.225...
Connected to fedora.no-ip.org.
Escape character is '^]'.
220 server.fedora.no-ip.org ESMTP Postfix
HELO
501 Syntax: HELO hostname
HELO elf.no-ip.org
250 server.fedora.no-ip.org
MAIL FROM: <elf@elf.no-ip.org>
250 Ok
RCPT TO: <webmaster@elf.no-ip.org>

$ perl -MMIME::Base64 -e 'print encode_base64("NAME\0NAME\0PASS")'

$ telnet fedora.no-ip.org 25
Trying 218.217.3.225...
Connected to fedora.no-ip.org.
Escape character is '^]'.
220 server.fedora.no-ip.org ESMTP Postfix
EHLO elf.no-ip.org
250-server.fedora.no-ip.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH DIGEST-MD5 PLAIN CRAM-MD5 LOGIN
250 8BITMIME
AUTH PLAIN d2VibWFzdGVyAHdlYm1hc3RlcgBwYXNz
235 Authentication successful
MAIL FROM: <elf@elf.no-ip.org>
250 Ok
RCPT TO: <webmaster@elf.no-ip.org>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
From: <elf@elf.no-ip.org>
To: <elf@elf.no-ip.org>
Subject: test

test

.
250 Ok: queued as A13754039
QUIT
221 Bye
Connection closed by foreign host.

no-ip.com-01.png

no-ip.com-02.png

*13

host -t mx fedora.no-ip.org
fedora.no-ip.org mail is handled by 5 fedora.no-ip.org.



*1
*2
*3
*4
*5
*6
*7
*8
*9
*10
*11
*12
*13

添付ファイル: filesecurity-02.png 903件 [詳細] filesecurity-01.png 891件 [詳細] fileno-ip.com-02.png 935件 [詳細] fileno-ip.com-01.png 991件 [詳細] fileretrieval.png 943件 [詳細] fileremote-delivery.png 1010件 [詳細] filelocal-delivery.png 935件 [詳細]
リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS
最終修正日時: Tue, 21 Jun 2005 13:15:58 JST (4595d)
文字数(HTML): 5925
文字数(Wiki): 18193
人気ブログランキング - よくきた wiki