haraka-plugin-queue-s3

0.3.0 • Public • Published

haraka-plugin-queue-s3

build License: MIT npm

A Haraka plugin that stores messages in a S3 bucket.

Messages are stored in S3 using the Haraka transaction uuid as the key.

The following custom S3 metadata headers are stored with the message in S3:

  • x-amz-meta-rcpts: A comma-separated list of the recipient addresses for which Haraka accepted the message.
  • x-amz-meta-content-md5: A MD5 hash of the message. Sometimes, but not always, redundant with the S3 ETag.

Install

  • add this plugin as a dependency of your haraka project (ie. using npm or yarn)
  • add queue-s3 to your haraka project's config/plugins

Configure

There is one required configuration item which can be set by creating a one-line file in your haraka's config directory.

  • queue-s3.bucket-name: The name of the S3 bucket table to store messages in.

AWS Credentials are assumed to be provided out-of-band (ie. via environment variables, IAM role attached to EC2 instance, etc)

Changelog

v0.3

  • Upgrade to GA release of AWS SDK v3
  • Set content type of queued messages to message/rfc822

v0.2

  • Add x-amz-meta-content-md5 S3 custom header

v0.1

  • initial release

Readme

Keywords

none

Package Sidebar

Install

npm i haraka-plugin-queue-s3

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

5.43 kB

Total Files

4

Last publish

Collaborators

  • mfogel