remote

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 32 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) (module.Module, error)

func NewDANEPolicy

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

func NewDNSSECPolicy added in v0.4.0

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

func NewLocalPolicy

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

func NewMTASTSPolicy

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

func NewSTSPreload added in v0.4.0

func NewSTSPreload(_, instName 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) Configure added in v0.9.0

func (pg *PolicyGroup) Configure(inlineArgs []string, 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) Configure added in v0.9.0

func (rt *Target) Configure(inlineArgs []string, 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() error

func (*Target) StartDelivery added in v0.9.0

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

func (*Target) Stop added in v0.9.0

func (rt *Target) Stop() error

Jump to

Keyboard shortcuts

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