Presentation is loading. Please wait.

Presentation is loading. Please wait.

臺灣學術網路竹苗區域網路中心 88年暑期網際網路教育訓練及 推廣研習課程 電子郵件系統 ( ) 的 規劃與建置

Similar presentations


Presentation on theme: "臺灣學術網路竹苗區域網路中心 88年暑期網際網路教育訓練及 推廣研習課程 電子郵件系統 ( ) 的 規劃與建置"— Presentation transcript:

1 臺灣學術網路竹苗區域網路中心 88年暑期網際網路教育訓練及 推廣研習課程 電子郵件系統 (E-mail) 的 規劃與建置
交 通 大 學 計 算 機 與網路中 心 陳 昌 盛

2 課程概要 E-mail 系統管理入門簡介 DNS 系統的配合設定 E-mail Server 建置與規劃
sendmail, pop3/imap 系統測試與偵錯 使用者端的配合設定

3 0. 從何處取得E-mail 系統的相關資訊 ? 關於 sendmail 的網站 http://www.sendmail.org/
the O’Reilly DNS bible ‘sendmail’ Newsgroups: ‘comp.mail.sendmail’ 關於 Qpopper 的網站 關於 IMAP 的網站

4 1. E-mail 系統管理 入門 E-mail: Electronic Mail 電子郵件 E-mail Server:
SMTP server, POP3/IMAP server SMTP - Simple Mail Transfer Protocol 用於 server 之間, 電子郵件的交換 單純做 的接收處理 POP3 - Post Office Protocol version 3 IMAP - Internet Mail Access Protocol

5 圖 1. 電子郵件接收系統運作圖 網際網路 SMTP-server SMTP server (1) (1b) (1c) 硬碟 POP3/IMAP server (2) 瀏覽程式 MSIE , Netscape

6 圖 2 外送電子郵件系統運作示意圖 Internet 網際網路 SMTP server (2) 電子郵件傳送 server SMTP-server (1) MSIE, Netscape 等 瀏覽程式

7 2. DNS 上 的相關配合設定 ; e-mail 最終目的地 ==> E-mail: cschen@cc.nctu.edu.tw
cc.nctu.edu.tw. IN MX 10 ccserv6.cc.nctu.edu.tw. ; mail relay ==> 宜善加利用, 可作為“備援與轉接”之用 cc.nctu.edu.tw. IN MX 20 mx.nctu.edu.tw. ; 高速專用道 (MOECC) cc.nctu.edu.tw. IN MX 30 relay.edu.tw.

8 3. E-mail 系統的規劃與建置 SMTP server pop3 server Sendmail 8.9.3
FreeBSD 3.2 有內建 pop3 server qpopper 2.53, 必須另行安裝

9 Sendmail 8.9.x 的安裝與設定 /etc/mail 子目錄 關於 anti-relaying 的設定
/etc/sendmail.cf 的設定 (text file) 關於 anti-relaying 的設定 /etc/mail/relay-domains (text file) /etc/mail/access (database)

10 /etc/mail/access 的設定 Ccserv6.cc.nctu.edu.tw 上的設定範例
cc.nctu.edu.tw relay # UCE/UBE ms.new.net.tw REJECT ts30.hinet.net DISCARD dialup.seed.net.tw DISCARD DISCARD 使用指令 makemap hash access < /etc/mail/access

11 Pop3 的安裝 取得 qpopper 2.53 的程式 編輯 /etc/services 編輯 /etc/inetd.conf
編譯及安裝 (或直接取得執行檔) 編輯 /etc/services pop /tcp # Post Office 編輯 /etc/inetd.conf pop3 stream tcp nowait root /usr/local/lib/qpopper qpopper -s

12 4. E-mail 系統測試與偵錯 系統記錄檔 SMTP server 的測試 POP3 server 的測試
參考 /etc/syslog.conf 的設定 SMTP server 的測試 以 sendmail 為例 POP3 server 的測試 以 安裝 qpopper 2.53 為例

13 SMTP server 的簡易測試 % telnet ns1.nctu.edu.tw 25 Trying...
Connected to ns1.nctu.edu.tw. Escape character is '^]'. 220 Nctu.EDU.TW ESMTP Sendmail 8.9.3/8.9.1; Tue, 20 Jul :56: (CST) quit 221 Nctu.EDU.TW closing connection Connection closed by foreign host.

14 SMTP server 的簡易測試 (2) SMTP server 並沒有跑起來 % ping ccserv.cc.nctu.edu.tw
ccserv.cc.nctu.edu.tw is alive % telnet ccserv.cc.nctu.edu.tw smtp Trying telnet: Unable to connect to remote host: Connection refused %

15 Pop3 server 的簡易測試 % telnet ns1.nctu.edu.tw 110 Trying...
Connected to ns1.nctu.edu.tw. Escape character is '^]'. +OK POP3 ns1 v7.59 server ready quit +OK Sayonara Connection closed by foreign host.

16 Pop3 server 的簡易測試(2) POP3 server 沒有跑起來 % ping ccserv.cc.nctu.edu.tw
ccserv.cc.nctu.edu.tw is alive % telnet ccserv.cc.nctu.edu.tw pop3 Trying telnet: Unable to connect to remote host: Connection refused %

17 Sendmail 的系統記錄檔 Jul 20 19:30:24 ccserv6 sendmail[1591]: tcpwrappers (unknown, ) rejection Jul 20 19:30:24 ccserv6 sendmail[1591]: NOQUEUE: Null connection from [ ] Jul 20 19:30:31 ccserv6 sendmail[1624]: TAA01624: size=6553, class=0, pri=36553, nrcpts=1, proto=ESMTP, [ ] Jul 20 19:30:35 ccserv6 sendmail[1628]: TAA01628: size=1272, class=0, pri=31272, nrcpts=1, bodytype=8BITMIME, proto=ESMTP, [ ] Jul 20 19:30:36 ccserv6 sendmail[1629]: TAA01628: delay=00:00:01, xdelay=00:00:01, mailer=local, stat=Sent Jul 20 19:30:37 ccserv6 sendmail[1625]: TAA01624: delay=00:00:06, xdelay=00:00:05, mailer=local, stat=Sent #

18 Pop3 server 系統記錄檔 Jul 20 19:31:29 ccserv4 popper[6306]: Stats: inet Jul 20 19:31:50 ccserv4 popper[6307]: Stats: u Jul 20 19:31:51 ccserv4 popper[6308]: Stats: u Jul 20 19:32:26 ccserv4 popper[6313]: Stats: wangcc Jul 20 19:32:35 ccserv4 popper[6314]: -ERR POP EOF received Jul 20 19:32:35 ccserv4 popper[6314]: Stats: u Jul 20 19:32:36 ccserv4 popper[6315]: (v2.53) Unable to get canonical name of client, err = 0 Jul 20 19:32:47 ccserv4 popper[6317]: Stats: u


Download ppt "臺灣學術網路竹苗區域網路中心 88年暑期網際網路教育訓練及 推廣研習課程 電子郵件系統 ( ) 的 規劃與建置"

Similar presentations


Ads by Google