1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 01:57:02 +00:00

Add a ForceTLS flag for SMTP. (#402)

When this is enabled, the server listens with TLS instead of waiting for
STARTTLS.

Signed-off-by: Benson Margulies <bimargulies@google.com>
This commit is contained in:
Benson Margulies
2023-10-16 14:31:16 -07:00
committed by GitHub
parent 3709aa8b51
commit beb5abc62d
3 changed files with 13 additions and 3 deletions

View File

@@ -90,6 +90,7 @@ type SMTP struct {
TLSPrivKey string `default:"cert.key" desc:"X509 Private Key file for TLS Support"`
TLSCert string `default:"cert.crt" desc:"X509 Public Certificate file for TLS Support"`
Debug bool `ignored:"true"`
ForceTLS bool `default:"false" desc:"Listen for connections with TLS."`
}
// POP3 contains the POP3 server configuration.