smtp

package
v0.0.0-...-e72bc3c Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDataBlockTimeout         = 3 * time.Minute
	DefaultDataInitiationTimeout    = 2 * time.Minute
	DefaultDataTerminationTimeout   = 10 * time.Minute
	DefaultInitial220MessageTimeout = 5 * time.Minute
	DefaultMAILCommandTimeout       = 5 * time.Minute
	DefaultRCPTCommandTimeout       = 5 * time.Minute
	DefaultServerTimeout            = 5 * time.Minute
)

Variables

View Source
var (
	ErrMissingServerAddr      = errors.New("smtp: Missing Server Addr")
	ErrMissingServerTLSConfig = errors.New("smtp: Missing Server TLSConfig")
	ErrServerClosed           = errors.New("smtp: Server closed")
)

Functions

This section is empty.

Types

type Server

type Server struct {
	Address   string
	TLSConfig *tls.Config

	AuthenticationEncrypted bool
	AuthenticationMandatory bool
	Domain                  string

	Initial220MessageTimeout time.Duration
	MailCommandTimeout       time.Duration
	RcptCommandTimeout       time.Duration
	// contains filtered or unexported fields
}

A Server defines parameters for running an SMTP server.

func (*Server) Close

func (srv *Server) Close() error

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe() error

func (*Server) ListenAndServeTLS

func (srv *Server) ListenAndServeTLS() error

func (*Server) Serve

func (srv *Server) Serve(l net.Listener) error

func (*Server) ServeTLS

func (srv *Server) ServeTLS(l net.Listener) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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