New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coins-mail-daemon

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coins-mail-daemon

Mail sending daemon using coins-mail

  • 3.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

coins-mail-daemon

coins-mail-daemon uses Postgres notify events on the dd channel to listen for new records inserted into the mrs_mail table. Once coins-mail-daemon receives an event it grabs the last 1000 pieces of mail in the database and sends them using the supplied SMTP info.

.env [Environment Variables]

Coins-Mail-Daemon loads configuration via dotenv

  • For local development copy .env.example to .env and edit it's values appropriately
  • In deployment however these values are set on the host as Environment Variables via Ansible deploys

Required Variables (Local Dev)

VariableDefaultEdit Required
NODE_ENVdevelopment
ADMIN_EMAILnidev@mrn.org
SMTP_USERNAMEYES
SMTP_PASSWORDYES
DB_HOSTlocalhost
DB_PORT5432
DB_DATABASEcoins
DB_USERNAME_NODE_APIpostgresPossibly
DB_PASSWORD_NODE_APIYES

Recipient Override

Emails created from a non-production server are sent to an admin email account instead of the specified recipient.

  • NODE_ENV=PRODUCTION
    • emails are sent to the intended recipient like normal
  • Any other NODE_ENV (for example: NODE_ENV=development)
    • email's sendTo field will be overwritten with the ADMIN_EMAIL value

FAQs

Package last updated on 28 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc