config

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server  ServerConfig
	WebPort *string
}

Config is the configuration structure used to set up dovel server and web interface. This should be a JSON file located in $HOME/.dovel-config.json Server field configures the server, and WebPort is an optional field used to specify the HTTP server port for the web interface, if present the HTTP web server is started.

type InboxConfig

type InboxConfig struct {
	Domain      string
	DKIMKeyPath string
	Templates   string
	Handler     string
	Root        string
	Password    string
}

type ServerConfig added in v0.4.0

type ServerConfig struct {
	Address string
	Domain  string
	Inboxes []InboxConfig
}

ServerConfig is used to configure your email server. Address is used to specify which address the server should listen to connections, a typicall value is :2525. Domain is what the server should respond in a HELO or EHLO request. Inboxes are the accounts available is this server, i.e. the accepted domains on emails: "[email protected]". Each domain is handled separetly, so you can receive email for multiple domains. Lastly DKIM fields should be the path to the keys, they are optional.

Jump to

Keyboard shortcuts

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