1 / 18

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

臺灣學術網路竹苗區域網路中心 88年暑期網際網路教育訓練及 推廣研習課程 電子郵件系統 ( E-mail) 的 規劃與建置. 交 通 大 學 計 算 機 與網路中 心 陳 昌 盛. 課程概要. E-mail 系統管理 入門簡介 DNS 系統的配合設定 E-mail Server 建置與規劃 sendmail, pop3/imap E-mail 系統測試與 偵錯 使用者端的配合設定 . 0. 從何處取得 E-mail 系統 的相關資訊 ?. 關於 sendmail 的網站 http://www.sendmail.org/

derora
Download Presentation

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

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

  3. 0. 從何處取得E-mail 系統的相關資訊 ? • 關於 sendmail 的網站 • http://www.sendmail.org/ • the O’Reilly DNS bible ‘sendmail’ • Newsgroups: • ‘comp.mail.sendmail’ • 關於 Qpopper 的網站 • http://eudora.qualcomm.com/freeware/qpop_faq.html • 關於 IMAP 的網站 • http://metalab.unc.edu/LDP/HOWTO/mini/Cyrus-IMAP.html

  4. 1. E-mail 系統管理入門 • E-mail: Electronic Mail 電子郵件 • E-mail Server: • SMTP server, POP3/IMAP server • SMTP - Simple Mail Transfer Protocol • 用於 server 之間, 電子郵件的交換 • 單純做 E-mail 的接收處理 • 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 30relay.edu.tw.

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

  9. Sendmail 8.9.x 的安裝與設定 • /etc/mail 子目錄 • /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 cqsam@saturn.seed.net.tw DISCARD • 使用指令 makemap hash access < /etc/mail/access

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

  12. 4. E-mail 系統測試與偵錯 • 系統記錄檔 • 參考 /etc/syslog.conf 的設定 • SMTP server 的測試 • 以 sendmail 8.9.3 為例 • 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 1999 18:56:11 +0800 (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 140.113.4.1... 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 140.113.4.1... telnet: Unable to connect to remote host: Connection refused %

  17. Sendmail 的系統記錄檔 Jul 20 19:30:24 ccserv6 sendmail[1591]: tcpwrappers (unknown, 210.209.58.9) rejection Jul 20 19:30:24 ccserv6 sendmail[1591]: NOQUEUE: Null connection from [210.209.58.9] Jul 20 19:30:31 ccserv6 sendmail[1624]: TAA01624: from=<zacker@ms25.hinet.net>, size=6553, class=0, pri=36553, nrcpts=1, msgid=<000001bed2a2$3aff0900$150c708c@308-3.ce.ntu.edu.tw>, proto=ESMTP, relay=root@dns2.ce.ntu.edu.tw [140.112.13.211] Jul 20 19:30:35 ccserv6 sendmail[1628]: TAA01628: from=<pcyu@alab.ee.nctu.edu.tw>, size=1272, class=0, pri=31272, nrcpts=1, msgid=<002f01bed2a2$3c59b700$0a41808c@PC_010.hsm.cmc.edu.tw>, bodytype=8BITMIME, proto=ESMTP, relay=pcyu@alab05.ee.nctu.edu.tw [140.113.218.5] Jul 20 19:30:36 ccserv6 sendmail[1629]: TAA01628: to=<pearl@cc.nctu.edu.tw>, delay=00:00:01, xdelay=00:00:01, mailer=local, stat=Sent Jul 20 19:30:37 ccserv6 sendmail[1625]: TAA01624: to=<u8533086@cc.Nctu.EDU.TW>, 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 0 0 0 0 Jul 20 19:31:50 ccserv4 popper[6307]: Stats: u8612540 22 565900 0 0 Jul 20 19:31:51 ccserv4 popper[6308]: Stats: u8414801 0 0 3 9043 Jul 20 19:32:26 ccserv4 popper[6313]: Stats: wangcc 4 76748 0 0 Jul 20 19:32:35 ccserv4 popper[6314]: u8414801@a-121.RAS.NCTU.edu.tw: -ERR POP EOF received Jul 20 19:32:35 ccserv4 popper[6314]: Stats: u8414801 0 0 3 9043 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: u8724508 0 0 0 0

More Related