smtp

package
v0.0.0-...-c5a52a6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	BindAddr  string
	Hostname  string
	PolicySet config.ServerPolicySet

	AuthBackend     auth.Service
	DeliveryBackend delivery.Service
	ResolverBackend resolver.Service

	Config *config.Config
	Server *config.Server
	// contains filtered or unexported fields
}

Server represents an SMTP server instance

func (*Server) Accept

func (s *Server) Accept(remoteAddress string, conn io.ReadWriteCloser)

Accept starts a new SMTP session using io.ReadWriteCloser

func (*Server) Listen

func (s *Server) Listen() error

Listen starts listening on the configured bind address

type Session

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

Session represents a SMTP session using net.TCPConn

func (*Session) Read

func (c *Session) Read() bool

Read reads from the underlying io.Reader

func (*Session) Write

func (c *Session) Write(reply *smtp.Reply)

Write writes a reply to the underlying io.Writer

Jump to

Keyboard shortcuts

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