Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServerConfig ProxyServerConfig `yaml:"smtpd-proxy"`
}
Config represents the structure of the yaml file
func (*Config) LoadDefaults ¶
LoadDefaults sets defaults for configuration
type ProxyServerConfig ¶
type ProxyServerConfig struct { Listen string `yaml:"listen" default:"127.0.0.1:1025"` Ehlo string `yaml:"ehlo" default:"-"` Username string `yaml:"username" default:"-"` Password string `yaml:"password" default:"-"` IsAnonAuthAllowed bool `yaml:"is_anon_auth_allowed" default:"-"` ServerCertificatePath string `yaml:"server-cert" default:"-"` ServerKeyPath string `yaml:"server-key" default:"-"` UpstreamServers []UpstreamServer `yaml:"upstream-servers"` }
ProxyServerConfig the top level config
Click to show internal directories.
Click to hide internal directories.