Added support for sending with relay hosts
This commit is contained in:
@@ -46,6 +46,12 @@ func New() *Config {
|
||||
DSN: env.String("db.dsn", defaultConfig.DB.DSN),
|
||||
Dialect: env.String("db.dialect", defaultConfig.DB.Dialect),
|
||||
},
|
||||
Relay: Relay{
|
||||
Host: env.String("relay.host", defaultConfig.Relay.Host),
|
||||
Port: env.String("relay.port", defaultConfig.Relay.Port),
|
||||
Username: env.String("relay.username", defaultConfig.Relay.Username),
|
||||
Password: env.String("relay.password", defaultConfig.Relay.Password),
|
||||
},
|
||||
}
|
||||
|
||||
return cfg
|
||||
|
||||
@@ -41,6 +41,8 @@ type Config struct {
|
||||
|
||||
// Monitoring config
|
||||
Monitoring Monitoring
|
||||
|
||||
Relay Relay
|
||||
}
|
||||
|
||||
// DB config
|
||||
@@ -72,3 +74,11 @@ type Mailboxes struct {
|
||||
Reserved []string
|
||||
Activation string
|
||||
}
|
||||
|
||||
// Relay config
|
||||
type Relay struct {
|
||||
Host string
|
||||
Port string
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user