Documentation
¶
Overview ¶
Package remote implements module which does outgoing message delivery using servers discovered using DNS MX records.
Implemented interfaces: - module.DeliveryTarget
Index ¶
- func New(_, instName string, _, inlineArgs []string) (module.Module, error)
- func NewDANEPolicy(_, instName string, _, _ []string) (module.Module, error)
- func NewDNSSECPolicy(_, instName string, _, _ []string) (module.Module, error)
- func NewLocalPolicy(_, instName string, _, _ []string) (module.Module, error)
- func NewMTASTSPolicy(_, instName string, _, _ []string) (module.Module, error)
- func NewSTSPreload(_, instName string, _, _ []string) (module.Module, error)
- type PolicyGroup
- type Target
- func (rt *Target) Close() error
- func (rt *Target) Init(cfg *config.Map) error
- func (rt *Target) InstanceName() string
- func (rt *Target) Name() string
- func (rt *Target) SetDNSCache(cache *dns_cache.Cache)
- func (rt *Target) Start(ctx context.Context, msgMeta *module.MsgMetadata, mailFrom string) (module.Delivery, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDNSSECPolicy ¶
func NewMTASTSPolicy ¶
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) InstanceName ¶
func (pg PolicyGroup) InstanceName() string
func (PolicyGroup) Name ¶
func (PolicyGroup) Name() string
type Target ¶
func (*Target) InstanceName ¶
func (*Target) SetDNSCache ¶ added in v0.14.1
SetDNSCache sets the database-backed DNS override cache. When set, MX lookups will check the local DB before falling back to the OS DNS resolver.