8000 GitHub - emailfabric/smtpd: Go library for implementing simple SMTP servers.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Go library for implementing simple SMTP servers.

License

Notifications You must be signed in to change notification settings

emailfabric/smtpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smtpd

Go library for implementing simple SMTP servers. It's responsible for handling the SMTP server side protocol, nothing more, nothing less.

Usage

Create a type that implements the smtpd.Handler interface.

Create a smtp.Server instance with specific options and a listener.

Pass each connection together with a handler instance to ServeSMTP().

Testing

For testing authentication a TLS connection is used. Create a self-signed certificate before running the tests:

mkdir testdata
openssl genrsa 2048 > testdata/key.pem
openssl req -x509 -new -key key.pem > testdata/cert.pem

About

Go library for implementing simple SMTP servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0