{"id":19387674,"url":"https://github.com/haraka/haraka-plugin-rcpt-postgresql","last_synced_at":"2025-07-16T12:32:54.438Z","repository":{"id":57261332,"uuid":"73346308","full_name":"haraka/haraka-plugin-rcpt-postgresql","owner":"haraka","description":"Haraka plugin that validates recipients against a PostgreSQL database.","archived":false,"fork":false,"pushed_at":"2023-06-21T14:01:32.000Z","size":18,"stargazers_count":5,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-06T23:03:39.738Z","etag":null,"topics":["email","haraka","postgresql","recipients"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/haraka-plugin-rcpt-postgresql","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haraka.png","metadata":{"files":{"readme":"README.md","changelog":"Changes.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-10T04:09:29.000Z","updated_at":"2025-02-01T19:18:46.000Z","dependencies_parsed_at":"2025-04-23T23:31:24.356Z","dependency_job_id":"bf000c2c-0893-40f4-9678-554f6d7dcfac","html_url":"https://github.com/haraka/haraka-plugin-rcpt-postgresql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haraka/haraka-plugin-rcpt-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Fharaka-plugin-rcpt-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Fharaka-plugin-rcpt-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Fharaka-plugin-rcpt-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Fharaka-plugin-rcpt-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haraka","download_url":"https://codeload.github.com/haraka/haraka-plugin-rcpt-postgresql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraka%2Fharaka-plugin-rcpt-postgresql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265509371,"owners_count":23779345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","haraka","postgresql","recipients"],"created_at":"2024-11-10T10:10:07.012Z","updated_at":"2025-07-16T12:32:54.379Z","avatar_url":"https://github.com/haraka.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status][ci-img]][ci-url]\n[![Code Climate][clim-img]][clim-url]\n\n[![NPM][npm-img]][npm-url]\n\n# haraka-plugin-rcpt-postgresql\n\nValidates the rcpt_to addresses (recipient addresses) by connecting to a PostgreSQL database.\n\n## Install\n\n    cd /my/haraka/config/dir\n    npm install haraka-plugin-rcpt-postgresql\n\n### Enable\n\nAdd the following line to the `config/plugins` file.\n\n`rcpt-postgresql`\n\n## Config\n\nThe `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.\n\n```javascript\n{\n  \"user\": \"thihara\",\n  \"database\": \"haraka\",\n  \"password\": \"\",\n  \"host\": \"127.0.0.1\",\n  \"port\": 5432,\n  \"max\": 20,\n  \"idleTimeoutMillis\": 30000,\n  \"sqlQuery\": \"SELECT EXISTS(SELECT 1 FROM valid_emails WHERE email_id=$1) AS \\\"exists\\\"\"\n}\n```\n\n\n[ci-img]: https://travis-ci.org/haraka/haraka-plugin-rcpt-postgresql.svg\n[ci-url]: https://travis-ci.org/haraka/haraka-plugin-rcpt-postgresql\n[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-rcpt-postgresql/badges/gpa.svg\n[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-rcpt-postgresql\n[npm-img]: https://nodei.co/npm/haraka-plugin-rcpt-postgresql.png\n[npm-url]: https://www.npmjs.com/package/haraka-plugin-rcpt-postgresql\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharaka%2Fharaka-plugin-rcpt-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharaka%2Fharaka-plugin-rcpt-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharaka%2Fharaka-plugin-rcpt-postgresql/lists"}