proxy

package module
v0.0.0-...-cd8b7f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 6 Imported by: 1

README

go-smtp-proxy

GoDoc

A go-smtp server backend that proxies messages to another SMTP server.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Addr      string
	Security  Security
	TLSConfig *tls.Config
	LMTP      bool
	Host      string
	LocalName string
	// contains filtered or unexported fields
}

func New

func New(addr string) *Backend

func NewLMTP

func NewLMTP(addr string, host string) *Backend

func NewTLS

func NewTLS(addr string, tlsConfig *tls.Config) *Backend

func (*Backend) AnonymousLogin

func (be *Backend) AnonymousLogin(state *smtp.ConnectionState) (smtp.Session, error)

func (*Backend) Login

func (be *Backend) Login(state *smtp.ConnectionState, username, password string) (smtp.Session, error)

type Security

type Security int
const (
	SecurityTLS Security = iota
	SecurityStartTLS
	SecurityNone
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL