mta

package
v0.0.0-...-6ddcf40 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(opt *Option) error

Listen for different hosts on Option.Addrs. Return an error or loop.

Types

type AuthTest

type AuthTest func(login, password string) (ok bool)

type HostOption

type HostOption struct {
	// The name of the host
	Name string
	// Dkim PEM key file
	DkimKey string
	// The text DNS selector
	DkimSelector string
	// The certificate and key for the TLS connexion
	Cert, Key string
}

type Option

type Option struct {
	// The log output
	Out io.Writer
	// Listen address
	Addrs []string
	// All the hosts
	Hosts []HostOption

	AuthTest AuthTest
	// the file that contain login and password. Used if AuthTest is nil
	AuthFile string
}

Jump to

Keyboard shortcuts

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