Skip to content

IONOS(mail): evaluate mailbox possible flag to hide mailbox creation - #55

Draft
Arsalanulhaq wants to merge 1 commit into
ionos-devfrom
as/dev/nsw-782-mail-app-evaluate-mailbox-possible-flag
Draft

IONOS(mail): evaluate mailbox possible flag to hide mailbox creation#55
Arsalanulhaq wants to merge 1 commit into
ionos-devfrom
as/dev/nsw-782-mail-app-evaluate-mailbox-possible-flag

Conversation

@Arsalanulhaq

Copy link
Copy Markdown

This pull request introduces a new configuration flag to control whether mailbox creation is possible for an instance, based on whether a customer domain is connected. The implementation includes the flag in business logic and adds comprehensive unit tests to ensure correct behavior.

Feature: Mailbox Creation Control

  • Added isMailboxPossible() method to IonosConfigService to check the new ncw.mailboxPossible system value, which determines if mailbox creation is allowed for the instance. This is set via the IONOS_MAILBOX_POSSIBLE environment variable.
  • Updated isMailConfigAvailable() in IonosMailConfigService to return false if mailbox creation is not possible, logging a debug message and preventing further checks.

Check ncw.mailboxPossible system config (set from IONOS_MAILBOX_POSSIBLE
env var) in IonosMailConfigService instead of relying on CUSTOMER_DOMAIN.
Mailbox creation is hidden when the flag is absent or not 'true'.
@Arsalanulhaq
Arsalanulhaq force-pushed the as/dev/nsw-782-mail-app-evaluate-mailbox-possible-flag branch from 82469cd to 062c76a Compare March 24, 2026 14:58
@Arsalanulhaq
Arsalanulhaq marked this pull request as draft March 24, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant