From a3226162a4b1fded82ef71626c8214a2dc3df69a Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sat, 4 Apr 2026 20:34:33 -0300 Subject: [PATCH] fix: set hello_name to mail.pragmatismo.com.br for Stalwart EHLO --- src/email/types.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/email/types.rs b/src/email/types.rs index a42fc047..85c6376f 100644 --- a/src/email/types.rs +++ b/src/email/types.rs @@ -364,10 +364,16 @@ impl EmailService { .map_err(|e| format!("SMTP relay error: {}", e))? .port(smtp_port) .credentials(creds) + .hello_name(lettre::transport::smtp::ClientId::Domain( + "mail.pragmatismo.com.br".to_string(), + )) .build() } else { SmtpTransport::builder_dangerous(&smtp_host) .port(smtp_port) + .hello_name(lettre::transport::smtp::ClientId::Domain( + "mail.pragmatismo.com.br".to_string(), + )) .build() };