Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/digibib/gosmtpd

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/digibib/gosmtpd

  • v0.0.0-20160217203923-e51ec0b87286
  • Source
  • Go
  • Socket score

Version published
Created
Source

A very simple SMTP server with a REST API

Build Status Coverage Status

A server that accepts smtp request and saves the emails in memory for later retrieval.

Usage


usage: gosmtpd [<flags>]

Flags:
  --help              Show help (also see --help-long and --help-man).
  --webport=WEBPORT   Port the web server should run on (Default: 8000)
  --hostname="localhost"  
                      Hostname for the smtp server to listen to
  --port="2525"       Port for the smtp server to listen to
  --forwardhost=FORWARD_HOST
                      The hostname after the @ that we should forward i.e. gmail.com
  --forwardsmtp=FORWARD_SMTP
                      SMTP server to forward the mail to
  --forwardport=FORWARD_PORT
                      The port on which email should be forwarded (Default: 25)
  --forwarduser=FORWARD_USER
                      The username for the forward host
  --forwardpassword=FORWARD_PASSWORD
                      Password for the user
  --mailexpiration=300  
                      Time in seconds for a mail to expire, and be removed from database
  --version           Show application version.

GET /status

Returns a 200 if the service is up

GET /mail

List all mails

GET /inbox/:email

List all email for a given email address

GET /email/:id

Get an email by id

DELETE /inbox/:email

Delete all mails for a given email

DELETE /email/:id

Delete a email via the id

Trying it out

You can install it by doing

docker pull sorenmat/gosmtpd

docker start sorenmat/gosmtpd

FAQs

Package last updated on 17 Feb 2016

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