Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haraka/haraka-plugin-rcpt-postgresql
Haraka plugin that validates recipients against a PostgreSQL database.
https://github.com/haraka/haraka-plugin-rcpt-postgresql
email haraka postgresql recipients
Last synced: about 2 months ago
JSON representation
Haraka plugin that validates recipients against a PostgreSQL database.
- Host: GitHub
- URL: https://github.com/haraka/haraka-plugin-rcpt-postgresql
- Owner: haraka
- License: mit
- Created: 2016-11-10T04:09:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T14:01:32.000Z (over 1 year ago)
- Last Synced: 2024-10-14T02:07:57.243Z (3 months ago)
- Topics: email, haraka, postgresql, recipients
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/haraka-plugin-rcpt-postgresql
- Size: 17.6 KB
- Stars: 4
- Watchers: 6
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: Changes.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url][![NPM][npm-img]][npm-url]
# haraka-plugin-rcpt-postgresql
Validates the rcpt_to addresses (recipient addresses) by connecting to a PostgreSQL database.
## Install
cd /my/haraka/config/dir
npm install haraka-plugin-rcpt-postgresql### Enable
Add the following line to the `config/plugins` file.
`rcpt-postgresql`
## Config
The `rcpt-postgresql.json` file has the following structure (defaults shown). Also note that this file will need to be created, if not present, in the `config` directory.
```javascript
{
"user": "thihara",
"database": "haraka",
"password": "",
"host": "127.0.0.1",
"port": 5432,
"max": 20,
"idleTimeoutMillis": 30000,
"sqlQuery": "SELECT EXISTS(SELECT 1 FROM valid_emails WHERE email_id=$1) AS \"exists\""
}
```[ci-img]: https://travis-ci.org/haraka/haraka-plugin-rcpt-postgresql.svg
[ci-url]: https://travis-ci.org/haraka/haraka-plugin-rcpt-postgresql
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-rcpt-postgresql/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-rcpt-postgresql
[npm-img]: https://nodei.co/npm/haraka-plugin-rcpt-postgresql.png
[npm-url]: https://www.npmjs.com/package/haraka-plugin-rcpt-postgresql