电子邮件
维基百科,自由的百科全书
电子邮件(E-mail),又称电子函件,是指通过电子通讯系统进行书写、发送和接收的信件。今天使用的最多的通讯系统是互联网,同时电子邮件也是互联网上最受欢迎且最常用到的功能之一。有时会被简称为电邮或邮件。
目录 |
[编辑] 運作
[编辑] 範例
The diagram above shows a typical sequence of events [1] that takes place when Alice composes a message using her mail user agent (MUA). She types in, or selects from an address book, the e-mail address of her correspondent. She hits the "send" button.
- Her MUA formats the message in Internet e-mail format and uses the Simple Mail Transfer Protocol (SMTP) to send the message to the local mail transfer agent (MTA), in this case smtp.a.org, run by Alice's Internet Service Provider (ISP).
- The MTA looks at the destination address provided in the SMTP protocol (not from the message header), in this case bob@b.org. An Internet e-mail address is a string of the form localpart@exampledomain.com, which is known as a Fully Qualified Domain Address (FQDA). The part before the @ sign is the local part of the address, often the username of the recipient, and the part after the @ sign is a domain name. The MTA looks up this domain name in the Domain Name System to find the mail exchange servers accepting messages for that domain.
- The DNS server for the b.org domain, ns.b.org, responds with an MX record listing the mail exchange servers for that domain, in this case mx.b.org, a server run by Bob's ISP.
- smtp.a.org sends the message to mx.b.org using SMTP, which delivers it to the mailbox of the user bob.
- Bob presses the "get mail" button in his MUA, which picks up the message using the Post Office Protocol (POP3).
This sequence of events applies to the majority of e-mail users. However, there are many alternative possibilities and complications to the e-mail system:
- Alice or Bob may use a client connected to a corporate e-mail system, such as IBM Lotus Notes or Microsoft Exchange. These systems often have their own internal e-mail format and their clients typically communicate with the e-mail server using a vendor-specific, proprietary protocol. The server sends or receives e-mail via the Internet through the product's Internet mail gateway which also does any necessary reformatting. If Alice and Bob work for the same company, the entire transaction may happen completely within a single corporate e-mail system.
- Alice may not have a MUA on her computer but instead may connect to a webmail service.
- Alice's computer may run its own MTA, so avoiding the transfer at step 1.
- Bob may pick up his e-mail in many ways, for example using the Internet Message Access Protocol, by logging into mx.b.org and reading it directly, or by using a webmail service.
- Domains usually have several mail exchange servers so that they can continue to accept mail when the main mail exchange server is not available.
- E-mail messages are not secure if e-mail encryption is not used correctly.
It used to be the case that many MTAs would accept messages for any recipient on the Internet and do their best to deliver them. Such MTAs are called open mail relays. This was important in the early days of the Internet when network connections were unreliable. If an MTA couldn't reach the destination, it could at least deliver it to a relay that was closer to the destination. The relay would have a better chance of delivering the message at a later time. However, this mechanism proved to be exploitable by people sending unsolicited bulk e-mail and as a consequence very few modern MTAs are open mail relays, and many MTAs will not accept messages from open mail relays because such messages are very likely to be spam.
Note that the people, e-mail addresses and domain names in this explanation are fictional: see Alice and Bob.
[编辑] Format
The format of Internet e-mail messages is defined in RFC 2822 and a series of RFCs, RFC 2045 through RFC 2049, collectively called Multipurpose Internet Mail Extensions (MIME). Although as of July 13 2005 RFC 2822 is technically a proposed IETF standard and the MIME RFCs are draft IETF standards,[2] these documents are the de facto standards for the format of Internet e-mail. Prior to the introduction of RFC 2822 in 2001 the format described by RFC 822 was the de facto standard for Internet e-mail for nearly two decades; it is still the official IETF standard. The IETF reserved the numbers 2821 and 2822 for the updated versions of RFC 821 (SMTP) and RFC 822, honoring the extreme importance of these two RFCs. RFC 822 was published in 1982 and based on the earlier RFC 733.
Internet e-mail messages consist of two major sections:
- Header — Structured into fields such as summary, sender, receiver, and other information about the e-mail
- Body — The message itself as unstructured text; sometimes containing a signature block at the end
The header is separated from the body by a blank line.
[编辑] Header
The message header consists of fields, usually including at least the following:
- From: The e-mail address, and optionally the name of the sender
- To: The e-mail address[es], and optionally name[s] of the message's recipient[s]
- Subject: A brief summary of the contents of the message
- Date: The local time and date when the message was written
Each header field has a name and a value. RFC 2822 specifies the precise syntax. Informally, the field name starts in the first character of a line, followed by a ":", followed by the value which is continued on non-null subsequent lines that have a space or tab as their first character. Field names and values are restricted to 7-bit ASCII characters. Non-ASCII values may be represented using MIME encoded words.
Note that the "To" field in the header is not necessarily related to the addresses to which the message is delivered. The actual delivery list is supplied in the SMTP protocol, not extracted from the header content. The "To" field is similar to the greeting at the top of a conventional letter which is delivered according to the address on the outer envelope. Also note that the "From" field does not have to be the real sender of the e-mail message. It is very easy to fake the "From" field and let a message seem to be from any mail address. It is possible to digitally sign e-mail, which is much harder to fake. Some Internet service providers do not relay e-mail claiming to come from a domain not hosted by them, but very few (if any) check to make sure that the person or even e-mail address named in the "From" field is the one associated with the connection. Some Internet service providers apply e-mail authentication systems to e-mail being sent through their MTA to allow other MTAs to detect forged spam that might apparently appear to be from them.
Other common header fields include (see RFC 4021 or RFC 2076 for more):
- Cc: Courtesy copy
- Bcc: Blind Courtesy Copy
- Received: Tracking information generated by mail servers that have previously handled a message
- Content-Type: Information about how the message has to be displayed, usually a MIME type
- Reply-To: Address that should be used to reply to the sender.
- References: Message-ID of the message that this is a reply to, and the message-id of this message, etc.
- In-Reply-To: Message-ID of the message that this is a reply to.
- X-Face: Small icon.
Many e-mail clients present "Bcc" (Blind carbon copy, recipients not visible in the "To" field) as a header field. Different protocols are used to deal with the "Bcc" field; at times the entire field is removed, whereas other times the field remains but the addresses therein are removed. Addresses added as "Bcc" are only added to the SMTP delivery list, and do not get included in the message data.
IANA maintains a list of standard header fields.
[编辑] Body
[编辑] Content encoding
E-mail was originally designed for 7-bit ASCII. Much e-mail software is 8-bit clean but must assume it will be communicating with 8-bit servers and mail readers. The MIME standard introduced character set specifiers and two content transfer encodings to enable transmission of non-ASCII data: quoted printable for mostly 7 bit content with a few characters outside that range and base64 for arbitrary binary data. The 8BITMIME extension was introduced to allow transmission of mail without the need for these encodings but many mail transport agents still do not support it fully. In some countries, several encoding schemes coexist; as the result, by defaulf, the message in a non-Latin alphabet language appears in non-readable form (the only exception is coincidence, when the sender and receiver use the same encoding scheme). Therefore, for international character sets, Unicode is growing in popularity.
[编辑] Plain text and HTML
Both plain text and HTML are used to convey e-mail. While text is certain to be read by all users without problems, there is a perception that HTML-based e-mail has a higher aesthetic value. Advantages of HTML include the ability to include inline links and images, set apart previous messages in block quotes, wrap naturally on any display, use emphasis such as underlines and italics, and change font styles. HTML e-mail messages often include an automatically-generated plain text copy as well, for compatibility reasons. Disadvantages include the increased size of the email, privacy concerns about web bugs and that HTML email can be a vector for phishing attacks and the spread of malicious software.[3]
[编辑] 電邮地址的格式
在互联网中,電邮地址的格式是:用户名@域名。@ 是英文 at 的意思,所以電子郵件地址是表示在某部主機上的一個使用者帳號(例:guest),電邮地址不是身份。
email.xxx.xxx.net
[编辑] 安全
安全考量包括传输安全,储存安全,发送者身份确认,接收者已收到确认,拒绝服务攻击等。有两种标准:PGP和S/MIME。
[编辑] 传输安全
传输过程可能被窃听。為了應付這情況,有两种解决方法:
- 使用SSL连接,当前的两种邮件接受协议和一种邮件发送协议都支持安全的服务器连接。在大多数流行的电子邮件客户端程序里面都集成了对的支持。
- 将邮件加密之后,用普通连接传输。比如由PGP等加密软件在寄送前加密,Outlook也可以。
[编辑] 储存安全
对已加密的邮件,可以选择不保存解密后的邮件。已加密的邮件是指发送者在发送之前对邮件本身进行加密,不是指加密传输。如果邮件本身以加密,则没有必要进行加密传输。对非加密的邮件(指发送者在发送之前没有对邮件本身进行加密,至于是否使用加密传输是另一回事),邮件的储存安全就如同于其他文件的储存安全一样,重点在于防范非授权使用。当然,就如同可以对一般文件进行加密一样,也可以对这些非加密的邮件在收到后进行加密。
[编辑] 发送者身份确认
有很多电脑病毒就是通过电子邮件进行传播的(详见电脑病毒)。如果每个接受者在打开邮件之前都对发送者的身份进行确认,那么这种电脑病毒就无法传播了。
解决方案是发送者在发送前进行签名(不是指被讹误的「签名」,那是落款)。对签了名的邮件,发送者无法抵赖说不是她/他发的。对于Outlook,「签名」(signature)是指落款,「数字签名」(Digital Signature)才是签名。第一次作汉化的人没用对名词,所以误把落款当签名了。签了名的邮件就可以对发送者的身份通过身份认证机构进行确认。身份认证机构也可以是一个自然人。
发送一封彻底匿名的邮件必须使用匿名邮件转发服务。否则理论上,只要系统日志还在,是谁干的总是可以找出来的,即使发送者既不签名也不落款。
[编辑] 接收者已收到确认
接收者可能抵赖说他/她没有收到电子邮件。為了應付這情況,出現了不同的解決方法,但是目前还没有一套普遍被采纳的方案,虽然这一特征是很有价值的。此为挂号电子邮件。微软公司的ExchangeSever就提供Delivery Receipt。因为是机器发的接收者已收到确认,所以接收者可能有意或无意地删除了邮件。
[编辑] 拒绝服务攻击
为了妨碍某一用户使用电子邮件(比如不让她/他收到电子邮件),拒绝服务攻击指往被攻击的用户的邮箱发送大量的垃圾邮件,将邮箱塞满。这样被攻击的用户就无法收到那些有用的电子邮件了。这种安全顾虑目前相当程度已被解决。一是邮箱不断增大。另一原因是邮件服务提供商都提供了一些的过滤措施。过滤措施有时也会把有用的电子邮件当成垃圾邮件。现已有一部分邮件服务供应商使用替身邮,防止外界对邮件帐户进行跟踪。
[编辑] 使用
电子邮件一般在电脑上使用,也可以在手机上使用。在电脑上使用电子邮件有两种方式:使用邮件客户端软件,使用浏览器。在自己的电脑上才使用邮件客户端软件,在网吧或其他情况下,就通过浏览器查看邮件。
[编辑] 常见邮件客户端软件
[编辑] 微软公司
Outlook和Outlook Express都支持数字签名、验证签名、加密和解密。
- Outlook Express是集成到微软操作系统中的默认邮件客户端程序。
- 优点:因为它是免费集成的软件,所以易用性和用户数量上占有一定优势。而且它在中文系统中是到目前为止支持中文新闻组服务最好的软件之一。除此之外,Outlook Express简单易学,而且有各个操作系统语言对应的不同语言版本。即使不熟悉计算机程序也能较快学习使用。
- 缺点:跟大多数微软公司发布的软件一样,由于操作系统本身的原因,系统的安全漏洞会严重影响到系统中软件的使用。由于微软公司浏览器内核不断发现比较严重的安全问题,从而导致很多计算机病毒利用这些漏洞借助Outlook Express快速通过互联网传播。
- Office Outlook
[编辑] 网景公司
Netscape Mail:网景公司因为微软在操作系统中捆绑浏览器软件和邮件客户端,所以在1990年代末期其市场份额发生大幅度下滑。但是它并没有停止对其浏览器软件的开发。随着其软件版本的不断升级,有一部分用户依然使用网景公司的产品。
Windows系统中网景浏览器邮件程序一直没有很好的性能表现。也有人猜测是微软公司在系统中添加了不利于其它产品的代码,但是因为操作系统代码不开放,所以这一说法得不到证实。
[编辑] Mozilla基金会与Mozilla公司
Mozilla Mail是Mozilla基金会生产的浏览器组件的一个重要部分。除了Windows版本以外,它还提供Linux/Unix等多个操作系统平台软件包。
Thunderbird是电子邮件程序市场上的生力军,由Mozilla基金会下属的Mozilla公司生产。Thunderbird与Firefox一起被称作21世纪刺向微软公司浏览器市场的两把利剑。Thunderbird以小巧安全稳定著称。
Mozilla Mail和Thunderbird都支持数字签名、验证签名、加密和解密,與Outlook Express相似。
[编辑] 腾讯公司
Foxmail是由中国人张小龙开发的一款优秀的电子邮件客户端,具有强大的电子邮件管理功能。目前有中文(简繁体)和英文两个语言版本。
[编辑] 通过浏览器使用电子邮件
web邮件服务有很多功能是不提供的,但是方便人们在任何地方查看邮件。
[编辑] Gmail
在Firefox環境下,加装Gmail S/MIME就可以对电子邮件进行签名了。
[编辑] Yahoo! mail
[编辑] Hotmail
[编辑] 在手机上使用电子邮件
很多手机都可以。黑莓是一款非常流行的工具。
[编辑] 实现所用的协议
常见的电子邮件协议有以下几种:SMTP(简单邮件传输协议)、POP3(邮局协议)、IMAP(Internet邮件访问协议)、HTTP、S/MIME。这几种协议都是由TCP/IP协议族定义的。
- SMTP(Simple Mail Transfer Protocol):SMTP主要负责底层的邮件系统如何将邮件从一台机器传至另外一台机器。
- POP(Post Office Protocol):目前的版本为POP3,POP3是把邮件从电子邮箱中传输到本地计算机的协议。
- IMAP(Internet Message Access Protocol):目前的版本为IMAP4,是POP3的一种替代协议,提供了邮件检索和邮件处理的新功能,这样用户可以完全不必下载邮件正文就可以看到邮件的标题摘要,从邮件客户端软件就可以对服务器上的邮件和文件夹目录等进行操作。IMAP协议增强了电子邮件的灵活性,同时也减少了垃圾邮件对本地系统的直接危害,同时相对节省了用户察看电子邮件的时间。除此之外,IMAP协议可以记忆用户在脱机状态下对邮件的操作(例如移动邮件,删除邮件等)在下一次打开网络连接的时候会自动执行。
- HTTP(S): 通过浏览器使用邮件服务时使用。
- S/MIME:...
[编辑] 历史
[编辑] 第一封mail内容
历史第一封E-mail确切的发出时间、地点、人物有所争议。
- 《互联网周刊》报道为:“1969年10月,世界上的第一封电子邮件是由计算机科学家Leonard K.教授发给他的同事的一条简短消息”
- 1971年由为阿帕网工作的麻省理工学院博士Ray Tomlinson测试软件(SNDMSG)时发出的,并且首次使用“@”作为地址间隔标示。
[编辑] 中国第一封mail内容
1987年9月20日中国第一封电子邮件是由“德国互联网之父”维纳·措恩与王运丰在北京的计算机应用技术研究所发往德国卡尔斯鲁厄大学的,其内容为英文,大意如下。
- 原文:
- Across the Great Wall we can reach every corner in the world.
- 中文大意
- 跨越长城,走向世界。这是中国通过北京与德国卡尔斯鲁厄大学之间的网络连接,向全球科学网发出了第一封电子邮件。

