smtpserv

package
v0.0.0-...-0b5f50f Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2015 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

An SMTP server Implementation. The SMTP server is tightly coupled with the mailbottle package and makes use of the Mailbottle format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func (*Server) Init

func (s *Server) Init(c *ServerConfig)

func (*Server) Serve

func (s *Server) Serve(conn io.ReadWriteCloser) error

type ServerConfig

type ServerConfig struct {
	Handler   mailbottle.Handler
	TlsConfig *tls.Config
	/*
		SMTP's VRFY command
		returns the email address or ""
	*/
	Verify func(addr string) string
}

Jump to

Keyboard shortcuts

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