postfix

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MtaPostconfKeys = []string{
	"inet_interfaces",
	"mynetworks_style",
	"smtpd_recipient_restrictions",
}

MtaPostconfKeys is the minimal allowlist for mta_fingerprint (single postconf invocation).

Functions

func CollectPostfixPosture

func CollectPostfixPosture(ctx context.Context, services []payload.ServiceEntry) *payload.PostfixPosture

CollectPostfixPosture collects bounded Postfix security posture via allowlisted postconf keys and bounded master.cf parse. Returns nil when no postfix binary is found on PATH or common paths.

func LogicalMasterCfLines

func LogicalMasterCfLines(raw string) []string

LogicalMasterCfLines merges continuation lines (leading whitespace) and drops comments/empties.

func QueryPostconf

func QueryPostconf(ctx context.Context, keys []string) (map[string]string, error)

QueryPostconf runs postconf with an allowlisted parameter list only (no postconf -n dump).

Types

This section is empty.

Jump to

Keyboard shortcuts

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