smtpserver

package
v0.0.0-...-edf14c0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MPL-2.0 Imports: 14 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 {
	Mode    BackendMode
	Log     *log.Logger
	Config  *config.Config
	Queues  *smtpsender.Queues
	Storage storage.Storage
	Notify  *imapserver.IMAPNotify
}

func (*Backend) AnonymousLogin

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

func (*Backend) Login

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

type BackendMode

type BackendMode int
const (
	BackendModeInternal BackendMode = iota
	BackendModeExternal
)

type SMTPServer

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

func NewSMTPServer

func NewSMTPServer(backend smtp.Backend, notify *imapserver.IMAPNotify) *SMTPServer

type SessionLocal

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

func (*SessionLocal) Data

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

func (*SessionLocal) Logout

func (s *SessionLocal) Logout() error

func (*SessionLocal) Mail

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

func (*SessionLocal) Rcpt

func (s *SessionLocal) Rcpt(to string) error

func (*SessionLocal) Reset

func (s *SessionLocal) Reset()

type SessionRemote

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

func (*SessionRemote) Data

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

func (*SessionRemote) Logout

func (s *SessionRemote) Logout() error

func (*SessionRemote) Mail

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

func (*SessionRemote) Rcpt

func (s *SessionRemote) Rcpt(to string) error

func (*SessionRemote) Reset

func (s *SessionRemote) Reset()

Jump to

Keyboard shortcuts

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