server

package
v0.0.0-...-dfc110a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteMail

func WriteMail(m *mail.Message, w io.Writer) error

Types

type AllowAddrFunc

type AllowAddrFunc func(addr string) bool

type Authenticator

type Authenticator interface {
	Authenticate(username, password string) (AllowAddrFunc, error)
}

type Server

type Server struct {
	Hostname     string
	TLSconfig    *tls.Config
	Auth         Authenticator
	DeliverLocal deliverFunc
	AllowProxy   bool //All mail to be sent neither to a local address nor from
}

func NewServer

func NewServer(hostname string) *Server

Jump to

Keyboard shortcuts

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