dnsbl

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNSBL

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

Types

type DNSBL

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

func (*DNSBL) CheckConnection

func (bl *DNSBL) CheckConnection(ctx context.Context, state *module.ConnState) error

CheckConnection implements module.EarlyCheck.

func (*DNSBL) CheckStateForMsg

func (bl *DNSBL) CheckStateForMsg(ctx context.Context, msgMeta *module.MsgMetadata) (module.CheckState, error)

func (*DNSBL) Init

func (bl *DNSBL) Init(cfg *config.Map) error

func (*DNSBL) InstanceName

func (bl *DNSBL) InstanceName() string

func (*DNSBL) Name

func (bl *DNSBL) Name() string

type List

type List struct {
	Zone string

	ClientIPv4 bool
	ClientIPv6 bool

	EHLO     bool
	MAILFROM bool

	ScoreAdj  int
	Responses []net.IPNet
}

type ListedErr

type ListedErr struct {
	Identity string
	List     string
	Reason   string
}

func (ListedErr) Error

func (le ListedErr) Error() string

func (ListedErr) Fields

func (le ListedErr) Fields() map[string]interface{}

Jump to

Keyboard shortcuts

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