@mailprotector/haraka-plugin-queue-rails

1.1.6 • Public • Published

haraka-plugin-queue-rails

A Haraka plugin for relaying email to a Rails application via Action Mailbox.

Install

Install with npm

npm install @mailprotector/haraka-plugin-queue-rails --save

Setup

Enable Plugin

Add to plugin file in the haraka config folder

@mailprotector/haraka-plugin-queue-rails

Config

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

Details

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
}

alt text About Mailprotector

Package Sidebar

Install

npm i @mailprotector/haraka-plugin-queue-rails

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

26.8 kB

Total Files

7

Last publish

Collaborators

  • djatmp
  • andy.mailprotector
  • danwagoner
  • ben.hathaway