@mailprotector/haraka-plugin-smtp-auth
v1.0.3
Published
A Haraka Plugin that connects to an HTTP endpoint, checks the credentials and returns a response.
Downloads
4
Readme
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:
}