A Haraka plugin for relaying email to a Rails application via Action Mailbox.
Install with npm
npm install @mailprotector/haraka-plugin-queue-rails --save
Add to plugin
file in the haraka config folder
@mailprotector/haraka-plugin-queue-rails
Config options are set in queue.rails.json
:
Parameter | Description | Type | Default Value |
---|---|---|---|
ACTION_MAILBOX_PASSWORD | action mailbox password | string | none |
ACTION_MAILBOX_URL | action mailbox url endpoint | string | none |
USER_AGENT | user agent to send action mailbox requests as | string | none |
ENVELOPE_HEADER_NAME | header name for envelope information (details below) | string | none |
The following header from your ENVELOPE_HEADER_NAME
config will be added to the email as a JSON string
{
"mail_from": transaction.mail_from,
"rcpt_to": transaction.rcpt_to,
"remote_ip": remote.ip,
"remote_host": remote.host,
"helo": hello.host
}