mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-29 07:15:45 +08:00
Do not announce STARTTLS if the listener does not support it
This commit is contained in:
parent
d4e6d19f9c
commit
6867509f5e
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ impl<T: SessionStream> Session<T> {
|
|||
let mut response = EhloResponse::new(self.hostname.as_str());
|
||||
response.capabilities =
|
||||
EXT_ENHANCED_STATUS_CODES | EXT_8BIT_MIME | EXT_BINARY_MIME | EXT_SMTP_UTF8;
|
||||
if !self.stream.is_tls() {
|
||||
if !self.stream.is_tls() && self.instance.acceptor.is_tls() {
|
||||
response.capabilities |= EXT_START_TLS;
|
||||
}
|
||||
let ec = &self.core.core.smtp.session.extensions;
|
||||
|
|
Loading…
Add table
Reference in a new issue