A plugin for the Haraka SMTP server that stores incoming and outgoing emails in MongoDB, with attachments saved to disk. Current stable version is 1.8.6, actively maintained by Helpmonks, supporting high throughput (500k+ emails/day). Key differentiators: built-in attachment content type/name filtering, inline image conversion (to base64 or path), connection string support, and optional attachment path health checks. Compatible with mailparser and tnef for winmail.dat handling.
npm install haraka-plugin-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows configuration setup and plugin registration for storing emails in MongoDB.
Install build-essentials: apt install python2 make cmake g++ build-essentials
Install tnef: apt install tnef
Set path_check = /parent/path (not attachment dir) in mongodb.ini
Upgrade to 1.6.5+ and configure max_incoming option
Set string in [MongoDB] section to a MongoDB connection URI
Run npm install haraka-plugin-mongodb in the Haraka directory. Ensure plugins file includes 'haraka-plugin-mongodb' without .js extension.
Start MongoDB service or correct the host/port/string in mongodb.ini.
Set attachment_path in [Attachments] section of mongodb.ini to an absolute path that exists and is writable.