Add a configurable imapGreeting field to the Imap singleton, similar to the existing smtpGreeting in MtaStageConnect.
Problem Statement
Currently, the IMAP greeting is hardcoded as:
* OK Stalwart IMAP4rev2 at your service
This lack of configurability poses a privacy and security concern, as administrators cannot customize or obfuscate the server identity in the IMAP banner.
Proposed Solution
-
Introduce a
imapGreetingfield in theImapsingleton. -
Allow administrators to define a custom IMAP greeting string via configuration.
-
Default to the current hardcoded greeting if no custom value is provided (to preserve backward compatibility).
Benefits
-
Enhances privacy/security by allowing admins to mask server identity.
-
Provides consistency with SMTP, where
smtpGreetingis already configurable. -
Improves flexibility for deployments in sensitive environments.