mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-06 22:47:37 +03:00
Allow to define tls and hostname outside of module configuration
This allows to set hostname or tls for all modules, making it possible slightly cleaner configuration.
This commit is contained in:
parent
63bf1a1867
commit
09acaeff39
6 changed files with 68 additions and 42 deletions
|
@ -33,7 +33,7 @@ func (sqlm *SQLMail) Version() string {
|
|||
return sqlmail.VersionStr
|
||||
}
|
||||
|
||||
func NewSQLMail(instName string, cfg config.Node) (module.Module, error) {
|
||||
func NewSQLMail(instName string, globalCfg map[string][]string, cfg config.Node) (module.Module, error) {
|
||||
var driver string
|
||||
var dsn string
|
||||
var appendlimitSet bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue