ctl

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAddress

func FormatAddress(addr *imap.Address) string

func FormatAddressList

func FormatAddressList(addrs []*imap.Address) string

Types

type AppendLimitUser

type AppendLimitUser interface {
	imapbackend.AppendLimitUser

	// SetMessageLimit sets new value for limit.
	// nil pointer means no limit.
	SetMessageLimit(val *uint32) error
}

AppendLimitUser is extension for backend.User interface which allows to set append limit value for testing and administration purposes.

type InstallConfig

type InstallConfig struct {
	// Basic configuration
	Hostname      string
	PrimaryDomain string
	LocalDomains  string
	StateDir      string
	Generated     string

	// TLS configuration
	TLSCertPath string
	TLSKeyPath  string

	// Network configuration
	SMTPPort       string
	SubmissionPort string
	SubmissionTLS  string
	IMAPPort       string
	IMAPTLS        string

	// Chatmail configuration
	EnableChatmail      bool
	ChatmailHTTPPort    string
	ChatmailHTTPSPort   string
	ChatmailUsernameLen int
	ChatmailPasswordLen int

	// PGP Encryption configuration
	RequirePGPEncryption     bool
	AllowSecureJoin          bool
	PGPPassthroughSenders    []string
	PGPPassthroughRecipients []string

	// DNS configuration (for template)
	A             string
	AAAA          string
	DKIM_Entry    string
	STS_ID        string
	ACME_Account  string
	UseCloudflare bool // Add Cloudflare proxy disable tags

	// System configuration
	MaddyUser   string
	MaddyGroup  string
	ConfigDir   string
	SystemdPath string
	BinaryPath  string
	LibexecDir  string
	LogFile     string
}

InstallConfig holds all configuration values for the installation

type SpecialUseUser

type SpecialUseUser interface {
	CreateMailboxSpecial(name, specialUseAttr string) error
}

type UninstallConfig

type UninstallConfig struct {
	// Detected configuration
	ServiceFiles  []string
	ConfigFiles   []string
	StateDir      string
	ConfigDir     string
	BinaryPath    string
	MaddyUser     string
	MaddyGroup    string
	LogFiles      []string
	DatabaseFiles []string
	CertFiles     []string

	// Service status
	ServiceRunning bool
	ServiceEnabled bool

	// Installation detection
	InstallationFound bool
	SystemdUnit       string
	ConfigPath        string
}

UninstallConfig holds information about the current maddy installation

Jump to

Keyboard shortcuts

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