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
1 changed files with 5 additions and 0 deletions

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