Giter Site home page Giter Site logo

mailsack's Introduction

mailsack

Dummy SMTP Server Written in Python With A Simple UI

Mailsack contains a dummy smtp server (mailsackd.py) to intercept mails from localhost and an UI written in tk to view the mails. I personally use the daemon on the dev server. The simple UI is for my development machine. The UI can connect to remote host or local host to show intercepted mails by the server.


mailsackd.py (server)

The dummy smtp server takes three parameters - host, port and listen. If you leave them empty, the defaults are localhost and port 25. You can run it on a different port by the passing the parameters on the command line. Passing the --listen parameter with a port number makes the server listen for incoming connection from the UI, otherwise, it just prints the incoming mails to the standard output.

The UI is handy, not necessary.

$./mailsackd.py --host=localhost --port=9090 --listen=9999

-- mailsack.py (Client)

$./mailsack.py --host=localhost --port=9999 --poll-interval=20

In the example, host is where the remote server is running and port is as the "listen" port of the server. You can leave the client running in the background, it will poll the server periodically (controlled by the --poll-interval parameter) for updated emails.

Feel free to use and fork! Any suggestions or contributions are welcome.

mailsack's People

Contributors

mymizan avatar

Watchers

 avatar

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.