1.0.3 • Published 3 years ago

@mailprotector/haraka-plugin-smtp-auth v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

haraka-plugin-smtp-auth

A Haraka plugin for connecting to an HTTP endpoint to get a response.

Install

Install with npm

npm install @mailprotector/haraka-plugin-smtp-auth --save

Setup

Enable Plugin

Add to plugin file in the haraka config folder

@mailprotector/haraka-plugin-smtp-auth

Config

Config options are set in smtp_auth.json:

ParameterDescriptionTypeDefault Value
USERNAMEHTTP server usernamestringnone
PASSWORDHTTP server passwordstringnone
AUTH_URLThe URL endpoint of the HTTP serverstringnone

Details

The http API call uses a POST to AUTH_URL.

The following POST body will be sent to AUTH_URL. If USERNAME and PASSWORD are not empty, Basic Authentication will be used.

{
  username: 
  password: 
}

alt text About Mailprotector