chore(GODT-2799): Move Identifier interface to separate module

Required so we can move the smtp backend into the smtp service module.
This commit is contained in:
Leander Beernaert
2023-07-18 15:14:30 +02:00
parent d120bbeffc
commit 8d028966c7
6 changed files with 64 additions and 20 deletions

View File

@ -36,7 +36,7 @@ func (bridge *Bridge) restartSMTP(ctx context.Context) error {
func newSMTPServer(bridge *Bridge, accounts *bridgesmtp.Accounts, tlsConfig *tls.Config, logSMTP bool) *smtp.Server {
logrus.WithField("logSMTP", logSMTP).Info("Creating SMTP server")
smtpServer := smtp.NewServer(&smtpBackend{bridge: bridge, accounts: accounts})
smtpServer := smtp.NewServer(&smtpBackend{userAgent: &bridgeUserAgentUpdater{Bridge: bridge}, accounts: accounts})
smtpServer.TLSConfig = tlsConfig
smtpServer.Domain = constants.Host