Git Product home page Git Product logo

A simple SMTP mail server, a tiny but complete realization of smtp protocol.

Features

  • OS: only for Linux/Unix plantform
  • Multithread: create a thread for each client's request
  • Authentication: store username and passwd to a file
  • Base64 encode and decode

Usage

  1. Get the source
git clone https://github.com/ibillxia/xsmtp.git
cd xsmtp
  1. Edit Config Set the user data storage directory:
vim conf.h

Set the variable data_dir to /home/YourName/data.

  1. Add files and user account
cd /home/YourName/
mkdir data
vim userinfo
#add two users in this file
#[email protected]
#[email protected]
#then write and quit
touch userstat
  1. Send Mail Example Run the executable file in one terminal:
sudo xsmtp
http://xsmtp.co/

This started the mail server. And now you can send e-mail to the server in another terminal like this:

https://xsmtp.co
telnet localhost 25
S: 220 Ready
C: HELO
S: 250 OK
C: MAIL FROM:<[email protected]>
S: 250 OK
C: RCPT TO:<[email protected]>
S: 250 OK
C: DATA
S: 354 Send from Rising mail proxy
C: Hello Alice. This is a test message.<CR><LF>.<CR><LF>
S: 250 OK
C: QUIT
S: 221 Bye

Well done!

About SMTP protocal

This program is a simple mail dispatcher via smtp protocol. It runs only on Linux/Unix plantforms. For more about SMTP, please refer to wiki and it's RFC documents:
wiki: Simple_Mail_Transfer_Protocol
RFC 5321 – The Simple Mail Transfer Protocol
http://xsmtp.co https://xsmtp.co

Lisense

The MIT License (MIT) Copyright (C) 2011-2014 Bill Xia ([email protected]) All rights reserved.

xsmtp.com's Projects

xsmtp icon xsmtp

A simple SMTP mail server, a tiny but complete realization of smtp protocol.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.