smtp

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: GPL-3.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(modName string, addrs []string) (module.Module, error)

Types

type Endpoint

type Endpoint struct {
	Log log.Logger
	// contains filtered or unexported fields
}

func (*Endpoint) Close

func (endp *Endpoint) Close() error

func (*Endpoint) ConnectionCount

func (endp *Endpoint) ConnectionCount() int

func (*Endpoint) Init

func (endp *Endpoint) Init(cfg *config.Map) error

func (*Endpoint) InstanceName

func (endp *Endpoint) InstanceName() string

func (*Endpoint) Name

func (endp *Endpoint) Name() string

func (*Endpoint) NewSession

func (endp *Endpoint) NewSession(conn *smtp.Conn) (smtp.Session, error)

func (*Endpoint) Serve

func (endp *Endpoint) Serve(l net.Listener) error

type Session

type Session struct {
	// contains filtered or unexported fields
}

func (*Session) Auth

func (s *Session) Auth(mech string) (sasl.Server, error)

func (*Session) AuthMechanisms

func (s *Session) AuthMechanisms() []string

func (*Session) AuthPlain

func (s *Session) AuthPlain(username, password string) error

func (*Session) Data

func (s *Session) Data(r io.Reader) error

func (*Session) LMTPData

func (s *Session) LMTPData(r io.Reader, sc smtp.StatusCollector) error

func (*Session) Logout

func (s *Session) Logout() error

func (*Session) Mail

func (s *Session) Mail(from string, opts *smtp.MailOptions) error

func (*Session) Rcpt

func (s *Session) Rcpt(to string, opts *smtp.RcptOptions) error

func (*Session) Reset

func (s *Session) Reset()

Jump to

Keyboard shortcuts

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