This is called sendmail everywhere

This commit is contained in:
Melon 2023-09-11 01:44:08 +01:00
parent b35b25c11c
commit a21b4c4871
Signed by: melon
GPG Key ID: 6C9D970C50D26A25
2 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,6 @@ import (
type Conf struct {
Listen string `yaml:"listen"`
Audience string `yaml:"audience"`
Smtp *sendmail.Smtp `yaml:"sendmail"`
SendMail *sendmail.Smtp `yaml:"sendmail"`
Imap *imap.Imap `yaml:"imap"`
}

View File

@ -48,7 +48,7 @@ func main() {
}
userAuth := api.CheckAuth(verify, conf.Audience)
srv := api.SetupApiServer(conf.Listen, userAuth, conf.Smtp, conf.Imap)
srv := api.SetupApiServer(conf.Listen, userAuth, conf.SendMail, conf.Imap)
log.Printf("[Lotus] Starting API server on: '%s'\n", srv.Addr)
go utils.RunBackgroundHttp("Lotus", srv)