A Design of an SMTP Email Server
Download PDF
$currentUrl="http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"

Keywords

Mail server
Socket API
HTTP protocol
SMTP protocol
Security analysis
Efficiency analysis

DOI

10.26689/jera.v8i4.7932

Submitted : 2024-07-15
Accepted : 2024-07-30
Published : 2024-08-14

Abstract

This study developed a mail server program using Socket API and Python. The program uses the Hypertext Transfer Protocol (HTTP) to receive emails from browser clients and forward them to actual email service providers via the Simple Mail Transfer Protocol (SMTP). As a web server, it handles Transmission Control Protocol (TCP) connection requests from browsers, receives HTTP commands and email data, and temporarily stores the emails in a file. Simultaneously, as an SMTP client, the program establishes a TCP connection with the actual mail server, sends SMTP commands, and transmits the previously saved emails. In addition, we also analyzed security issues and the efficiency and availability of this server, providing insights into the design of SMTP mail servers.

References

Sureswaran R, Al Bazar H, Abouabdalla O, et al., 2009, Active E-Mail System SMTP Protocol Monitoring Algorithm. 2009 2nd IEEE International Conference on Broadband Network & Multimedia Technology, 2009: 257–260.

Dürscheid C, Frehner C, Herring SC, et al., 2013, Email Communication. Handbooks of Pragmatics [HOPS], 2013(9): 35–54.

Wang D, Irani D, Pu C, 2013, A Study on Evolution of Email Spam Over Fifteen Years. 9th IEEE International Conference on Collaborative Computing: Networking, Applications and Worksharing, 2013: 1–10.

Email Marketing Market Research Report: Forecast (2023–2028), n.d., viewed June 24, 2024, https://www.marknteladvisors.com/research-library/email-marketing-market.html

Chonka A, Xiang Y, Zhou W, et al., 2011, Cloud Security Defence to Protect Cloud Computing Against HTTP-DoS and XML-DoS Attacks. Journal of Network and Computer Applications, 34(4): 1097–1107.

Foster ID, Larson J, Masich M, et al., 2015, Security by Any Other Name: On the Effectiveness of Provider Based Email Security. Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, 2015: 450–464.

Postel JB, 1982, Simple Mail Transfer Protocol. RFC 821.

LaRoche P, Zincir-Heywood AN, Heywood M, 2011, Exploring the State Space of an Application Protocol: A Case Study of SMTP. 2011 IEEE Symposium on Computational Intelligence in Cyber Security (CICS), 2011: 152–159.

Naik N, 2017, Choice of Effective Messaging Protocols for IoT Systems: MQTT, CoAP, AMQP and HTTP. 2017 IEEE International Systems Engineering Symposium (ISSE), 2017: 1–7.

Boogerd C, Moonen L, 2008, Assessing the Value of Coding Standards: An Empirical Study. 2008 IEEE International Conference on Software Maintenance, 2008: 277–286.