Please make the text appended to successful SMTP HELO and EHLO responses configurable.
Currently, Stalwart returns responses in the following format:
250 mail.example.com you had me at HELO
250-mail.example.com you had me at EHLO
The suffixes you had me at HELO and you had me at EHLO appear to be hardcoded in the SMTP implementation.
Motivation
The current wording creates a distinctive and easily identifiable fingerprint of the underlying SMTP software.
Anyone connecting to a Stalwart SMTP server can identify it simply by issuing an EHLO command and inspecting the response. No version detection, additional protocol probing or other fingerprinting techniques are required.
For operators running commercial, multi-domain or white-label mail-hosting services, unnecessarily disclosing the underlying MTA implementation is undesirable. Administrators should be able to control the information exposed by their SMTP servers and present neutral, professional responses without identifying the software powering the service.
This is not a claim that the current behaviour represents a security vulnerability. Rather, it is an avoidable disclosure of infrastructure information and an unnecessary software fingerprint.
Proposed behaviour
Introduce separate configuration settings for the greeting suffixes appended to successful HELO and EHLO responses.
For example, with both suffixes configured as empty:
HELO:
250 mail.example.com
EHLO:
250-mail.example.com
250-STARTTLS
250-SIZE 104857600
...
Administrators should be able to:
-
Configure the HELO and EHLO response suffix independently.
-
Set either suffix to an empty value to suppress it entirely.
-
Retain the current wording as the default for backward compatibility.
Configuration
The settings should be exposed through Stalwart’s supported configuration mechanisms, including JMAP configuration, without requiring source-code modifications.
Benefits
-
Reduces unnecessary software fingerprinting.
-
Gives administrators control over SMTP server identity and presentation.
-
Supports commercial, multi-tenant and white-label mail-hosting deployments.
-
Preserves existing SMTP protocol behaviour and advertised capabilities.
-
Maintains backward compatibility for existing installations.
Thank you!
Best,
Andy