smtp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proto

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

Proto is a smtp server protocol implementation.

func New

func New(
	authenticator delivery.Authenticator,
	mailman *delivery.Mailman,
	addressbook delivery.Addressbook,
	cache storage.Cache,
	tlsConfig *tls.Config,
	fromHooks []hook.FromHook,
	dataHooks []hook.DataHook,
) *Proto

New creates a new Protocol instance to be used with a textproto Server

func (*Proto) Handle

func (p *Proto) Handle(c textproto.Conn)

Handle accepts an smtp connection and handles all incoming commands in a loop until the transmission is closed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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