smtp

package
v0.0.0-...-550d1a2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

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
	Host      string

	KR KeyRing
	// contains filtered or unexported fields
}

func New

func New(addr string, kr KeyRing) *Backend

func NewTLS

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

func (*Backend) AnonymousLogin

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

func (*Backend) Login

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

type KeyRing

type KeyRing struct {
	Source pubkey.Source
	Unlock unlock.UnlockFunction
}

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