npm.io
1.0.3 • Published 3 years ago

@mailprotector/haraka-plugin-smtp-auth

Licence
MIT
Version
1.0.3
Deps
2
Size
288 kB
Vulns
21
Weekly
0

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:

Parameter Description Type Default Value
USERNAME HTTP server username string none
PASSWORD HTTP server password string none
AUTH_URL The URL endpoint of the HTTP server string none

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