Sign inSign up

sorenmat/gosmtpd

By sorenmat

•Updated almost 7 years ago

GoSmtp server with a rest interface

Image
1

620

sorenmat/gosmtpd repository overview

⁠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="8000"    Port the web server should run on
  --hostname="localhost"  
                      Hostname for the smtp server to listen to
  --port="2525"       Port for the smtp server to listen to
  --forwardhost=FORWARDHOST  
                      The hostname after the @ that we should forward i.e. gmail.com
  --forwardsmtp=FORWARDSMTP  
                      SMTP server to forward the mail to
  --forwardport="25"  The port on which email should be forwarded
  --forwarduser=FORWARDUSER  
                      The username for the forward host
  --forwardpassword=FORWARDPASSWORD  
                      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

Tag summary

Content type

Image

Digest

sha256:40c66d04a…

Size

65.4 MB

Last updated

about 11 years ago

docker pull sorenmat/gosmtpd