#7: implement POP3 protocol server (RFC 1939, RFC 2449, STLS)

This commit is contained in:
Lucas Rayan committed 2026-07-24 11:51:27 -03:00
1 parent 883c78e48c
commit 9ca97298bd
7 files changed
+1238

No files matched your search

@@ -18,6 +18,7 @@ import (
"lambdamail/protocols/internal/infrastructure/postgres"
tlsprovider "lambdamail/protocols/internal/infrastructure/tls"
imappresentation "lambdamail/protocols/internal/presentation/imap"
pop3presentation "lambdamail/protocols/internal/presentation/pop3"
smtppresentation "lambdamail/protocols/internal/presentation/smtp"
)
@@ -111,6 +112,16 @@ func main() {
}
}()
pop3UseCase := usecase.NewPop3SessionUseCase(authRepo, imapFolders, messageQuery, blobReader, expungeRepo)
pop3Server := pop3presentation.NewServer(":110", pop3UseCase, certProvider)
go func() {
log.Printf("lambdamail-protocols POP3 listening on :110")
if err := pop3Server.ListenAndServe(); err != nil {
log.Fatalf("pop3 serve: %v", err)
}
}()
handler := health.Handler(func() error { return pool.Ping(ctx) })
addr := ":8080"
log.Printf("lambdamail-protocols health listening on %s", addr)