mox icon indicating copy to clipboard operation
mox copied to clipboard

Feature Suggestion: Disabling Domains and Accounts

Open RobSlgm opened this issue 8 months ago • 6 comments

Description

I'm thrilled to share that I recently migrated some email domains from a Postfix/Dovecot setup to Mox. It's been a pleasure using this modern solution over the past few weeks. While making the switch, I gained some insights that I'd like to propose as potential improvements.

Currently, when migrating domains between email servers using Mox, there's a challenge:

  • Mox immediately activates a newly created domain, acquiring certificates and allowing incoming and outgoing emails for any associated accounts/mailboxes.
  • This behavior can complicate migrations where you need to import emails from the previous server before activating the new domain.

Proposed Solution: Disabling Domains and Accounts

This feature introduces two flags for disabling domains and accounts during migration:

  1. Disable Flag for Mailboxes/Accounts
  • When set, Mox will:
    • Reject incoming emails from external senders.
      • Disallow sending emails from the associated mailboxes.
      • Mimic the behavior of a non-existent email address.
  • Important: This flag should NOT affect: - Importing/exporting emails. - IMAP access (to check migration with a mail client; or using tools such imapsync). - Access to the admin pages or mox commands
  1. Disable Flag for Domains
  • When set, Mox will: - Configure the domain with necessary keys (like current behavior). - NOT establish or allow external connections.
  • This effectively disables all newly created accounts/mailboxes within the domain, inheriting the behavior of the "disable flag for mailboxes" described above.
  • Purpose: - Allows setting up the correct DNS entries (DKIM, etc.) and preparing the DNS configuration before activating the domain. - Bulk data migration

Benefits

This feature simplifies domain migrations by:

  • Preventing unintended email activity during the migration process.
  • Facilitating DNS configuration by allowing key generation without establishing external connections.
  • Enabling proper verification of the migration setup before activating the new domain.

RobSlgm avatar Jun 04 '24 06:06 RobSlgm