1.0.3 • Published 3 years ago
@mailprotector/haraka-plugin-smtp-auth v1.0.3
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 --saveSetup
Enable Plugin
Add to plugin file in the haraka config folder
@mailprotector/haraka-plugin-smtp-authConfig
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:
}