歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 郵件系統詳解(1)

郵件系統詳解(1)

日期:2017/2/27 14:19:32   编辑:更多Linux
  首先簡單的介紹一下郵件系統,主要由兩部分組成:smtp協議(簡單郵件傳輸協議) 和pop3(郵局協議version 3),smtp用於郵件在網絡中的傳遞(mailer),而pop處理 客戶端郵件的接收。由於pop3的局限,將來肯定要被imap代替,imap有較好的目錄 服務能力,可以在下載之前看到郵件的主要信息如來源、標題等,還可以遠程刪除 郵件等,但目前ISP還不會輕易用它來替換pop.注意不要與IAP的POP搞混淆了,那 是當前接入點的意思(Point Of Present)。學得越多越糊塗:-( 最早在Linux傳遞郵件用的是smtp服務,在/etc/inetd.conf裡可以看到這樣一行: #smtp stream tcp nowait root /usr/bin/smtpd smtpd 現在基本都用sendmail這樣功能強大的deamon程序來做(nntp也是如此)。所以 sendmail只是郵件傳遞者(mailer),它把這個主機上的郵件發送到其他地方,注意 到配置DNS時有一項MX(Mail eXchang,郵件網關),使用sendmail在你的網內要有一 個DNS服務器。而處理主機上遠程客戶的郵件服務則要有pop服務,查看inetd.conf 有這麼幾項: pop-2 stream tcp nowait root /usr/sbin/tcpd ipop2d pop-3 stream tcp nowait root /usr/sbin/tcpd ipop3d imap stream tcp nowait root /usr/sbin/tcpd imap 再查看/etc/service就知道它們對應的端口號,用telnet host-name port試試能 看到什麼?Linux這樣的東西通常是用來做服務的,當然有很多人把它用作個人桌 面也不錯,但是新手就不知道如何去收他們在ISP的郵件了,其實很簡單,只需要 裝個pop/imap的客戶端軟件就行了,netscape的套件就是很好的選擇,KDE帶的郵 件客戶端軟件也不錯,支持多帳號,就是不直接支持中文(用zhXwin吧),或者用 fetchmail把郵件抓回來轉發到本地主機的客戶,在本地主機上用mail程序來讀。 我感覺mail程序好象是直接處理郵件隊列,不知對不對。使用mail程序問得最多 的問題是,在輸入正文時怎麼結束?另起一行輸入一個"."就行了! 上面講的是現在internet上的郵件系統,在internet出現以前電子郵件系統就有了, 比如在uUCp/BBS上,還有其它類型的網絡上,就在internet發達的今天,這樣的網 絡系統仍然與之並存。AOL、贏海威(IHWY)的網絡上就不是標准的Internet電子郵件。 我以前就上過電信局的基於X.25網(准確的說應該是中國公用分組交換數據網CHINAPAC) 的電子郵件系統,優點是真正的帳號漫游,缺點是速度太慢(至多9600bps,x.25本來就 不快),後來承諾要建一個X.400網關與Internet上的郵件系統轉發信件,也不知道後來 怎樣了,因為我早已不用它,在IP over everthing的今天...... 關於mail list功能,可以用sendmail的別名來做,或者用專門的軟件 href="http://infosite.heha.net/linux/[email protected]/pub/majordomo/default.htm">majordomo. 到中國自由軟件庫或者 href="http://ftp.swjtu.edu.cn/">swjtu.edu.cn上去可以搜尋到。它的FAQ由


href="http://www.cis.ohio-state.edu/~barr/default.htm">barr維護。 至於WebMail,可以到 href="http://www.perl.com/">http://www.perl.com/上找找有沒有現成的CGI.現成的軟件其實也很多 如WeMail, href="http://www.lugs.ch/lugs/mitglieder/norbert.kuemin/wmf.Html">WebMail Folder,WebMail Module(Roxen), href="http://www.fetchmail.com/">Fetchmail(也可以喲,商業性的) href="http://horde.org/imp/default.htm">IMP(IMAP WebMail)以及 href="http://www.chaotika.net/code/HTMail">HTMail。 參考北京俱樂部的文章: href="http://infosite.heha.net/linux/network/html/misc/network-sendmail_cf.html">配置文件sendmail.cf的簡單解釋。 href="http://infosite.heha.net/linux/network/html/misc/network-sendmail-bug.html">關於sendmail老版本的一個安全漏洞 href="http://infosite.heha.net/linux/network/html/misc/network-hotmail-bug.html">關於hotmail的安全漏洞 (做WebMail一定要參考一下!) 羅羅嗦嗦寫了一堆,希望對新新手有所幫助,下面是一些問答集: href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#notify">如何禁止console下新郵件到達提示 href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#start">pop3啟動起來了嗎? href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#account">如何建立一個郵件帳號? href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#cannot-send">為什麼能收不能發郵件? href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#error-on-get">為什麼突然不能收郵件? href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#pine">配置pine去收pop3郵件 href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#big">sendmail如何據收大的信件? href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#about-dns-MX">DNS裡相關設置的問題 href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#MX-firewall">防火牆內外郵件網關的設置問題 href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#redundancy">郵件服務器雙備份的設置問題 href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#multi-domain">sendmail支持多域名嗎?

href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#delete-mail">如何刪除未發出的郵件? href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#raner-tips">raner寫的tips href="http://infosite.heha.net/linux/network/html/misc/sendmailabout.html#redhat5.1">Redhat 5.1文檔裡的相關部分 發信人: rudey (huihui), 信區: Linux 標 題: Re: [求助]如何禁止新郵件到達提示? 發信站: BBS 水木清華站 (Mon Dec 7 01:00:38 1998) : 比較煩人,可以去掉嗎? biff n > 我做了LAN中的一個mail server(red hat 5.0 ,kernel 2.0.1),可為何只能在WIN95下用NETCAPE4.0發信, > 而不能收信,它出現"pop3 server error" 信息。請問是否只需配置/etc/inetd.conf 和/etc/services > 中pop3 服務,或還有別的配置? 另外如何判斷我的server是否提供pop3服務,若沒有,又請問如何配置 > (請詳述程序安裝和編譯過程)? 到/usr/sbin下看一看有沒有ipop3d, 如果沒有的話就是你安裝時偷懶沒裝,重裝之。 實際上,安裝RH5的時候,選擇“Everything”,總共也沒多少(6XXM+)又快又方便 (我只用9分鐘),決不會出現你這種問題。 如果有的話,試一試telnet localhost 110, 沒反應的話,應該是你的/etc/inetd.conf 有問題, 看看POP-3一行前面有沒有# 注:簡單地,用netstat -a grep pop看看有沒有下面的信息: tcp 0 0 *:pop-2 *:* LISTEN tcp 0 0 *:pop *:* LISTEN > 你好!我想做一個mailserver,但在建立pop3郵件服務器時,查到有qpopper與pop3d > 兩種服務程序可用,好象聽說qpopper 能與window client相連,不過本人想比較具體 > 清楚二者有區別,請賜教!不勝感謝 沒什麼本質區別, pop-3協議極為簡單,幾百行程序而已,各種實現都差不多,犯不著為此 費心,高興的話你可以自己寫一個.



> 清楚二者有區別,請賜教!不勝感謝 沒什麼本質區別, pop-3協議極為簡單,幾百行程序而已,各種實現都差不多,犯不著為此 費心,高興的話你可以自己寫一個.



Copyright © Linux教程網 All Rights Reserved