parent
e7bdc4e92b
commit
1af4d062fd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue