Giter VIP home page Giter VIP logo

node-mail-server's Introduction

Work In Progress

This project is not yet functional.

Mail Server

NODEJS based mail server and spam/blacklist checker.

Project Structure

/classes
  @base # Base Handler Class
  blacklist # DNS Spam Handler Class
  mail # Mail Provider Class
  sentry # Base Error service
/methods
  blacklist-cron.js # runs every 30 minutes.
index.js # main app script.

Setup/Installation.

Firstly You will need to have a Server (with ssh access) ready. You should then update /deploy.json under deploy>production>host change x.x.x.x to your server IP.

Details.

  • fastify is used to handle http requests. production environment runs stricly from 127.0.0.1, other environments run from 0.0.0.0. If no env.PORT is specified it will be randomized.
  • bull is used to detach requests into seperate processes in a queue. This helps prevent flooding and hitting external service request limits.

Deployment

Before deploying you need to ensure that you have the id_rsa private key.

Recommended ~/.ssh/config settings...

Host X.X.X.X
  User appuser
  IdentityFile ~/.ssh/id_rsa

To deploy to your production server, Run npm run deploy. this process will ssh into the remote machine, git pull the master branch and restart the service.

node-mail-server's People

Contributors

permpkin avatar dependabot[bot] 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.