1
0
mirror of https://git.keinpfusch.net/loweel/zangtumb synced 2024-12-18 10:08:28 +01:00

Logging MAIL

LOGGING MAIL for STARTTLS
This commit is contained in:
Uriel Fanelli 2023-06-18 19:07:35 +02:00
parent e7bdc4e92b
commit 1af4d062fd

View File

@ -259,6 +259,11 @@ loop:
to = nil
buffer.Reset()
case "MAIL":
log.Println("TlsConfigExists: " , s.srv.TLSConfig != nil)
log.Println("TLS_Required: " , s.srv.TLSRequired)
log.Println("We Are in Clear: ", !s.tls)
if s.srv.TLSConfig != nil && s.srv.TLSRequired && !s.tls {
s.writef("530 5.7.0 Must issue a STARTTLS command first")
break