Giter VIP home page Giter VIP logo

mailwurst's Introduction

Mailwurst

A forwarding SMTP Server useful for development purposes.

Background

  1. I am tired of configuring a local mail server for development purposes
  2. I want to test if mails will look ok in REAL mail clients
  3. I don't want mails to go out to a real mail address by accident
  4. I don't want to add special mail debugging options to my application

Installation

npm install -g mailwurst

Usage

mailwurst --relayserver=smtp.mynormalsmtp.com --rewriteto=[email protected] --user=mysmtpuser --password --port=9025

This will spawn a local mailserver on port 9025 which will accept all incoming mail. Every received mail will then be rewritten (--rewriteto, --rewritefrom) and then sent via the specified mailserver.

mailwurst must be run as root if you use a port < 1024.

Note that mailwurst will rewrite the mail envelope. In other words: in the current version all cc and bcc recipients will be removed.

Real world example:

Given you are on your dev machine developing a standard "Send a mail to verify account" application which expects a locally running mail server on port 25 and have a google mail account:

hans-guenther:~ mop$ sudo mailwurst --relayserver smtp.gmail.com --rewriteto #ACCOUNT#@gmail.com --user #ACCOUNT#@gmail.com --password

Register a new account with email "[email protected]". Check your gmail inbox :)

mailwurst's People

Contributors

m0ppers avatar luebbert42 avatar

Stargazers

Alexandre Salomé avatar janvt avatar  avatar  avatar madflow avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

luebbert42

mailwurst's Issues

Mailwurst struggles using npm 2.7.4 - aka OMG I am f*cked

mailwurst --relayserver=smtprelaypool.ispgateway.de --rewriteto=[email protected] --user=[email protected] --password --port=9025
Password:
∙• Mailwurst ready at port 9025 ... /usr/local/lib/node_modules/mailwurst/node_modules/simplesmtp/lib/client.js:907
this._xoauth2.reconnectCount = 0;
^
TypeError: Cannot assign to read only property 'reconnectCount' of false
at SMTPClient._actionAUTHComplete (/usr/local/lib/node_modules/mailwurst/node_modules/simplesmtp/lib/client.js:907:34)
at SMTPClient._onData (/usr/local/lib/node_modules/mailwurst/node_modules/simplesmtp/lib/client.js:348:29)
at TLSSocket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at TLSSocket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:538:20)

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.