standalone incoming-email-to-http-post server
JavaScript
Permalink
Failed to load latest commit information.
public
spec
README.md Move to HTTP Basic Authentication Feb 3, 2014
http.js Move to HTTP Basic Authentication Feb 3, 2014
package.json init Feb 2, 2014
server.js Extract server code into service.js for testing Apr 18, 2014
service.js Email should be rejected when webhook http code is not 2XX Apr 18, 2014
smtp.js SMTP_VERBOSE flag for debugging Apr 20, 2014

README.md

diymailin

example

CONFIG=config.json PASSWORD=topsecret SMTP_PORT=1025 PORT=3000 npm start
  • use config.json to store and retrieve email-to-url configurations
  • use http://localhost:3000/ as web interface to add config into config.json
    • only accessible with HTTP Basic Authentication password topsecret
  • run SMTP server at port 1025
  • when email comes into SMTP server
    • if any of the recipient is configured in config.json
      • HTTP POST message param to configured url
      • if HTTP POST get error, tell remote SMTP client email was rejected
      • otherwise, tell remote SMTP client email was accepted
    • otherwise, tell remote SMTP client email was rejected