https://github.com/motdotla/haraka-redis
Haraka plugin that will save an incoming email to a locally running redis server
https://github.com/motdotla/haraka-redis
Last synced: 6 months ago
JSON representation
Haraka plugin that will save an incoming email to a locally running redis server
- Host: GitHub
- URL: https://github.com/motdotla/haraka-redis
- Owner: motdotla
- Created: 2013-10-06T16:26:10.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-07T16:37:33.000Z (almost 12 years ago)
- Last Synced: 2025-04-11T03:13:51.124Z (6 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# haraka-redis
This is a Haraka plugin that will save an incoming email to a locally running redis server. This plugin depends on Redis to store the email.
## Installation
### Haraka Install
If you've already installed Haraka, you can skip this step.
Install Nodejs.
```bash
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
```Then setup haraka.
```bash
sudo npm install -g Haraka
sudo haraka -i /etc/haraka
```Comment out all the plugins in /etc/haraka/config/plugins.
```bash
sudo vim /etc/haraka/config/plugins
```Change `config/me` to list your domain.
```bash
sudo vim /etc/haraka/config/me
```Add your domain to that file.
```
yourdomain.com
```Start the haraka service
```bash
sudo haraka -c /etc/haraka
```[Click here](http://beingasysadmin.wordpress.com/2013/04/16/haraka-a-nodejs-based-smtp-server/) for more detailed haraka install instructions.
### haraka-redis Install
Add `data.redis` to the end of /etc/haraka/config/plugins.
```bash
sudo vim /etc/haraka/config/plugins
```And add the following.
```
data.redis
```Finally, setup the js plugin.
```bash
cd /etc/haraka/plugins
sudo npm install -g redis
sudo npm install -g microtime
sudo npm install -g redis-wstream
sudo wget https://raw.github.com/scottmotte/haraka-redis/master/data.redis.js
cd ..
sudo haraka -c .
```