This plugin will store incoming emails in MongoDB and store all attachments on the disk. This plugin has been tested with over 40,000 incoming emails a day.
Additionally, you can also store all results for outgoing emails.
Easiest is to install this via npm on your Haraka server:
npm install haraka-plugin-mongodb
Alternatively you can also do a git clone into the Haraka node_modules directory. The installation directory depends if you installed Haraka globally or not.
Edit the mongodb.ini in the config directory to your requirement:
Provide your credentials to connect to your MongoDB instance.
The collection to use for the queue (incoming) and delivery results (outgoing).
Provide the absolute path to store attachments.
Enable the "queue" to enable this plugin to store incoming emails into the MongoDB database. Enable the "delivery" to store results for outgoing emails.
If you run into any issue, please report them on the plugins issue page