remote

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package remote implements module which does outgoing message delivery using servers discovered using DNS MX records.

Implemented interfaces: - module.DeliveryTarget

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(_, instName string, _, inlineArgs []string) (module.Module, error)

func NewDANEPolicy

func NewDANEPolicy(_, instName string, _, _ []string) (module.Module, error)

func NewDNSSECPolicy added in v0.4.0

func NewDNSSECPolicy(_, instName string, _, _ []string) (module.Module, error)

func NewLocalPolicy

func NewLocalPolicy(_, instName string, _, _ []string) (module.Module, error)

func NewMTASTSPolicy

func NewMTASTSPolicy(_, instName string, _, _ []string) (module.Module, error)

func NewSTSPreload added in v0.4.0

func NewSTSPreload(_, instName string, _, _ []string) (module.Module, error)

Types

type PolicyGroup

type PolicyGroup struct {
	L []module.MXAuthPolicy
	// contains filtered or unexported fields
}

PolicyGroup is a module container for a group of Policy implementations.

It allows to share a set of policy configurations between remote target instances using named configuration blocks (module instances) system.

It is registered globally under the name 'mx_auth'. This is also the name of corresponding remote target configuration directive. The object does not implement any standard module interfaces besides module.Module and is specific to the remote target.

func (*PolicyGroup) Init

func (pg *PolicyGroup) Init(cfg *config.Map) error

func (PolicyGroup) InstanceName

func (pg PolicyGroup) InstanceName() string

func (PolicyGroup) Name

func (PolicyGroup) Name() string

type Target

type Target struct {
	Log log.Logger
	// contains filtered or unexported fields
}

func (*Target) Close

func (rt *Target) Close() error

func (*Target) Init

func (rt *Target) Init(cfg *config.Map) error

func (*Target) InstanceName

func (rt *Target) InstanceName() string

func (*Target) Name

func (rt *Target) Name() string

func (*Target) Start

func (rt *Target) Start(ctx context.Context, msgMeta *module.MsgMetadata, mailFrom string) (module.Delivery, error)

Jump to

Keyboard shortcuts

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