A few plugins to be used with haraka
- auth_pg.js
- rcpt_to.postgres.resolve_alias.js
- rcpt_to.postgres.resolve_domain.js
- rcpt_to.postgres.resolve_recipient.js
- srs.js
- maildir.js
- outbound.js
See docs folder for more information about the individual plugins.
You also need to install the haraka address plugins:
npm install address-rfc2821
npm install address-rfc2822
- Have a running postgres database
- Install postgres nodejs plugin: npm install pg
- Set the correct connection string in config/postgres.ini
A plugin to check if a user is authorized to send emails. Checks the password in the database. Is being used for sending out emails.
A plugin to check if an alias exists for a recipient and if so resolve the alias. Used when receiving emails.
A plugin to check if a recipient is present in the database. Used when receiving emails.
A plugin for SRS: sender rewrite scheme. See, for instance, here for more explanations.
Used when receiving an email for an alias-recipient, where the alias points to another outside address.
Install srs.js in your haraka instance:
npm install srs.js
Stores the email into a file in a maildir structure. See here for more info about the maildir format. This plugin is a simplified version of maildir plugin for local delivery.
Sends emails further to the next recipients. Mainly to be used with the alias plugin.
In the RCPT TO section
rcpt_to.postgres.resolve_domain
rcpt_to.postgres.resolve_recipient
rcpt_to.postgres.resolve_alias
srs
In the QUEUE section
maildir
outbound
In the AUTH section
auth.pg
These plugins only have been tested on linux machines.