• This repository has been archived on 23/Jan/2021
  • Stars
    star
    267
  • Rank 153,621 (Top 4 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A disposable SMTP test server and email web client frontend, build on Node.js, Mongo and Redis

Mailsac v2

The receive-only mail server powering Mailsac.com.

You can throw it onto a server pretty easily and use it for testing incoming email.

Mailsac >=2.0.0 is a complete rewrite and not compatible with <2.0.0.

Setup

Instructions for Ubuntu 14.04

On a fresh server, download the script ./install/ubuntu-1404.sh and run it:

wget https://raw.githubusercontent.com/ruffrey/mailsac/master/install/ubuntu-1404.sh
sudo sh ubuntu-1404.sh

Or from a local version of the repository:

ssh root@MYHOSTNAME 'bash -s' < install/ubuntu-1404.sh

Instructions for everything else

Remove or disable any services that are bound to ports 25 and 587. These are used by SMTP and required by the Mailsac ./smtp-server.js.

Redeploy

There is a helper script ./deploy which can be used to deploy the current directory to a remote server where Mailsac has been installed.

./deploy [email protected] # assumes your ssh key is on host

Deps

  • Node.js >= 0.12.0
  • MongoDB
  • Redis
  • Nothing blocking the mail ports (25 and 587)

Running

node app

There are DEBUG= environment variables which will help with troubleshooting. See ./package.json - "scripts".

Advanced configuration

Change ./config/default.json or add config files matching NODE_ENV environment variable. See more instructions for node-config: https://github.com/lorenwest/node-config/wiki

Not for Node.js cloud hosts

Mailsac runs on VPS or bare servers.

It will not work on Node.js cloud services (like AppFog, Heroku) because they won't give you access to SMTP ports.

You could use a service like Docker to manage and deploy Node.js apps on a VPS. Or just deploy to a normal VPS using the ./deploy script, git, or something else.

Plugins

Pluggable features can be added to Mailsac.

There are hooks into the UI application and SMTP processes.

An example plugin is found in the ./plugins/ folder. See it for details.

A plugin must either be:

  • a file with .plugin.js as the extension

You can extend the base ./views/layout.jade template by having the following jade files in your plugin folder.

  • ./plugins/myexample.plugin/includes/head.jade
  • ./plugins/myexample.plugin/includes/footer.jade

Development

Follow the code quality guidelines by running:

npm run lint

Pull requests against master are welcome.

License

MIT

Copyright (c) 2012 - 2015 Jeff H. Parrish

The code written for the Mailsac project is covered by the LICENSE file at the root of this project. All other code is copyright and licensed under its respective licensors.

More Repositories

1

paastor

open source deployment platform for node.js, mongo and redis formerly paastor.com
JavaScript
17
star
2

stripe-webhook-server

Backend webhook server for Stripe payment gateway, written in Node.js
JavaScript
14
star
3

google-finance-crawler

Scrape Google Finance for stock quotes
JavaScript
8
star
4

homesec

video monitoring app using your webcam
CSS
6
star
5

strength

Quick and dirty password strength evaluation
JavaScript
6
star
6

bootstrap-animated-dropdown

Animate a bootstrap dropdown in one simple step.
JavaScript
6
star
7

filru

Disk-based (no RAM) least-recently-used cache for Node.js
JavaScript
4
star
8

nagios-parser

parser library of nagios config
Go
4
star
9

node-forte

JavaScript
3
star
10

svra

Shaping vocal response amplitudes
JavaScript
3
star
11

eli

Unofficial Eligible API library for Node.js
3
star
12

pnger

lossy png compression and optimization for node, with no deps on linux, win, mac
JavaScript
3
star
13

respoke-webhook-tester-golang

tiny executable app for testing respoke webhooks
Go
2
star
14

mailsac-decompress-messages-sqlite

JavaScript
2
star
15

go-socketio09

Socket.IO 0.9.x client for Go
Go
2
star
16

pine

Command line tool for making predictions using ensembles of random decision trees (random forest)
Go
2
star
17

nano_oled_pm25

Arduino Nano PM2.5 sensor with OLED SSD1306 128x64
C++
1
star
18

icenium-blue-theme

A vibrant blue theme for Icenium cloud IDE
CSS
1
star
19

ascend

Better-than-nothing ASP Classic framework in Javascript
ASP
1
star
20

kryp

Simple encode and decode encryption layer for strings in Node.js
JavaScript
1
star
21

nurtrace

Neural network library implementing Hebbian plasticity with rebalancing of N-ary trees and node growth
Go
1
star
22

vardb

An embeddable, fast, NoSQL, in-memory datastore for javascript applications - now available for browser and node
1
star
23

mcon

Node.js Forever process management in a super easy web UI
JavaScript
1
star
24

jipsum

Client Lorem Ipsum API aggregator using jQuery
1
star
25

ng-resource

NPM package for Angular.js $resource (ng-resource)
JavaScript
1
star
26

m32

float32 matrix helpers in Go
Go
1
star
27

recurrent-nn-char-go

From scratch char-rnn implemented in Golang using SIMD
Go
1
star
28

simple-gcloud-logger

An easy interface to send logs to Google Cloud Platform Logging.
JavaScript
1
star
29

mongo-browser

A web UI using Google Authentication to MongoDB on a server.
JavaScript
1
star