Design and Implementation of POP3 E-mail Client and Server
- Author
- HanJinXia
- Advisor
- YinFuLiang
- School
- Dalian University of Technology
- Major
- Communication and Information System
- Classification
- TP393.098 E-mail ( E -mail )
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 785
- Citations
- 5
Abstract
With the development of Internet technology and network office, e-mail has become the main one of the means of communication. The e-mail system consists of both client and server, currently two popular operating system, the Windows operating system with its friendly interface, easy to operate, but generally not open source mail system based on Windows platform, it can not be based on the specific needs of perfect or reduction of its functions; powerful Unix operating system, network service, but it requires the administrator to understand the structure of the mail system, and has a wealth of the Unix platform development experience, is more suitable for the installation of large mail server. Currently, many companies or universities want to have a self-developed system of mail service, not only to facilitate internal management can also continue to improve its functions according to actual needs. Therefore, we developed the small mail system DSPMail. The paper designs and implements the functionality of the DSPMail e-mail system receives mail, to include POP3 client and POP3 server, mail transmission from the server to the client. The main work of this paper are as follows: (1) research to learn the basic theory and method of network applications and socket programming using the Windows Sockets designed POP3 client and server communication process: (2) in-depth research, analysis of e-mail common agreement, and in e-mail client and server POP3 e-mail protocol. (3) on the basis of the in-depth analysis the RFC822 protocol and MIME e-mail format, based on the platform of Visual C development of the email client receiving program. The program not only to communicate with the LAN server, and can receive messages commonly used e-mail server on the WAN, with adaptive received a different message format; (4) message header and message body used various codecs, successfully reduced the frequency of occurrence of the garbled support GB2312 Chinese character set; (5) multi-threaded programming method to realize the function of multi-user to receive mail at the same time, and set administrator permissions, you can remotely manage servers mailbox, add or delete user accounts to operate; (6) server back-end services. The server program is set to the operating system daemons, with the operating system start at the same time, you can also manually open the mail server after the operating system starts; Finally, DSPMail mail system compatibility and POP3 server performance testing. Experimental results show that the POP3 e-mail system to achieve a basic transceiver functionality of the client and the server. POP3 server in the case of occupying smaller resources, to quickly and stably handle multiple client connection requests.
Table of contents
Summary 3-4
Abstract 4-5
Acknowledgements 5-7 the
directory 7-10
first Chapter 1 Introduction are found; 10-15
1.1 the email development process 10-11
1.2 email basic knowledge 11-13
1.2.1 e-mail address, said 1.2.2 Email used coded character set of 11
1.3 e-mail works 11-13
13
1.4 The organizational structure of the paper 13-15
email programming foundation 15-23
2.1 the Winsock programming basic knowledge 15-18
2.1.1 TCP and UDP protocols 16
2.1.2 host IP address 16-17
2.1.3 application port introduced 17-18
2.2 Winsock API function programming 18-20
2.2.1 C / S to establish five yuan, the API function 18
2.2.2 byte conversion function 18-19
2.2.3 2.2.5 the Winsock sets of interfaces network information acquisition function 19
2.2.4 IP address conversion functions 19
I / O processing functions 19-20
2.2.6 Data Transfer function 20
2.2.7 socket shutdown function 20
2.3 the Winsock programming commonly used data structures 20-23
2.3.1 struct in_addr structure 20-21
2.3.2 struct the sockaddr_in structure struct sockaddr structure 21 -22
2.3.3 host information structure 22-23
Chapter email main protocol and message format analysis 23-33
3.1 email main agreement 23-25 ??
3.1.1 SMTP protocol 23
3.1.2 POP3 protocol 23-25 ??
3.1.3 IMAP4, agreement 25
3.2 e-mail format standard the 25-28 3.2.1 RFC822 email format
25-26
3.2.2 MIME email format 26-28
3.3 e-mail encoding algorithm and 28-33
3.3.1 e-mail text encoding 29
3.3.2 e-mail header information coding 29
3.3.3 the Base64-and Quoted-printable encoding algorithm 29-33
Chapter POP3 mail client and server design 33-51
4.1 e-mail transmission 33
4.2 mail server and client communication process 33-35
4.3 POP3 e-mail client to achieve 35-43
4.3.1 message format judge 37
4.3.2 Information Extraction the 37-43 4.4 POP3 mail server implementations
43-51
4.4.1 POP3 mail server module design the 44-46
4.4.2 mail server concurrency services to achieve 46-48
4.4.3 administrator login authentication method mailbox 48-49
4.4.4 POP3 mail server used data structure the 49-51
Chapter mail server back-office services to achieve 51-55
5.1 Windows daemons About the 5.1.1 service starts 51-52
process 52
5.1.2 stop service process 52 <br / the> 5.2 daemons development 52-55
Chapter parametric analysis and system test 55-61
6.1 POP3 client test 55-56 < br /> 6.1.1 with LAN server communication testing 55-56
6.1.2 and the WAN server communication test 56
6.2 POP3 server-side test 56-60
6.2.1 POP3 server-side function test 56-57
6.2.2 POP3 server-side performance test 57-60
6.3 POP3 e-mail system test 60
6.4 POP3 and SMTP e-mail system test 60-61
Chapter VII Summary and Outlook 61-63
References 63-65
a master's degree during the academic situation the 65-66
the dissertation Copyright of Dalian University of Technology using the power of attorney 66
Related dissertations
- PKI-based secure e-mail system design and implementation
- LINUX-based embedded system applications and implementation
- SMTP e-mail client and server design and implementation
- Research and Realization for the Egg Production Process Remote Supervisory System Based on Network
- Design and Implementation of an Email Processing System
- Design and Implementation for the Returnable Mail System Based on J2EE
- The Design and Implementation of the Production Data Management System for Tobacco Industry
- Design and implementation of e-mail monitoring system based on Linux
- Design and development of teaching resources management system based on cloud storage
- The Network Transmission and Visualization of Three-dimensional Terrain Model
- An Implement of Improved TF-IDF Algoirthm and It’s Application in Junk Email Identification
- Design of Communication Software Based on Embedded Network Terminal
- E-mail as proof of judicial evidence evaluation system structure research
- Research and Development of Network Teaching Platform Based on IPv6
- Mail Encryption of USBKEY Implementation
- Design and Implementation of E-mail Subscription and Distribution System Based on J2EE
- The design and implementation of e-government intelligent report system
- Design and Implementation of Personalized Subscription and Send System for User Mail and MMS
- Design and implementation of VPN network management system
- Analysis and Study of Email System