dnsbl

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: GPL-3.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.9.0

func New(c *container.C, modName, instName 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) Configure added in v0.9.0

func (bl *DNSBL) Configure(inlineArgs []string, 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

	ResponseRules []ResponseRule
}

type ListedErr

type ListedErr struct {
	Identity string
	List     string
	Reason   string
	Score    int
	Message  string
}

func (ListedErr) Error

func (le ListedErr) Error() string

func (ListedErr) Fields

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

type ResponseRule added in v0.9.0

type ResponseRule struct {
	Networks []net.IPNet
	Score    int
	Message  string
}

Jump to

Keyboard shortcuts

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