Coder Social home page Coder Social logo

haraka-mail-forwarding-plugin's Introduction

Haraka Mail Forwarding Plugin

Build status

About

This is a plugin which should be run and configured with the Haraka SMTP server.

Based off of the original haraka-alias-forward by chadsmith on Github. Work on this version began from a fork of X-Ryl669's modifications to the original source. X-Ryl669's modifications implements SRS rewrites which leads to a noticable improvement in email delivery.

This plugin interfaces with MongoDB.

This allows us to do two important things:

  • update aliases and forwarding rules on the fly
  • store Message-ID and Reference headers to allow the masking of email replies

See plugins/mail_forwarding.js.

Set Up

Prequisites

Installation

Run yarn in the main directory to install necessary packages. Haraka can be run by running haraka -c /path/to/this/repository

Configuration

Haraka's documentation provides a very thorough coverage of configuration options. I recommend properly configuring DKIM SPF, and DMARC on the domain that will be forwarding emails to avoid emails from landing in spam. I also recommend setting up the tls plugin. I have included some of these configuration files in this repository.

Please do not forget to change the secret and sender_domain values in config/srs.ini.

An .env file should be kept in your main Haraka folder with the following keys: MONGO_URI and MONGO_DB_NAME. If these two values are not set on either the .env file or in the environment that this instance of Haraka is running, this plugin will throw an error.

Tests

To run tests, run yarn test. These tests were written using the Sinon and assert libraries and can be found in the tests directory.

haraka-mail-forwarding-plugin's People

Contributors

justinbaltazar avatar

Watchers

 avatar  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.