web邮件系统设计与开发.doc
文本预览下载声明
摘 要
在当今Internet时代,电子邮件已经成为人们提供信息交换的必要的通信方式。电子邮件系统通过连接全世界的Internet,实现各类信号的传送、接收、存贮等处理,将邮件送到世界的各个角落,不只局限于信件的传递,还可用来传递文件、声音及图形、图像等不同类型的信息。
本文主要介绍了Linux环境下Web邮件系统的设计和实现过程。在学习邮件系统传输原理的基础上,对qmail邮件系统的收发机制进行了详细的阐述,并在仔细研究qmail源代码的基础上,根据实际需要加入了新的功能模块,实现了一个较为完善的Web邮件系统。对于垃圾邮件的处理,通过用户认证、邮件过滤等手段初步实现了对部份垃圾邮件的过滤功能。
关键字:qmail,电子邮件,域名解析,垃圾邮件过滤。
Abstract
Nowadays, in internet era, Email has been the necessary service for people to supply information communication. Electronic Mail System fulfills transmission、receiving、storing and etc management of all kinds of signal by the internet connected all the world, sends the mail to all the world corner, not only send the letter but also send different kinds of information,such as archive、sound、graphic and image.
This paper presents the design and realization of a web mail system on Linux. Based on the study of the mail system transfer theory,it explains the send and receive mechanism of the qmail system, and adds new function module based on the carefully research of the qmail source code, finally it realizes a relative complete web mail system. Aiming to spam mail, using user authentication and mail filter to realize the partly function of spam filter.
Key Words: qmail,email,DNS,spam filter
第一章 引言 1
1.1课题背景 1
1.2研究目标和意义 1
1.3研究思路 2
第二章 研究的理论基础 3
2.1电子邮件系统综述 3
2.2协议介绍 4
2.2.1SMTP协议 4
2.2.2POP3协议 5
2.2.3IMAP协议 5
2.3邮件工作原理 6
2.3.1邮件工作原理简述 6
2.3.2邮件传输过程 7
2.4反垃圾邮件 8
第三章WEB邮件系统服务原理 10
3.1邮件服务系统整体结构 10
3.1.1WEB邮件服务系统体系结构 10
3.1.2邮件系统功能模块划分 10
3.1.3邮件服务器模块 10
3.2Qmail邮件平台 13
3.2.1Qmail概述 13
3.2.2Qmail的优点 13
3.2.3Qmail的邮件系统结构 14
3.2.4Qmail邮件工作原理 15
3.3认证机制 18
第四章WEB邮件系统总体设计 20
4.1WEB邮件系统整体构架 20
4.1.1邮件系统服务工作流程 20
4.1.2电子邮件系统结构 20
4.2WEB邮件系统功能模块设计 22
4.2.1电子邮件收发功能 22
4.2.2电子邮件服务功能 22
4.2.3反垃圾邮件功能 22
第五章WEB邮件系统的实现 23
5.1Qmail的安装和配置 23
5.1.1安装和配置qmail 23
5.1.2安装ucspi-tcp和deamontools 24
5.1.3运行qmail 25
5.2电子邮件的收取模块 26
5.3电子邮件的发送模块 26
5.4客户端模块 27
5.5服务器模块 28
5.5.1 Sadd模块 29
5.5.2 Sdel模块 29
5.5.3 Sdeltemp模块 29
5.5.4 Saddtemp模块 30
5.6反垃圾邮件模块 31
5.6.1垃圾
显示全部