Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartProxy ¶
StartProxy starts the mail proxy in order to add a middleware layer between YM and internet
Types ¶
type Configuration ¶
type Configuration struct { // Port of the proxy Port int `yaml:"port"` // TCP or UNIX address to listen on Addr string `yaml:"listen_address"` // MaxRecipients is the number of maximum recipients in the email MaxRecipients int `yaml:"max_recipients"` // YMAddr is the address of the YM entrypoint YMAddr string `yaml:"yulmails_address"` // TODO: add TLS configuration YMAPI string `yaml:"yulmails_api"` }
Configuration is the configuration for the mail proxy.
type Yulmails ¶
type Yulmails interface { // GetDomain return a domain, nil if not found GetDomain(string) (*domain.Domain, error) // GetWhitelist return IP whitelisted for YM GetWhitelist() ([]string, error) }
Yulmails is the programmatic API to use with the proxy later we will move elsewhere to be globally available
Click to show internal directories.
Click to hide internal directories.