From 4f6890562a6578794d231f3fc7f90f6349031c6c Mon Sep 17 00:00:00 2001 From: Hocuri Date: Mon, 27 Jul 2020 21:04:57 +0200 Subject: [PATCH] Do not expose the hostname to the server, just make it localhost --- src/smtp/smtp_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smtp/smtp_client.rs b/src/smtp/smtp_client.rs index d33f44a..ba25a62 100644 --- a/src/smtp/smtp_client.rs +++ b/src/smtp/smtp_client.rs @@ -108,7 +108,7 @@ impl SmtpClient { smtp_utf8: false, credentials: None, connection_reuse: ConnectionReuseParameters::NoReuse, - hello_name: ClientId::hostname(), + hello_name: ClientId::new("localhost".to_string()), authentication_mechanism: None, force_set_auth: false, timeout: Some(Duration::new(60, 0)),