feat(GODT-3146): keep imap/smtp server always on.

This commit is contained in:
Jakub
2024-03-13 14:22:23 +01:00
parent d35af6b686
commit 921a44f1a3

View File

@ -108,6 +108,16 @@ func (sm *Service) Init(ctx context.Context, group *async.Group, subscription ev
})
})
if err := sm.serveIMAP(ctx); err != nil {
sm.log.WithError(err).Error("Failed to start IMAP server")
return err
}
if err := sm.serveSMTP(ctx); err != nil {
sm.log.WithError(err).Error("Failed to start SMTP server")
return err
}
return nil
}
@ -710,7 +720,7 @@ func (sm *Service) handleSetGluonDir(ctx context.Context, newGluonDir string) er
}
func (sm *Service) shouldStartServers() bool {
return sm.loadedUserCount >= 1
return true // sm.loadedUserCount >= 1
}
type smRequestClose struct{}